/**
 * Sweet City Candy — Blog & Content Factory Stylesheet
 * Brand palette: Primary #00CACB, Text #2A2A2A, Accent #FF1C1C, Dark #18191f
 */

/* ── Layout & Containers ── */
.wrap-narrow {
	max-width: 840px;
	margin-left: auto;
	margin-right: auto;
	padding-left: 20px;
	padding-right: 20px;
}

/* ── Index Hero & Header ── */
.blog-index-page {
	padding-bottom: 60px;
}

.blog-hero-section {
	background: linear-gradient(180deg, #f3fcfa 0%, #ffffff 100%);
	padding: 40px 0 30px;
	border-bottom: 1px solid #e2edf0;
	margin-bottom: 40px;
}

.blog-kicker {
	display: inline-block;
	font-family: var(--font-display, 'Oswald', sans-serif);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.1em;
	color: #00999a;
	text-transform: uppercase;
	margin-bottom: 10px;
}

.blog-main-title {
	font-size: clamp(28px, 4vw, 44px);
	font-weight: 800;
	color: #1a1e28;
	line-height: 1.15;
	margin: 0 0 14px;
	letter-spacing: -0.02em;
}

.blog-hero-subtitle {
	font-size: clamp(15px, 1.8vw, 18px);
	color: #4b5563;
	line-height: 1.5;
	max-width: 760px;
	margin: 0 0 28px;
}

/* ── Search & Category Filter ── */
.blog-filter-bar {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.blog-search-form {
	display: flex;
	gap: 10px;
	max-width: 600px;
}

.blog-search-input-wrap {
	position: relative;
	flex: 1;
	display: flex;
	align-items: center;
}

.blog-search-input-wrap .search-icon {
	position: absolute;
	left: 14px;
	color: #9ca3af;
	pointer-events: none;
}

.blog-search-input {
	width: 100%;
	padding: 12px 36px 12px 42px;
	border: 1.5px solid #d1d5db;
	border-radius: 8px;
	font-size: 15px;
	outline: none;
	transition: border-color 0.2s, box-shadow 0.2s;
	background: #ffffff;
}

.blog-search-input:focus {
	border-color: #00CACB;
	box-shadow: 0 0 0 3px rgba(0, 202, 203, 0.15);
}

.blog-search-clear {
	position: absolute;
	right: 12px;
	color: #9ca3af;
	text-decoration: none;
	font-size: 16px;
	font-weight: bold;
}

.blog-search-btn {
	padding: 0 22px;
	font-weight: 700;
	border-radius: 8px;
	white-space: nowrap;
	background: #00CACB;
	color: #ffffff;
	border: none;
	cursor: pointer;
}

.blog-search-btn:hover {
	background: #00999a;
}

.blog-category-pills {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.category-pill {
	display: inline-block;
	padding: 7px 14px;
	border-radius: 20px;
	background: #eef4f6;
	color: #374151;
	font-size: 13px;
	font-weight: 600;
	text-decoration: none;
	transition: all 0.2s ease;
	border: 1px solid transparent;
}

.category-pill:hover {
	background: #e0ecef;
	color: #111827;
}

.category-pill.active {
	background: #00CACB;
	color: #ffffff;
	border-color: #00999a;
}

/* ── Featured Card ── */
.blog-featured-card {
	display: grid;
	grid-template-columns: 1.2fr 1fr;
	gap: 32px;
	background: #ffffff;
	border: 1px solid #e5e7eb;
	border-radius: 16px;
	overflow: hidden;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
	margin-bottom: 48px;
	transition: transform 0.2s, box-shadow 0.2s;
}

.blog-featured-card:hover {
	box-shadow: 0 8px 30px rgba(0, 0, 0, 0.09);
}

.featured-img-wrap {
	position: relative;
	display: block;
	overflow: hidden;
	min-height: 280px;
	background: #f3f4f6;
}

.featured-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.3s ease;
}

.featured-img-wrap:hover .featured-img {
	transform: scale(1.03);
}

.featured-badge {
	position: absolute;
	top: 14px;
	left: 14px;
	background: #18191f;
	color: #ffd700;
	font-size: 11px;
	font-weight: 800;
	letter-spacing: 0.06em;
	padding: 5px 10px;
	border-radius: 6px;
	text-transform: uppercase;
}

.featured-content {
	padding: 32px 32px 32px 0;
	display: flex;
	flex-direction: column;
	justify-content: center;
}

.post-meta-row {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 13px;
	color: #6b7280;
	margin-bottom: 12px;
}

.post-category-tag {
	color: #00999a;
	font-weight: 700;
	text-transform: uppercase;
	font-size: 11px;
	letter-spacing: 0.05em;
}

.featured-title {
	font-size: clamp(22px, 2.5vw, 30px);
	font-weight: 800;
	line-height: 1.25;
	margin: 0 0 14px;
}

.featured-title a {
	color: #111827;
	text-decoration: none;
}

.featured-title a:hover {
	color: #00CACB;
}

.featured-excerpt {
	font-size: 15px;
	line-height: 1.6;
	color: #4b5563;
	margin: 0 0 24px;
}

.featured-footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding-top: 18px;
	border-top: 1px solid #f3f4f6;
}

.author-info {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 13px;
	font-weight: 600;
	color: #374151;
}

.btn-read-more {
	font-size: 14px;
	font-weight: 700;
	color: #00CACB;
	text-decoration: none;
}

.btn-read-more:hover {
	color: #008889;
	text-decoration: underline;
}

/* ── Blog Grid & Cards ── */
.blog-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
	gap: 28px;
	margin-bottom: 40px;
}

.blog-card {
	background: #ffffff;
	border: 1px solid #e5e7eb;
	border-radius: 12px;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	transition: transform 0.2s, box-shadow 0.2s;
}

.blog-card:hover {
	transform: translateY(-3px);
	box-shadow: 0 6px 20px rgba(0, 0, 0, 0.07);
}

.blog-card-img-wrap {
	position: relative;
	display: block;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	background: #f9fafb;
}

.blog-card-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.3s;
}

.blog-card:hover .blog-card-img {
	transform: scale(1.04);
}

.blog-card-category {
	position: absolute;
	bottom: 10px;
	left: 10px;
	background: rgba(24, 25, 31, 0.85);
	color: #ffffff;
	font-size: 11px;
	font-weight: 700;
	padding: 3px 8px;
	border-radius: 4px;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	backdrop-filter: blur(4px);
}

.blog-card-body {
	padding: 20px;
	display: flex;
	flex-direction: column;
	flex: 1;
}

.blog-card-title {
	font-size: 18px;
	font-weight: 700;
	line-height: 1.35;
	margin: 0 0 10px;
}

.blog-card-title a {
	color: #111827;
	text-decoration: none;
}

.blog-card-title a:hover {
	color: #00CACB;
}

.blog-card-excerpt {
	font-size: 14px;
	line-height: 1.55;
	color: #4b5563;
	margin: 0 0 18px;
	flex: 1;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.blog-card-footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding-top: 14px;
	border-top: 1px solid #f3f4f6;
	font-size: 13px;
}

.blog-card-author {
	color: #6b7280;
	font-size: 12px;
}

.blog-card-link {
	font-weight: 700;
	color: #00CACB;
	text-decoration: none;
}

.blog-card-link:hover {
	text-decoration: underline;
}

/* ── Article Detail Header ── */
.blog-detail-article {
	padding-bottom: 70px;
}

.article-header {
	padding: 40px 0 24px;
	background: #ffffff;
}

.article-meta-top {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 13px;
	color: #6b7280;
	margin-bottom: 16px;
}

.article-category-badge {
	background: #eef8f8;
	color: #008889;
	font-weight: 700;
	padding: 4px 10px;
	border-radius: 6px;
	text-decoration: none;
	font-size: 12px;
	letter-spacing: 0.03em;
}

.article-category-badge:hover {
	background: #00CACB;
	color: #ffffff;
}

.article-title {
	font-size: clamp(28px, 4vw, 42px);
	font-weight: 800;
	line-height: 1.2;
	color: #111827;
	margin: 0 0 16px;
	letter-spacing: -0.02em;
}

.article-lead {
	font-size: clamp(16px, 1.8vw, 19px);
	line-height: 1.6;
	color: #4b5563;
	margin: 0 0 24px;
}

.article-author-strip {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 14px 18px;
	background: #f9fafb;
	border-radius: 10px;
	border: 1px solid #f3f4f6;
}

.author-avatar-badge {
	width: 40px;
	height: 40px;
	background: #00CACB;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 20px;
}

.author-label {
	display: block;
	font-size: 11px;
	text-transform: uppercase;
	color: #9ca3af;
	font-weight: 700;
}

.author-name {
	display: inline-block;
	color: #111827;
	font-size: 14px;
	margin-right: 6px;
}

.author-location {
	color: #6b7280;
	font-size: 12px;
}

.article-hero-cover {
	margin: 24px auto 36px;
	border-radius: 12px;
	overflow: hidden;
	max-height: 460px;
	background: #f3f4f6;
}

.article-cover-img {
	width: 100%;
	height: 100%;
	max-height: 460px;
	object-fit: cover;
}

/* ── Article Prose Typography ── */
.article-body {
	font-size: 17px;
	line-height: 1.75;
	color: #2a2a2a;
}

.article-body h2 {
	font-size: clamp(22px, 2.6vw, 28px);
	font-weight: 800;
	color: #111827;
	margin: 40px 0 16px;
	line-height: 1.3;
	letter-spacing: -0.01em;
	border-bottom: 2px solid #f3f4f6;
	padding-bottom: 8px;
}

.article-body h3 {
	font-size: 20px;
	font-weight: 700;
	color: #1f2937;
	margin: 32px 0 12px;
}

.article-body p {
	margin: 0 0 20px;
}

.article-body ul, .article-body ol {
	margin: 0 0 24px;
	padding-left: 24px;
}

.article-body li {
	margin-bottom: 8px;
}

.article-body blockquote {
	margin: 28px 0;
	padding: 16px 22px;
	background: #f8fafc;
	border-left: 4px solid #00CACB;
	border-radius: 0 8px 8px 0;
	font-style: italic;
	color: #334155;
}

.article-body a {
	color: #00999a;
	text-decoration: underline;
}

.article-body a:hover {
	color: #006b6c;
}

/* ── Tables ── */
.table-scroll {
	overflow-x: auto;
	margin: 28px 0;
	border-radius: 8px;
	border: 1px solid #e5e7eb;
}

.blog-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 14px;
	text-align: left;
}

.blog-table th {
	background: #f9fafb;
	padding: 12px 14px;
	font-weight: 700;
	color: #111827;
	border-bottom: 1px solid #e5e7eb;
	white-space: nowrap;
}

.blog-table td {
	padding: 12px 14px;
	border-bottom: 1px solid #f3f4f6;
	color: #374151;
}

.blog-table tr:last-child td {
	border-bottom: none;
}

.blog-table tr:hover td {
	background: #fafbfc;
}

/* ── Interactive Candy Calculator Widget ── */
.candy-calc-widget {
	background: linear-gradient(135deg, #0d1b2a 0%, #1b263b 100%);
	color: #ffffff;
	border-radius: 16px;
	padding: 30px;
	margin: 36px 0;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
	border: 1px solid #2e3d52;
}

.calc-header {
	display: flex;
	gap: 16px;
	align-items: flex-start;
	margin-bottom: 24px;
}

.calc-icon {
	font-size: 32px;
	background: rgba(255, 255, 255, 0.1);
	border-radius: 10px;
	padding: 8px;
	line-height: 1;
}

.calc-title {
	font-size: 22px;
	font-weight: 800;
	margin: 0 0 6px;
	color: #00CACB;
}

.calc-subtitle {
	font-size: 14px;
	color: #cbd5e1;
	margin: 0;
	line-height: 1.5;
}

.calc-form {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 20px;
	margin-bottom: 24px;
}

.calc-field label {
	display: block;
	font-size: 13px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: #94a3b8;
	margin-bottom: 8px;
}

.calc-field input, .calc-field select {
	width: 100%;
	padding: 12px 14px;
	border-radius: 8px;
	border: 1px solid #475569;
	background: #0f172a;
	color: #ffffff;
	font-size: 16px;
	font-weight: 600;
	outline: none;
}

.calc-field input:focus, .calc-field select:focus {
	border-color: #00CACB;
	box-shadow: 0 0 0 2px rgba(0, 202, 203, 0.3);
}

.calc-results {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 14px;
	background: rgba(255, 255, 255, 0.05);
	padding: 18px;
	border-radius: 12px;
	margin-bottom: 24px;
	border: 1px solid rgba(255, 255, 255, 0.1);
}

.calc-stat {
	display: flex;
	flex-direction: column;
}

.calc-stat-label {
	font-size: 11px;
	text-transform: uppercase;
	color: #94a3b8;
	font-weight: 700;
	margin-bottom: 4px;
}

.calc-stat-val {
	font-size: 18px;
	font-weight: 800;
	color: #ffffff;
}

.calc-actions {
	display: flex;
	gap: 12px;
	flex-wrap: wrap;
}

.calc-btn {
	background: #00CACB;
	color: #111827;
	font-weight: 700;
	padding: 12px 24px;
	border-radius: 8px;
	text-decoration: none;
	transition: background 0.2s;
}

.calc-btn:hover {
	background: #22e3e5;
}

.calc-btn-secondary {
	background: rgba(255, 255, 255, 0.1);
	color: #ffffff;
	font-weight: 600;
	padding: 12px 20px;
	border-radius: 8px;
	text-decoration: none;
}

.calc-btn-secondary:hover {
	background: rgba(255, 255, 255, 0.2);
}

/* ── Contract Clause Swipe Box ── */
.clause-box {
	background: #f8fafc;
	border: 1.5px solid #cbd5e1;
	border-radius: 10px;
	margin: 28px 0;
	overflow: hidden;
}

.clause-box-head {
	display: flex;
	justify-content: space-between;
	align-items: center;
	background: #e2e8f0;
	padding: 8px 16px;
	border-bottom: 1px solid #cbd5e1;
}

.clause-box-tag {
	font-size: 11px;
	font-weight: 800;
	letter-spacing: 0.06em;
	color: #334155;
}

.clause-copy-btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: #ffffff;
	color: #0f172a;
	border: 1px solid #94a3b8;
	border-radius: 6px;
	padding: 4px 10px;
	font-size: 12px;
	font-weight: 700;
	cursor: pointer;
	transition: all 0.2s;
}

.clause-copy-btn:hover {
	background: #00CACB;
	color: #ffffff;
	border-color: #00999a;
}

.clause-copy-btn.copied {
	background: #10b981;
	color: #ffffff;
	border-color: #059669;
}

.clause-box-title {
	margin: 14px 18px 8px;
	font-size: 16px;
	font-weight: 700;
	color: #0f172a;
}

.clause-box-body {
	padding: 0 18px 16px;
}

.clause-text {
	margin: 0;
	padding: 12px;
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 6px;
	font-family: Menlo, Monaco, Consolas, monospace;
	font-size: 13px;
	line-height: 1.6;
	color: #1e293b;
	white-space: pre-wrap;
	word-break: break-word;
}

/* ── Embedded Product Card ── */
.blog-embed-product {
	display: flex;
	align-items: center;
	gap: 16px;
	background: #ffffff;
	border: 1px solid #e5e7eb;
	border-radius: 10px;
	padding: 14px 18px;
	margin: 24px 0;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.blog-embed-img img {
	width: 80px;
	height: 80px;
	object-fit: contain;
	border-radius: 6px;
}

.blog-embed-info {
	flex: 1;
}

.blog-embed-brand {
	display: block;
	font-size: 11px;
	text-transform: uppercase;
	font-weight: 700;
	color: #00999a;
}

.blog-embed-title {
	margin: 2px 0 6px;
	font-size: 15px;
	font-weight: 700;
}

.blog-embed-title a {
	color: #111827;
	text-decoration: none;
}

.blog-embed-meta {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 13px;
}

.blog-embed-price {
	font-weight: 800;
	color: #111827;
}

.blog-embed-stock {
	color: #059669;
	font-size: 12px;
	font-weight: 600;
}

.blog-embed-stock.out {
	color: #dc2626;
}

.blog-embed-btn {
	padding: 8px 14px;
	background: #f3f4f6;
	color: #111827;
	border-radius: 6px;
	font-size: 13px;
	font-weight: 700;
	text-decoration: none;
	white-space: nowrap;
}

.blog-embed-btn:hover {
	background: #00CACB;
	color: #ffffff;
}

/* ── Conversion Lead CTA Boxes ── */
.blog-lead-cta {
	border-radius: 12px;
	padding: 24px 28px;
	margin: 36px 0;
}

.blog-lead-cta.operator {
	background: #f0fdfa;
	border: 1.5px solid #99f6e4;
}

.blog-lead-cta.host {
	background: #fefce8;
	border: 1.5px solid #fef08a;
}

.lead-cta-badge {
	display: inline-block;
	font-size: 11px;
	font-weight: 800;
	letter-spacing: 0.08em;
	padding: 3px 8px;
	border-radius: 4px;
	margin-bottom: 10px;
}

.blog-lead-cta.operator .lead-cta-badge {
	background: #0f766e;
	color: #ffffff;
}

.blog-lead-cta.host .lead-cta-badge {
	background: #854d0e;
	color: #ffffff;
}

.blog-lead-cta h3 {
	margin: 0 0 8px;
	font-size: 19px;
	font-weight: 800;
	color: #111827;
}

.blog-lead-cta p {
	font-size: 14px;
	line-height: 1.6;
	color: #374151;
	margin: 0 0 16px;
}

.lead-cta-buttons {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
}

.lead-btn-primary {
	background: #00CACB;
	color: #ffffff;
	font-weight: 700;
	font-size: 14px;
	padding: 10px 18px;
	border-radius: 6px;
	text-decoration: none;
}

.lead-btn-primary:hover {
	background: #00999a;
}

.lead-btn-secondary {
	background: #ffffff;
	color: #374151;
	font-weight: 600;
	font-size: 14px;
	padding: 10px 16px;
	border-radius: 6px;
	text-decoration: none;
	border: 1px solid #d1d5db;
}

/* ── Warehouse Authority Box ── */
.article-warehouse-credentials {
	display: flex;
	gap: 20px;
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	border-radius: 12px;
	padding: 24px;
	margin: 48px 0;
}

.cred-icon {
	font-size: 36px;
	line-height: 1;
}

.cred-body h4 {
	margin: 0 0 8px;
	font-size: 16px;
	font-weight: 800;
	color: #0f172a;
}

.cred-body p {
	font-size: 13.5px;
	line-height: 1.6;
	color: #475569;
	margin: 0 0 14px;
}

.cred-links {
	display: flex;
	align-items: center;
	gap: 14px;
	flex-wrap: wrap;
}

.cred-link-btn {
	background: #00CACB;
	color: #ffffff;
	padding: 6px 14px;
	border-radius: 6px;
	font-size: 13px;
	font-weight: 700;
	text-decoration: none;
}

.cred-link-sub {
	font-size: 13px;
	color: #00999a;
	text-decoration: none;
	font-weight: 600;
}

/* ── Rails Below Article ── */
.article-products-rail, .article-related-rail {
	padding: 48px 0;
	border-top: 1px solid #e5e7eb;
}

.article-products-rail {
	background: #f9fafb;
}

.section-head-bar {
	display: flex;
	justify-content: space-between;
	align-items: flex-end;
	margin-bottom: 24px;
}

.view-all-link {
	font-size: 14px;
	font-weight: 700;
	color: #00CACB;
	text-decoration: none;
}

.view-all-link:hover {
	text-decoration: underline;
}

/* ── Responsive Rules ── */
@media (max-width: 860px) {
	.blog-featured-card {
		grid-template-columns: 1fr;
	}
	.featured-content {
		padding: 24px;
	}
	.calc-form {
		grid-template-columns: 1fr;
	}
	.calc-results {
		grid-template-columns: 1fr 1fr;
	}
}

@media (max-width: 600px) {
	.calc-results {
		grid-template-columns: 1fr;
	}
	.blog-embed-product {
		flex-direction: column;
		align-items: flex-start;
	}
	.blog-embed-btn {
		width: 100%;
		text-align: center;
	}
}

/* ── Legal & Compliance Disclaimers ── */
.legal-disclaimer-callout {
	background: #fffbeb;
	border: 1px solid #fef3c7;
	border-left: 4px solid #f59e0b;
	border-radius: 8px;
	padding: 16px 20px;
	margin: 24px 0 28px;
	display: flex;
	gap: 14px;
	align-items: flex-start;
}

.legal-disclaimer-callout.bottom-banner {
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	border-left: 4px solid #64748b;
	margin-top: 36px;
	margin-bottom: 24px;
}

.disclaimer-icon {
	font-size: 22px;
	line-height: 1.2;
	flex-shrink: 0;
}

.disclaimer-content h5 {
	font-size: 14px;
	font-weight: 800;
	color: #92400e;
	margin: 0 0 6px;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.legal-disclaimer-callout.bottom-banner .disclaimer-content h5 {
	color: #334155;
}

.disclaimer-content p {
	font-size: 13px;
	line-height: 1.55;
	color: #78350f;
	margin: 0;
}

.legal-disclaimer-callout.bottom-banner .disclaimer-content p {
	color: #475569;
}

.clause-box-disclaimer {
	padding: 10px 18px 14px;
	border-top: 1px solid #e2e8f0;
	background: #f1f5f9;
	font-size: 11px;
	line-height: 1.45;
	color: #64748b;
}

.clause-box-disclaimer strong {
	color: #334155;
}
