/**
 * Custom Styles for PapaGid — Mobile-First
 *
 * @package Papagid
 * @since 2.0.0
 *
 * Breakpoints (mobile-first):
 *   Base .............. 0–479px (small mobile)
 *   min-width 480px ... large mobile
 *   min-width 768px ... tablet
 *   min-width 1024px .. desktop
 *   min-width 1280px .. wide desktop
 */

/* ========================================
   1. CSS Variables
   ======================================== */

:root {
	/* Colors */
	--color-primary: #2563eb;
	--color-secondary: #7c3aed;
	--color-success: #10b981;
	--color-warning: #f59e0b;
	--color-error: #ef4444;

	/* Trimester colors */
	--color-trimester-1: #3b82f6;
	--color-trimester-2: #10b981;
	--color-trimester-3: #8b5cf6;

	/* Primary color variations */
	--color-primary-light: #dbeafe;
	--color-primary-dark: #1e40af;
	--color-primary-50: #eff6ff;

	/* Secondary color variations */
	--color-secondary-light: #f3e8ff;

	/* Wellness colors */
	--color-wellness: #10b981;
	--color-wellness-light: #d1fae5;

	--color-text: #1f2937;
	--color-text-primary: #1f2937;
	--color-text-secondary: #6b7280;
	--color-text-light: #94a3b8;
	--color-text-muted: #9ca3af;

	--color-bg-primary: #ffffff;
	--color-bg-secondary: #f9fafb;
	--color-bg-tertiary: #f3f4f6;

	--color-border: #e5e7eb;
	--color-border-dark: #d1d5db;

	/* Typography */
	--font-family-base: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
	--font-family-heading: 'Montserrat', 'Inter', -apple-system, sans-serif;

	--font-size-xs: 12px;
	--font-size-sm: 14px;
	--font-size-base: 16px;
	--font-size-lg: 18px;
	--font-size-xl: 20px;
	--font-size-2xl: 24px;
	--font-size-3xl: 32px;     /* было 30px */
	--font-size-4xl: 40px;     /* было 36px */
	--font-size-5xl: 48px;     /* NEW */

	--line-height-tight: 1.2;  /* было 1.25 */
	--line-height-normal: 1.5;
	--line-height-relaxed: 1.7;
	--line-height-loose: 2;

	/* Spacing */
	--spacing-xs: 4px;
	--spacing-sm: 8px;
	--spacing-md: 20px;       /* было 16px */
	--spacing-lg: 28px;       /* было 24px */
	--spacing-xl: 40px;       /* было 32px */
	--spacing-2xl: 56px;      /* было 48px */
	--spacing-3xl: 72px;      /* NEW */

	/* Shadows */
	--shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
	--shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
	--shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
	--shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
	--shadow-colored: 0 10px 30px rgba(37, 99, 235, 0.15);

	/* Gradients */
	--gradient-primary: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
	--gradient-hero: linear-gradient(135deg, #1e40af 0%, #7c3aed 50%, #c084fc 100%);
	--gradient-subtle: linear-gradient(135deg, rgba(37, 99, 235, 0.05) 0%, rgba(124, 58, 237, 0.05) 100%);

	/* Border radius */
	--radius-sm: 6px;
	--radius-md: 12px;
	--radius-lg: 16px;
	--radius-xl: 24px;
	/* Aliases for compatibility */
	--border-radius-sm: var(--radius-sm);
	--border-radius-md: var(--radius-md);
	--border-radius-lg: var(--radius-lg);
	--border-radius-xl: var(--radius-xl);
	--color-bg: var(--color-bg-primary);

	/* Bottom navigation & app shell */
	--bottom-nav-height: 56px;
	--bottom-nav-bg: #ffffff;
	--week-pill-size: 44px;
	--week-pill-active-size: 48px;
	--safe-area-bottom: env(safe-area-inset-bottom, 0px);
}

/* ========================================
   2. Global Reset & Base (mobile-first)
   ======================================== */

*,
*::before,
*::after {
	box-sizing: border-box;
}

body {
	font-family: var(--font-family-base);
	color: var(--color-text);
	background: #f0f2f5;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	padding-bottom: calc(var(--bottom-nav-height) + var(--safe-area-bottom));
}

@media (min-width: 1024px) {
	body {
		padding-bottom: 0;
	}
}

/* ========================================
   3. Typography
   ======================================== */

h1, h2, h3, h4, h5, h6 {
	font-family: var(--font-family-heading);
	font-weight: 700;
	letter-spacing: var(--letter-spacing-tight, -0.025em);
	color: var(--color-text-primary, #1F1B18);
	line-height: var(--line-height-tight, 1.2);
}

/* Display Headings (Playfair Display) */
h1, h2, h3 {
	font-family: var(--font-family-display, 'Playfair Display', Georgia, serif);
	font-weight: 700;
}

h1 {
	font-size: var(--font-size-4xl, 3rem);
	line-height: var(--line-height-tight, 1.2);
	margin-bottom: var(--space-6, 1.5rem);
}

h2 {
	font-size: var(--font-size-3xl, 2.25rem);
	line-height: var(--line-height-snug, 1.375);
	margin-bottom: var(--space-5, 1.25rem);
}

h3 {
	font-size: var(--font-size-2xl, 1.875rem);
	line-height: var(--line-height-snug, 1.375);
	margin-bottom: var(--space-4, 1rem);
}

/* Utility Headings (Inter) */
h4, h5, h6 {
	font-family: var(--font-family-base, 'Inter', sans-serif);
	font-weight: var(--font-weight-semibold, 600);
}

h4 {
	font-size: var(--font-size-xl, 1.5rem);
	margin-bottom: var(--space-3, 0.75rem);
}

h5 {
	font-size: var(--font-size-lg, 1.25rem);
	margin-bottom: var(--space-3, 0.75rem);
}

h6 {
	font-size: var(--font-size-base, 1rem);
	margin-bottom: var(--space-2, 0.5rem);
	text-transform: uppercase;
	letter-spacing: var(--letter-spacing-wide, 0.025em);
}

/* Body Text */
p {
	font-size: var(--font-size-base, 1rem);
	line-height: var(--line-height-relaxed, 1.625);
	color: var(--color-text-primary, #1F1B18);
	margin-bottom: var(--space-4, 1rem);
}

p:last-child {
	margin-bottom: 0;
}

/* Lead Paragraph */
.lead {
	font-size: var(--font-size-lg, 1.25rem);
	line-height: var(--line-height-relaxed, 1.625);
	color: var(--color-text-secondary, #6B6560);
	font-weight: var(--font-weight-regular, 400);
}

/* Small Text */
small, .text-sm {
	font-size: var(--font-size-sm, 0.8rem);
	line-height: var(--line-height-normal, 1.5);
}

/* ========================================
   4. Layout — Site Content Wrapper
   ======================================== */

.site-content-wrapper {
	width: 100%;
	margin: 0 auto;
	padding: var(--spacing-md) 0;
}

@media (min-width: 768px) {
	.site-content-wrapper {
		padding: var(--spacing-lg) var(--spacing-md);
	}
}

@media (min-width: 1024px) {
	.site-content-wrapper {
		max-width: 1200px;
		padding: var(--spacing-xl) var(--spacing-lg);
	}
}

@media (min-width: 1280px) {
	.site-content-wrapper {
		padding: 40px 20px;
	}
}

/* Main content area */
.main-content {
	padding: 0;
}

@media (min-width: 768px) {
	.main-content {
		padding: 0 20px;
	}
}

/* ========================================
   5. Content Cards
   ======================================== */

.content-card {
	background: var(--color-bg-primary);
	border: none;
	border-radius: var(--radius-md);
	overflow: hidden;
	margin-bottom: var(--spacing-md);
	box-shadow: var(--shadow-md);
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.content-card:hover {
	box-shadow: var(--shadow-lg);
	transform: translateY(-2px);
}

.content-card__image {
	width: 100%;
	aspect-ratio: 16 / 9;
	object-fit: cover;
}

.content-card__body {
	padding: var(--spacing-md);
}

@media (min-width: 768px) {
	.content-card__body {
		padding: var(--spacing-lg);
	}
}

.content-card__category {
	display: inline-block;
	font-size: var(--font-size-xs);
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	color: var(--color-primary);
	margin-bottom: var(--spacing-sm);
}

.content-card__title {
	font-size: var(--font-size-lg);
	font-weight: 600;
	margin-bottom: var(--spacing-sm);
	line-height: var(--line-height-tight);
}

@media (min-width: 768px) {
	.content-card__title {
		font-size: var(--font-size-xl);
	}
}

.content-card__title a {
	color: var(--color-text-primary);
	text-decoration: none;
}

.content-card__title a:hover {
	color: var(--color-primary);
}

.content-card__excerpt {
	font-size: var(--font-size-base);
	color: var(--color-text-secondary);
	line-height: var(--line-height-normal);
	margin-bottom: var(--spacing-md);
}

.content-card__meta {
	display: flex;
	align-items: center;
	gap: var(--spacing-md);
	font-size: var(--font-size-sm);
	color: var(--color-text-muted);
}

/* ========================================
   6. Hero Section
   ======================================== */

.hero-section {
	background: var(--gradient-hero);
	color: white;
	padding: var(--spacing-xl) var(--spacing-md);
	border-radius: var(--radius-lg);
	margin-bottom: var(--spacing-lg);
	text-align: center;
	position: relative;
	overflow: hidden;
	box-shadow: var(--shadow-xl), 0 0 40px rgba(37, 99, 235, 0.2);
}

@media (min-width: 768px) {
	.hero-section {
		padding: 48px 32px;
		border-radius: var(--radius-xl);
		margin-bottom: var(--spacing-xl);
	}
}

@media (min-width: 1024px) {
	.hero-section {
		padding: 60px 40px;
	}
}

.hero-section::before {
	content: '';
	position: absolute;
	top: -50%;
	right: -20%;
	width: 250px;
	height: 250px;
	background: rgba(255, 255, 255, 0.08);
	border-radius: 50%;
	pointer-events: none;
}

@media (min-width: 768px) {
	.hero-section::before {
		width: 400px;
		height: 400px;
	}
}

.hero-section::after {
	content: '';
	position: absolute;
	bottom: -30%;
	left: -10%;
	width: 200px;
	height: 200px;
	background: rgba(255, 255, 255, 0.05);
	border-radius: 50%;
	pointer-events: none;
}

@media (min-width: 768px) {
	.hero-section::after {
		width: 300px;
		height: 300px;
	}
}

.hero-section h1 {
	font-family: var(--font-family-heading);
	font-size: clamp(32px, 8vw, 56px);  /* Fluid typography */
	font-weight: 900;
	line-height: 1.1;
	letter-spacing: -0.03em;
	margin-bottom: var(--spacing-md);
	position: relative;
	z-index: 1;

	/* Kinetic Typography (gradient text with animation) */
	background: linear-gradient(135deg,
		var(--color-primary) 0%,
		var(--color-secondary) 50%,
		var(--color-wellness) 100%);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
	background-size: 200% 200%;
	animation: gradientShift 8s ease infinite;
}

@keyframes gradientShift {
	0%, 100% { background-position: 0% 50%; }
	50% { background-position: 100% 50%; }
}

.hero-section p {
	font-size: var(--font-size-base);
	opacity: 0.92;
	max-width: 600px;
	margin: 0 auto;
	position: relative;
	z-index: 1;
	line-height: 1.6;
}

@media (min-width: 768px) {
	.hero-section p {
		font-size: var(--font-size-xl);
	}
}

/* ========================================
   7. Tools Grid
   ======================================== */

.tools-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: var(--spacing-md);
	margin-bottom: var(--spacing-xl);
	padding: 0 var(--spacing-md);
}

@media (min-width: 768px) {
	.tools-grid {
		grid-template-columns: repeat(3, 1fr);
		gap: var(--spacing-lg);
		padding: 0;
	}
}

.tool-card {
	background: var(--color-bg-primary);
	border: 1px solid rgba(0, 0, 0, 0.06);
	border-radius: var(--radius-lg);
	padding: var(--spacing-lg);
	text-align: center;
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	text-decoration: none;
	color: inherit;
	display: block;
	box-shadow: var(--shadow-md);
	position: relative;
	overflow: hidden;
}

@media (min-width: 768px) {
	.tool-card {
		padding: var(--spacing-xl) var(--spacing-lg);
	}
}

.tool-card::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 4px;
	background: var(--gradient-primary);
	opacity: 0;
	transition: opacity 0.3s ease;
}

.tool-card:hover {
	transform: translateY(-6px);
	box-shadow: var(--shadow-xl), var(--shadow-colored);
}

.tool-card:hover::before {
	opacity: 1;
}

.tool-card__icon {
	font-size: 36px;
	margin-bottom: var(--spacing-sm);
	display: inline-flex;
	width: 64px;
	height: 64px;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	background: var(--gradient-subtle);
}

@media (min-width: 768px) {
	.tool-card__icon {
		font-size: 48px;
		width: 80px;
		height: 80px;
		margin-bottom: var(--spacing-md);
	}
}

.tool-card__title {
	font-family: var(--font-family-heading);
	font-size: var(--font-size-lg);
	font-weight: 700;
	margin-bottom: var(--spacing-sm);
	color: var(--color-text-primary);
}

@media (min-width: 768px) {
	.tool-card__title {
		font-size: var(--font-size-xl);
	}
}

.tool-card__description {
	font-size: var(--font-size-sm);
	color: var(--color-text-secondary);
}

@media (min-width: 768px) {
	.tool-card__description {
		font-size: var(--font-size-base);
	}
}

/* ========================================
   8. Article Typography
   ======================================== */

.single-article__content {
	font-size: var(--font-size-base);
	line-height: var(--line-height-relaxed);
	max-width: 100%;
	margin: 0 auto;
	color: var(--color-text-primary);
	padding: 0 var(--spacing-md);
}

@media (min-width: 480px) {
	.single-article__content {
		padding: 0;
	}
}

@media (min-width: 768px) {
	.single-article__content {
		font-size: var(--font-size-lg);
		max-width: 720px;
	}
}

.single-article__content h1 {
	font-size: var(--font-size-2xl);
	font-weight: 700;
	line-height: var(--line-height-tight);
	margin-bottom: var(--spacing-lg);
}

@media (min-width: 480px) {
	.single-article__content h1 {
		font-size: var(--font-size-3xl);
	}
}

@media (min-width: 768px) {
	.single-article__content h1 {
		font-size: var(--font-size-4xl);
	}
}

.single-article__content h2 {
	font-size: var(--font-size-xl);
	font-weight: 600;
	margin-top: var(--spacing-xl);
	margin-bottom: var(--spacing-md);
}

@media (min-width: 480px) {
	.single-article__content h2 {
		font-size: var(--font-size-2xl);
	}
}

@media (min-width: 768px) {
	.single-article__content h2 {
		font-size: var(--font-size-3xl);
		margin-top: var(--spacing-2xl);
	}
}

.single-article__content h3 {
	font-size: var(--font-size-lg);
	font-weight: 600;
	margin-top: var(--spacing-lg);
	margin-bottom: var(--spacing-sm);
}

@media (min-width: 768px) {
	.single-article__content h3 {
		font-size: var(--font-size-2xl);
		margin-top: var(--spacing-xl);
	}
}

.single-article__content p {
	margin-bottom: var(--spacing-md);
}

.single-article__content a {
	color: var(--color-primary);
	text-decoration: underline;
}

.single-article__content a:hover {
	color: var(--color-secondary);
}

.single-article__content p:first-of-type::first-letter {
	font-size: 3em;
	font-weight: 700;
	line-height: 1;
	float: left;
	margin: 0 0.1em 0 0;
	color: var(--color-primary);
}

@media (min-width: 768px) {
	.single-article__content p:first-of-type::first-letter {
		font-size: 3.5em;
	}
}

/* ========================================
   9. Checklist Styles
   ======================================== */

.checklist-container {
	max-width: 800px;
	margin: 0 auto;
	padding: var(--spacing-md);
}

@media (min-width: 768px) {
	.checklist-container {
		padding: var(--spacing-xl);
	}
}

.checklist-item {
	display: flex;
	align-items: flex-start;
	padding: var(--spacing-sm) var(--spacing-md);
	border: none;
	border-radius: var(--radius-md);
	margin-bottom: var(--spacing-md);
	background: var(--color-bg-primary);
	box-shadow: var(--shadow-sm);
	transition: all 0.3s ease;
	border-left: 4px solid var(--color-primary);
}

@media (min-width: 768px) {
	.checklist-item {
		padding: var(--spacing-md) var(--spacing-lg);
	}
}

.checklist-item:hover {
	box-shadow: var(--shadow-md);
}

.checklist-item.is-checked {
	border-left-color: var(--color-success);
	background: #f0fdf4;
	opacity: 0.8;
}

.checklist-item input[type="checkbox"] {
	width: 24px;
	height: 24px;
	margin-right: var(--spacing-md);
	cursor: pointer;
	flex-shrink: 0;
	margin-top: 2px;
	accent-color: var(--color-primary);
	min-height: 44px;
	min-width: 44px;
}

@media (min-width: 768px) {
	.checklist-item input[type="checkbox"] {
		width: 20px;
		height: 20px;
		min-height: 20px;
		min-width: 20px;
	}
}

.checklist-item__content {
	flex: 1;
}

.checklist-item__title {
	font-size: var(--font-size-base);
	font-weight: 600;
	margin-bottom: var(--spacing-xs);
	color: var(--color-text-primary);
}

@media (min-width: 768px) {
	.checklist-item__title {
		font-size: var(--font-size-lg);
	}
}

.checklist-item.is-checked .checklist-item__title {
	text-decoration: line-through;
	color: var(--color-text-muted);
}

.checklist-item__description {
	font-size: var(--font-size-sm);
	color: var(--color-text-secondary);
	line-height: var(--line-height-normal);
}

@media (min-width: 768px) {
	.checklist-item__description {
		font-size: var(--font-size-base);
	}
}

/* Progress bar */
.progress-container {
	position: sticky;
	top: 0;
	background: var(--color-bg-primary);
	padding: var(--spacing-md);
	border-bottom: 2px solid var(--color-border);
	margin-bottom: var(--spacing-lg);
	z-index: 10;
	border-radius: 8px;
}

@media (min-width: 768px) {
	.progress-container {
		padding: var(--spacing-lg);
		margin-bottom: var(--spacing-xl);
	}
}

.progress-bar-wrapper {
	width: 100%;
	height: 24px;
	background: var(--color-bg-tertiary);
	border-radius: 16px;
	overflow: hidden;
	position: relative;
	box-shadow:
		0 0 0 1px rgba(0, 0, 0, 0.05) inset,
		0 2px 4px rgba(0, 0, 0, 0.02) inset;
}

.progress-bar {
	height: 100%;
	background: linear-gradient(90deg,
		var(--color-trimester-1) 0%,
		var(--color-trimester-1) 32.5%,
		var(--color-trimester-2) 32.5%,
		var(--color-trimester-2) 67.5%,
		var(--color-trimester-3) 67.5%,
		var(--color-trimester-3) 100%
	);
	border-radius: 16px;
	transition: width 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
	position: relative;
	overflow: hidden;
}

/* Shimmer effect applied via animations.css */

.progress-text {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	font-size: var(--font-size-xs);
	font-weight: 600;
	color: var(--color-text-primary);
}

@media (min-width: 768px) {
	.progress-text {
		font-size: var(--font-size-sm);
	}
}

/* ========================================
   10. Weekly Guide Styles
   ======================================== */

.weekly-guide-container {
	max-width: 800px;
	margin: 0 auto;
	padding: var(--spacing-md);
}

@media (min-width: 768px) {
	.weekly-guide-container {
		padding: var(--spacing-xl);
	}
}

.week-selector {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: var(--spacing-md);
	margin-bottom: var(--spacing-xl);
}

@media (min-width: 768px) {
	.week-selector {
		flex-direction: row;
		align-items: center;
		flex-wrap: wrap;
	}
}

.week-selector label {
	font-size: var(--font-size-lg);
	font-weight: 600;
}

.week-selector select {
	padding: 12px 20px;
	font-size: var(--font-size-base);
	border: 2px solid var(--color-border);
	border-radius: var(--radius-md);
	background: var(--color-bg-primary);
	cursor: pointer;
	width: 100%;
	box-shadow: var(--shadow-sm);
	transition: all 0.3s ease;
	min-height: 44px;
}

@media (min-width: 768px) {
	.week-selector select {
		width: auto;
		min-width: 200px;
	}
}

.week-selector select:focus {
	border-color: var(--color-primary);
	box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
	outline: none;
}

.week-info-card {
	background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
	border: none;
	border-radius: var(--radius-lg);
	padding: var(--spacing-lg);
	margin-bottom: var(--spacing-lg);
	box-shadow: var(--shadow-md);
}

@media (min-width: 768px) {
	.week-info-card {
		padding: var(--spacing-xl);
	}
}

.week-info-card__header {
	display: flex;
	align-items: center;
	gap: var(--spacing-md);
	margin-bottom: var(--spacing-lg);
}

@media (min-width: 768px) {
	.week-info-card__header {
		gap: var(--spacing-lg);
	}
}

.week-info-card__stats {
	display: grid;
	grid-template-columns: 1fr;
	gap: var(--spacing-sm);
	margin-bottom: var(--spacing-lg);
}

@media (min-width: 480px) {
	.week-info-card__stats {
		grid-template-columns: repeat(2, 1fr);
		gap: var(--spacing-md);
	}
}

@media (min-width: 768px) {
	.week-info-card__stats {
		grid-template-columns: repeat(3, 1fr);
	}
}

.stat-item {
	text-align: center;
	padding: var(--spacing-md);
	background: white;
	border-radius: var(--radius-md);
	box-shadow: var(--shadow-sm);
	transition: all 0.3s ease;
}

@media (min-width: 768px) {
	.stat-item {
		padding: var(--spacing-lg) var(--spacing-md);
	}
}

.stat-item:hover {
	box-shadow: var(--shadow-md);
	transform: translateY(-2px);
}

.stat-item__label {
	font-size: var(--font-size-xs);
	color: var(--color-text-muted);
	display: block;
	margin-bottom: var(--spacing-xs);
	text-transform: uppercase;
	letter-spacing: 0.5px;
	font-weight: 500;
}

@media (min-width: 768px) {
	.stat-item__label {
		font-size: var(--font-size-sm);
	}
}

.stat-item__value {
	font-size: var(--font-size-xl);
	font-weight: 800;
	font-family: var(--font-family-heading);
	background: var(--gradient-primary);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
}

@media (min-width: 768px) {
	.stat-item__value {
		font-size: var(--font-size-2xl);
	}
}

.week-section {
	margin-bottom: var(--spacing-xl);
}

.week-section__title {
	font-family: var(--font-family-heading);
	font-size: var(--font-size-xl);
	font-weight: 700;
	margin-bottom: var(--spacing-md);
	padding-bottom: var(--spacing-sm);
	border-bottom: 3px solid transparent;
	border-image: var(--gradient-primary) 1;
}

@media (min-width: 768px) {
	.week-section__title {
		font-size: var(--font-size-2xl);
	}
}

/* ========================================
   11. Calendar Styles
   ======================================== */

.calendar-container {
	max-width: 800px;
	margin: 0 auto;
	padding: var(--spacing-md);
}

@media (min-width: 768px) {
	.calendar-container {
		padding: var(--spacing-xl);
	}
}

.calendar-form {
	background: var(--color-bg-secondary);
	border: none;
	border-radius: var(--radius-lg);
	padding: var(--spacing-lg);
	margin-bottom: var(--spacing-xl);
	box-shadow: var(--shadow-md);
}

@media (min-width: 768px) {
	.calendar-form {
		padding: var(--spacing-xl);
	}
}

.calendar-form label {
	display: block;
	font-size: var(--font-size-lg);
	font-weight: 600;
	margin-bottom: var(--spacing-sm);
}

.calendar-form input[type="date"] {
	padding: 12px 16px;
	font-size: var(--font-size-base);
	border: 2px solid var(--color-border);
	border-radius: 8px;
	width: 100%;
	min-height: 44px;
}

@media (min-width: 480px) {
	.calendar-form input[type="date"] {
		max-width: 300px;
	}
}

.calendar-form input[type="date"]:focus {
	border-color: var(--color-primary);
	outline: none;
}

.calendar-results {
	display: none;
}

.calendar-results.is-visible {
	display: block;
}

.date-card {
	background: var(--color-bg-primary);
	border: none;
	border-radius: var(--radius-md);
	padding: var(--spacing-md);
	margin-bottom: var(--spacing-md);
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: var(--spacing-sm);
	box-shadow: var(--shadow-sm);
	transition: all 0.3s ease;
	border-left: 4px solid var(--color-primary);
}

@media (min-width: 768px) {
	.date-card {
		flex-direction: row;
		align-items: center;
		gap: var(--spacing-lg);
		padding: var(--spacing-lg);
	}
}

.date-card:hover {
	box-shadow: var(--shadow-md);
}

.date-card__date {
	font-size: var(--font-size-xl);
	font-weight: 700;
	color: var(--color-primary);
	white-space: nowrap;
}

@media (min-width: 768px) {
	.date-card__date {
		font-size: var(--font-size-2xl);
		min-width: 120px;
	}
}

.date-card__info {
	flex: 1;
}

.date-card__title {
	font-size: var(--font-size-base);
	font-weight: 600;
	margin-bottom: var(--spacing-xs);
}

@media (min-width: 768px) {
	.date-card__title {
		font-size: var(--font-size-lg);
	}
}

.date-card__description {
	font-size: var(--font-size-sm);
	color: var(--color-text-secondary);
}

@media (min-width: 768px) {
	.date-card__description {
		font-size: var(--font-size-base);
	}
}

/* ========================================
   12. Buttons
   ======================================== */

.button,
.btn-primary {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: var(--space-2, 0.5rem);
	padding: var(--space-3, 0.75rem) var(--space-6, 1.5rem);
	background: var(--color-brand-primary, #E57B8A);
	color: var(--color-text-inverse, #FFFFFF);
	border: none;
	border-radius: var(--radius-button, 9999px);
	font-size: var(--font-size-base, 1rem);
	font-weight: var(--font-weight-semibold, 600);
	font-family: var(--font-family-base, 'Inter', sans-serif);
	cursor: pointer;
	transition: all 0.2s ease;
	text-decoration: none;
	box-shadow: var(--shadow-pink, 0 4px 14px rgba(229, 123, 138, 0.30));
	min-height: 44px;
	text-align: center;
	white-space: nowrap;
}

@media (min-width: 768px) {
	.button,
	.btn-primary {
		padding: var(--space-3, 0.75rem) var(--space-8, 2rem);
	}
}

.button:hover,
.btn-primary:hover {
	background: var(--color-interactive-primary-hover, #D94F64);
	transform: translateY(-2px) scale(1.02);
	box-shadow: 0 6px 20px rgba(229, 123, 138, 0.45);
	color: var(--color-text-inverse, #FFFFFF);
}

.button:active,
.btn-primary:active {
	transform: translateY(0) scale(1);
}

.button-secondary {
	background: var(--color-bg-surface, #FFFFFF);
	color: var(--color-text-primary, #1F1B18);
	border: 2px solid var(--color-border-default, #E2DDD7);
	box-shadow: var(--shadow-sm, 0 1px 3px rgba(31, 27, 24, 0.06));
}

.button-secondary:hover {
	background: var(--color-bg-subtle, #F0EEE9);
	border-color: var(--color-brand-primary, #E57B8A);
	color: var(--color-brand-primary, #E57B8A);
}

.button-success {
	background: var(--color-health-positive, #2D7A6E);
	box-shadow: var(--shadow-teal, 0 4px 14px rgba(77, 158, 145, 0.25));
}

.button-success:hover {
	background: var(--color-teal-500, #2D7A6E);
	transform: translateY(-2px) scale(1.02);
}

/* Touch-friendly interactive elements */
button,
input[type="submit"],
input[type="button"],
select {
	min-height: 44px;
	min-width: 44px;
}

/* ========================================
   13. Trimester Color Coding (data-trimester)
   ======================================== */

.week-content[data-trimester="1"] {
	border-left: 4px solid transparent;
	border-image: linear-gradient(180deg,
		var(--color-trimester-1) 0%,
		rgba(59, 130, 246, 0.3) 100%
	) 1;
	box-shadow:
		0 0 0 1px rgba(59, 130, 246, 0.1),
		0 8px 16px rgba(0, 0, 0, 0.08);
}

.week-content[data-trimester="2"] {
	border-left: 4px solid transparent;
	border-image: linear-gradient(180deg,
		var(--color-trimester-2) 0%,
		rgba(16, 185, 129, 0.3) 100%
	) 1;
	box-shadow:
		0 0 0 1px rgba(16, 185, 129, 0.1),
		0 8px 16px rgba(0, 0, 0, 0.08);
}

.week-content[data-trimester="3"] {
	border-left: 4px solid transparent;
	border-image: linear-gradient(180deg,
		var(--color-trimester-3) 0%,
		rgba(139, 92, 246, 0.3) 100%
	) 1;
	box-shadow:
		0 0 0 1px rgba(139, 92, 246, 0.1),
		0 8px 16px rgba(0, 0, 0, 0.08);
}

/* ========================================
   14. Bottom Navigation Bar
   ======================================== */

.bottom-nav {
	display: flex;
	justify-content: space-around;
	align-items: center;
	position: fixed;
	bottom: 0;
	left: 0;
	right: 0;
	height: var(--bottom-nav-height);
	padding-bottom: var(--safe-area-bottom);
	background: var(--bottom-nav-bg);
	box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.08);
	z-index: 1000;
}

@media (min-width: 1024px) {
	.bottom-nav {
		display: none;
	}
}

.bottom-nav__tab {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-decoration: none;
	color: var(--color-text-muted);
	padding: 8px 0;
	flex: 1;
	transition: color 0.2s;
	min-height: 44px;
}

.bottom-nav__tab.is-active {
	color: var(--color-primary);
}

.bottom-nav__icon {
	display: block;
	margin: 0 auto 2px;
}

.bottom-nav__label {
	font-size: 10px;
	font-weight: 500;
}

.bottom-nav__ripple {
	position: absolute;
	border-radius: 50%;
	background-color: rgba(37, 99, 235, 0.3);
	width: 100px;
	height: 100px;
	pointer-events: none;
	transform: scale(0);
	opacity: 1;
	animation: ripple-animation 0.6s ease-out;
}

@keyframes ripple-animation {
	to {
		transform: scale(2);
		opacity: 0;
	}
}

/* ========================================
   15. Week Strip
   ======================================== */

.week-strip {
	display: flex;
	align-items: center;
	gap: 6px;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
	scroll-snap-type: x mandatory;
	padding: 12px 16px;
	background: #fff;
	border-bottom: 1px solid #e5e7eb;
}

.week-strip::-webkit-scrollbar {
	display: none;
}

.week-strip__divider {
	width: 2px;
	height: 24px;
	background: #e5e7eb;
	flex-shrink: 0;
}

.week-pill {
	min-width: var(--week-pill-size);
	height: 36px;
	border-radius: 18px;
	border: none;
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
	scroll-snap-align: center;
	flex-shrink: 0;
	transition: all 0.2s;
	padding: 0 12px;
	line-height: 36px;
	text-align: center;
	min-height: 44px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.week-pill[data-trimester="1"] {
	background: rgba(59, 130, 246, 0.1);
	color: #3b82f6;
}

.week-pill[data-trimester="2"] {
	background: rgba(16, 185, 129, 0.1);
	color: #10b981;
}

.week-pill[data-trimester="3"] {
	background: rgba(139, 92, 246, 0.1);
	color: #8b5cf6;
}

.week-pill.is-active[data-trimester="1"] {
	background: #3b82f6;
	color: white;
}

.week-pill.is-active[data-trimester="2"] {
	background: #10b981;
	color: white;
}

.week-pill.is-active[data-trimester="3"] {
	background: #8b5cf6;
	color: white;
}

/* ========================================
   16. Sticky Week Header
   ======================================== */

.sticky-week-header {
	position: sticky;
	top: 0;
	z-index: 150;
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 12px 16px;
	background: rgba(255, 255, 255, 0.8);
	backdrop-filter: blur(12px) saturate(180%);
	border-bottom: 1px solid rgba(226, 232, 240, 0.8);
	box-shadow:
		0 4px 24px rgba(0, 0, 0, 0.04),
		0 0 0 1px rgba(255, 255, 255, 0.8) inset;
}

/* Adjust sticky header for admin bar */
.admin-bar .sticky-week-header {
	top: 32px;
}

@media screen and (max-width: 782px) {
	.admin-bar .sticky-week-header {
		top: 46px;
	}
}

.sticky-week-header__nav {
	width: 44px;
	height: 44px;
	display: flex;
	align-items: center;
	justify-content: center;
	border: none;
	background: transparent;
	color: var(--color-text);
	cursor: pointer;
	padding: 0;
}

.sticky-week-header__nav:disabled {
	opacity: 0.3;
	cursor: default;
}

.sticky-week-header__title {
	font-family: var(--font-family-heading);
	font-weight: 700;
	font-size: 20px;
}

.sticky-week-header__subtitle {
	font-size: 12px;
	color: var(--color-text-muted);
}

/* Trimester progress bar */
.trimester-progress {
	display: flex;
	height: 10px;
	border-radius: var(--radius-full, 9999px);
	background: var(--color-neutral-100, #F0EEE9);
	gap: 4px;
	padding: 2px;
	margin-top: var(--space-4, 1rem);
	box-shadow: inset 0 2px 4px rgba(31, 27, 24, 0.06);
	overflow: visible;
}

.trimester-progress__segment {
	flex: 1;
	border-radius: var(--radius-full, 9999px);
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	position: relative;
}

.trimester-progress__segment--1 {
	background: linear-gradient(135deg, var(--color-pink-400, #E57B8A) 0%, var(--color-pink-500, #D94F64) 100%);
}

.trimester-progress__segment--2 {
	background: linear-gradient(135deg, var(--color-teal-400, #4D9E91) 0%, var(--color-teal-500, #2D7A6E) 100%);
}

.trimester-progress__segment--3 {
	background: linear-gradient(135deg, var(--color-lavender-300, #A888C0) 0%, var(--color-lavender-400, #8B68A8) 100%);
}

.trimester-progress__segment--filled {
	opacity: 1;
	box-shadow: 0 2px 6px rgba(31, 27, 24, 0.15);
	transform: scale(1.05);
}

.trimester-progress__segment--empty {
	opacity: 0.2;
	background: var(--color-neutral-200, #E2DDD7);
}

/* ========================================
   17. Onboarding Card
   ======================================== */

.onboarding-card {
	background: white;
	border-radius: var(--radius-xl);
	padding: 32px 20px;
	text-align: center;
	box-shadow: var(--shadow-lg);
	margin: 16px;
	border: 2px solid transparent;
	background-image: linear-gradient(white, white), var(--gradient-primary);
	background-origin: border-box;
	background-clip: padding-box, border-box;
}

.onboarding-card__icon-wrap {
	margin: 0 auto 20px;
}

.onboarding-card__title {
	font-family: var(--font-family-heading);
	font-size: 24px;
	font-weight: 800;
	margin-bottom: 8px;
}

.onboarding-card__subtitle {
	color: var(--color-text-muted);
	margin-bottom: 24px;
	font-size: var(--font-size-base);
}

.onboarding-card__input-group {
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin-bottom: 20px;
}

.onboarding-card__input {
	padding: 14px 16px;
	border-radius: var(--radius-md);
	border: 2px solid #e5e7eb;
	font-size: 16px;
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
	min-height: 44px;
	width: 100%;
	font-family: var(--font-family-base);
}

.onboarding-card__input:focus {
	border-color: var(--color-primary);
	outline: none;
}

.onboarding-card__tabs {
	display: flex;
	background: #f3f4f6;
	border-radius: var(--radius-md);
	padding: 4px;
	margin-bottom: 16px;
}

.onboarding-card__tab {
	flex: 1;
	padding: 10px;
	border: none;
	background: transparent;
	border-radius: calc(var(--radius-md) - 2px);
	cursor: pointer;
	font-weight: 500;
	font-size: var(--font-size-sm);
	font-family: var(--font-family-base);
	min-height: 44px;
	transition: all 0.2s;
}

.onboarding-card__tab.is-active {
	background: white;
	box-shadow: var(--shadow-sm);
}

/* ========================================
   17b. Dashboard Container
   ======================================== */

.dashboard-container {
	padding: 0 0 var(--spacing-xl);
}

.dashboard-container > * + * {
	margin-top: var(--spacing-lg);
}

/* ========================================
   18. Dashboard Week Card
   ======================================== */

.dashboard-week-card {
	background: var(--color-bg-surface, #FFFFFF);
	border-radius: var(--radius-card, 1rem);
	padding: var(--spacing-component-lg, 1.5rem) var(--space-5, 1.25rem);
	margin: var(--space-4, 1rem);
	position: relative;
	overflow: hidden;
	box-shadow: var(--shadow-card, 0 4px 6px rgba(31, 27, 24, 0.07));
	transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.dashboard-week-card:hover {
	box-shadow: var(--shadow-card-hover, 0 10px 15px rgba(31, 27, 24, 0.08));
	transform: translateY(-2px);
}

.dashboard-week-card::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 6px;
}

.dashboard-week-card[data-trimester="1"] {
	border: 1px solid var(--color-pink-100, #FBDFE4);
}

.dashboard-week-card[data-trimester="1"]::before {
	background: linear-gradient(90deg,
		var(--color-brand-primary, #E57B8A) 0%,
		var(--color-pink-200, #F4B8C3) 100%
	);
}

.dashboard-week-card[data-trimester="2"] {
	border: 1px solid var(--color-teal-100, #C8E8E2);
}

.dashboard-week-card[data-trimester="2"]::before {
	background: linear-gradient(90deg,
		var(--color-teal-400, #4D9E91) 0%,
		var(--color-teal-200, #96CFC4) 100%
	);
}

.dashboard-week-card[data-trimester="3"] {
	border: 1px solid var(--color-lavender-100, #E8DAEF);
}

.dashboard-week-card[data-trimester="3"]::before {
	background: linear-gradient(90deg,
		var(--color-lavender-300, #A888C0) 0%,
		var(--color-lavender-200, #C6B2D9) 100%
	);
}

.dashboard-week-card__header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 16px;
}

.dashboard-week-card__week {
	font-family: var(--font-family-heading);
	font-size: 28px;
	font-weight: 800;
}

.dashboard-week-card__comparison {
	font-size: 14px;
	color: var(--color-text-muted);
	margin-bottom: 16px;
}

.dashboard-week-card__stats {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 12px;
	margin-bottom: 20px;
}

.dashboard-week-card__stat {
	text-align: center;
	padding: 12px 8px;
	background: #f8fafc;
	border-radius: var(--radius-md);
}

.dashboard-week-card__stat-value {
	font-weight: 700;
	font-size: 16px;
	color: var(--color-primary);
}

.dashboard-week-card__stat-label {
	font-size: 11px;
	color: var(--color-text-muted);
	margin-top: 4px;
}

/* ========================================
   19. Quick Actions
   ======================================== */

.quick-actions {
	display: flex;
	gap: 12px;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	padding: 16px;
	scrollbar-width: none;
	background: var(--color-bg-secondary);
	margin: 0 -16px;
	border-radius: 0;
}

.quick-actions::-webkit-scrollbar {
	display: none;
}

.quick-action-card {
	min-width: 140px;
	flex-shrink: 0;
	scroll-snap-align: start;
	background: white;
	border-radius: var(--radius-lg);
	padding: 16px;
	box-shadow: var(--shadow-sm);
	text-decoration: none;
	color: inherit;
	transition: transform 0.2s;
}

.quick-action-card:active {
	transform: scale(0.97);
}

.quick-action-card__icon {
	width: 40px;
	height: 40px;
	border-radius: var(--radius-md);
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 10px;
	font-size: 20px;
}

.quick-action-card__title {
	font-weight: 600;
	font-size: 14px;
	margin-bottom: 4px;
}

.quick-action-card__meta {
	font-size: 12px;
	color: var(--color-text-muted);
}

/* ========================================
   20. Expandable Cards
   ======================================== */

.expandable-card {
	background: var(--color-bg-surface, #FFFFFF);
	border-radius: var(--radius-card, 1rem);
	margin-bottom: var(--space-3, 0.75rem);
	box-shadow: var(--shadow-card, 0 4px 6px rgba(31, 27, 24, 0.07));
	border: 1px solid var(--color-border-subtle, #F0EEE9);
	overflow: hidden;
	transition: all 0.2s ease;
}

.expandable-card:hover {
	box-shadow: var(--shadow-card-hover, 0 10px 15px rgba(31, 27, 24, 0.08));
	transform: translateY(-1px);
}

.expandable-card--highlighted {
	border-left: 4px solid var(--color-brand-primary, #E57B8A);
	background: linear-gradient(to right, var(--color-bg-pink, #FDF2F4) 0%, var(--color-bg-surface, #FFFFFF) 100%);
}

.expandable-card__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 16px;
	cursor: pointer;
	-webkit-user-select: none;
	user-select: none;
	min-height: 44px;
}

.expandable-card__header-left {
	display: flex;
	align-items: center;
	gap: 12px;
}

.expandable-card__icon {
	width: 36px;
	height: 36px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 18px;
	flex-shrink: 0;
}

.expandable-card__title {
	font-family: var(--font-family-heading);
	font-weight: 700;
	font-size: 16px;
}

.expandable-card__badge {
	font-size: 10px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	padding: 3px 8px;
	border-radius: 10px;
	background: var(--color-warning);
	color: white;
}

.expandable-card__chevron {
	transition: transform 0.3s;
	color: var(--color-text-muted);
}

.expandable-card.is-expanded .expandable-card__chevron {
	transform: rotate(180deg);
}

.expandable-card__body {
	max-height: 0;
	overflow: hidden;
	transition: max-height 0.4s ease;
}

.expandable-card.is-expanded .expandable-card__body {
	max-height: 2000px;
}

.expandable-card__content {
	padding: 0 16px 16px;
}

/* ========================================
   21. Week Content Area
   ======================================== */

.week-content-area {
	padding: 16px;
	max-width: 800px;
	margin: 0 auto;
}

.week-stats-bar {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 8px;
	margin-bottom: 16px;
}

.week-stat {
	text-align: center;
	padding: 12px 8px;
	background: white;
	border-radius: var(--radius-md);
	box-shadow: var(--shadow-sm);
}

.week-stat__value {
	font-weight: 700;
	font-size: 15px;
}

.week-stat__label {
	font-size: 11px;
	color: var(--color-text-muted);
	margin-top: 2px;
}

/* ========================================
   19a. Single Article
   ======================================== */

.single-article {
	max-width: 720px;
	margin: 0 auto;
	padding: 0 var(--spacing-md) var(--spacing-xl);
}

.single-article__header {
	margin-bottom: var(--spacing-lg);
}

.single-article__meta {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 13px;
	color: var(--color-text-muted);
	margin-bottom: 12px;
}

.single-article__category {
	background: rgba(59, 130, 246, 0.1);
	color: var(--color-primary);
	padding: 2px 10px;
	border-radius: 10px;
	font-weight: 500;
	font-size: 12px;
}

.single-article__title {
	font-size: 26px;
	font-weight: 800;
	line-height: 1.25;
	color: var(--color-text-primary);
	margin-bottom: 8px;
}

@media (min-width: 768px) {
	.single-article__title {
		font-size: 32px;
	}
}

.single-article__excerpt {
	font-size: 17px;
	color: var(--color-text-secondary);
	line-height: 1.6;
}

.single-article__featured {
	margin-bottom: var(--spacing-lg);
	border-radius: var(--border-radius-lg);
	overflow: hidden;
}

.single-article__featured img {
	width: 100%;
	height: auto;
	display: block;
}

.single-article__content {
	font-size: 16px;
	line-height: 1.75;
	color: var(--color-text-primary);
}

.single-article__content h2 {
	font-size: 22px;
	font-weight: 700;
	margin-top: var(--spacing-xl);
	margin-bottom: var(--spacing-sm);
}

.single-article__content h3 {
	font-size: 18px;
	font-weight: 600;
	margin-top: var(--spacing-lg);
	margin-bottom: var(--spacing-sm);
}

.single-article__content p {
	margin-bottom: var(--spacing-md);
}

.single-article__content ul,
.single-article__content ol {
	margin-bottom: var(--spacing-md);
	padding-left: var(--spacing-lg);
}

.single-article__content li {
	margin-bottom: var(--spacing-xs);
}

.single-article__content blockquote {
	border-left: 4px solid var(--color-primary);
	padding: var(--spacing-md);
	margin: var(--spacing-lg) 0;
	background: rgba(59, 130, 246, 0.05);
	border-radius: 0 var(--border-radius-md) var(--border-radius-md) 0;
	font-style: italic;
	color: var(--color-text-secondary);
}

.single-article__footer {
	margin-top: var(--spacing-xl);
	padding-top: var(--spacing-lg);
	border-top: 1px solid var(--color-border);
}

.single-article__nav {
	display: flex;
	flex-direction: column;
	gap: var(--spacing-md);
}

@media (min-width: 600px) {
	.single-article__nav {
		flex-direction: row;
		justify-content: space-between;
	}
}

.single-article__nav-link {
	display: block;
	padding: 12px 16px;
	border: 1px solid var(--color-border);
	border-radius: var(--border-radius-md);
	text-decoration: none;
	transition: all 0.2s ease;
	flex: 1;
}

.single-article__nav-link:hover {
	border-color: var(--color-primary);
	background: rgba(59, 130, 246, 0.04);
}

.single-article__nav-link--next {
	text-align: right;
}

.single-article__nav-label {
	display: block;
	font-size: 12px;
	color: var(--color-text-muted);
	margin-bottom: 4px;
}

.single-article__nav-title {
	font-weight: 600;
	font-size: var(--font-size-sm);
	color: var(--color-primary);
}

/* ========================================
   19b. Blog Archive Grid
   ======================================== */

.blog-container {
	padding: 0 var(--spacing-md) var(--spacing-xl);
	max-width: 900px;
	margin: 0 auto;
}

.blog-container__title {
	font-size: 24px;
	font-weight: 800;
	color: var(--color-text-primary);
	margin-bottom: 4px;
}

.blog-container__subtitle {
	color: var(--color-text-secondary);
	font-size: var(--font-size-base);
	margin-bottom: var(--spacing-lg);
}

.blog-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: var(--spacing-md);
}

@media (min-width: 600px) {
	.blog-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (min-width: 1024px) {
	.blog-grid {
		grid-template-columns: repeat(3, 1fr);
	}
}

.blog-card {
	background: var(--color-bg-surface, #FFFFFF);
	border: 1px solid var(--color-border-subtle, #F0EEE9);
	border-radius: var(--radius-card, 1rem);
	overflow: hidden;
	transition: all 0.2s ease;
	box-shadow: var(--shadow-sm, 0 1px 3px rgba(31, 27, 24, 0.06));
}

.blog-card:hover {
	box-shadow: var(--shadow-card-hover, 0 10px 15px rgba(31, 27, 24, 0.08));
	transform: translateY(-2px);
	border-color: var(--color-border-default, #E2DDD7);
}

.blog-card__thumb {
	aspect-ratio: 16 / 9;
	overflow: hidden;
}

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

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

.blog-card__thumb--placeholder {
	background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(139, 92, 246, 0.1));
	display: flex;
	align-items: center;
	justify-content: center;
}

.blog-card__thumb-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--color-text-muted, #9D968D);
	opacity: 0.6;
}

.blog-card__body {
	padding: 16px;
}

.blog-card__meta {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 12px;
	color: var(--color-text-muted);
	margin-bottom: 8px;
}

.blog-card__category {
	background: rgba(59, 130, 246, 0.1);
	color: var(--color-primary);
	padding: 2px 8px;
	border-radius: 10px;
	font-weight: 500;
}

.blog-card__title {
	font-size: 16px;
	font-weight: 700;
	line-height: 1.3;
	margin-bottom: 8px;
}

.blog-card__title a {
	color: var(--color-text-primary);
	text-decoration: none;
}

.blog-card__title a:hover {
	color: var(--color-primary);
}

.blog-card__excerpt {
	font-size: var(--font-size-sm);
	color: var(--color-text-secondary);
	line-height: 1.5;
	margin-bottom: 12px;
}

.blog-card__read-more {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	font-size: var(--font-size-sm);
	font-weight: 600;
	color: var(--color-primary);
	text-decoration: none;
	transition: gap 0.2s ease;
}

.blog-card__read-more:hover {
	gap: 8px;
}

.blog-empty {
	text-align: center;
	padding: 60px 20px;
	color: var(--color-text-secondary);
}

.blog-empty__icon {
	margin: 0 auto 16px;
}

/* Pagination */
.nav-links {
	display: flex;
	justify-content: center;
	gap: 8px;
	margin-top: var(--spacing-xl);
}

.nav-links .page-numbers {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 10px;
	background: var(--color-bg);
	border: 1px solid var(--color-border);
	color: var(--color-text-primary);
	text-decoration: none;
	font-weight: 500;
	transition: all 0.2s ease;
}

.nav-links .page-numbers.current {
	background: var(--color-primary);
	color: white;
	border-color: var(--color-primary);
}

.nav-links .page-numbers:hover:not(.current) {
	border-color: var(--color-primary);
	color: var(--color-primary);
}

/* ========================================
   20a. Baby Size Visualization Card
   ======================================== */

.baby-size-card {
	background: var(--color-bg-primary);
	border: none;
	border-radius: var(--radius-xl);
	padding: 28px;
	text-align: center;
	margin-bottom: var(--spacing-lg);
	/* Soft UI shadows */
	box-shadow:
		12px 12px 24px rgba(0, 0, 0, 0.08),
		-12px -12px 24px rgba(255, 255, 255, 0.9),
		0 0 0 1px rgba(0, 0, 0, 0.02) inset;
}

.baby-size-card[data-trimester="1"] {
	background: linear-gradient(135deg,
		rgba(59, 130, 246, 0.02) 0%,
		rgba(59, 130, 246, 0.06) 100%
	);
}

.baby-size-card[data-trimester="2"] {
	background: linear-gradient(135deg,
		rgba(16, 185, 129, 0.02) 0%,
		rgba(16, 185, 129, 0.06) 100%
	);
}

.baby-size-card[data-trimester="3"] {
	background: linear-gradient(135deg,
		rgba(139, 92, 246, 0.02) 0%,
		rgba(139, 92, 246, 0.06) 100%
	);
}

.baby-size-card__visual {
	margin-bottom: 12px;
}

.baby-size-card__emoji {
	font-size: 72px;  /* увеличено с 56px */
	line-height: 1;
	/* Float animation applied via animations.css */
}

.baby-size-card__info {
	margin-bottom: 16px;
}

.baby-size-card__comparison {
	font-weight: 600;
	font-size: 16px;
	color: var(--color-text-primary);
	margin-bottom: 4px;
}

.baby-size-card__metrics {
	font-size: var(--font-size-sm);
	color: var(--color-text-secondary);
}

.baby-size-card__scale {
	margin-top: 8px;
}

.baby-size-card__scale-bar {
	height: 6px;
	background: var(--color-bg-secondary);
	border-radius: 3px;
	overflow: hidden;
}

.baby-size-card__scale-fill {
	height: 100%;
	border-radius: 3px;
	transition: width 0.5s ease;
}

.baby-size-card[data-trimester="1"] .baby-size-card__scale-fill {
	background: var(--gradient-primary);
}

.baby-size-card[data-trimester="2"] .baby-size-card__scale-fill {
	background: linear-gradient(90deg, #10b981, #34d399);
}

.baby-size-card[data-trimester="3"] .baby-size-card__scale-fill {
	background: linear-gradient(90deg, #8b5cf6, #a78bfa);
}

.baby-size-card__scale-labels {
	display: flex;
	justify-content: space-between;
	font-size: 10px;
	color: var(--color-text-muted);
	margin-top: 4px;
}

/* ========================================
   20b. Dad Weekly Actions
   ======================================== */

.dad-actions {
	background: var(--color-bg);
	border: 1px solid var(--color-border);
	border-radius: var(--border-radius-lg);
	padding: 16px;
	margin-top: var(--spacing-md);
}

.dad-actions__header {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 12px;
	padding-bottom: 12px;
	border-bottom: 1px solid var(--color-border);
}

.dad-actions__icon {
	font-size: 18px;
}

.dad-actions__title {
	font-weight: 600;
	font-size: var(--font-size-base);
	color: var(--color-text-primary);
}

.dad-actions__list {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.dad-actions__item {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 10px 12px;
	border-radius: var(--border-radius-md);
	background: var(--color-bg-secondary);
	cursor: pointer;
	transition: all 0.2s ease;
	user-select: none;
}

.dad-actions__item:hover {
	background: rgba(16, 185, 129, 0.08);
}

.dad-actions__item.is-done {
	opacity: 0.6;
}

.dad-actions__item.is-done .dad-actions__text {
	text-decoration: line-through;
	color: var(--color-text-muted);
}

.dad-actions__checkbox {
	position: absolute;
	opacity: 0;
	width: 0;
	height: 0;
}

.dad-actions__checkmark {
	width: 22px;
	height: 22px;
	border-radius: 6px;
	border: 2px solid var(--color-border);
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all 0.2s ease;
	background: var(--color-bg);
}

.dad-actions__checkbox:checked + .dad-actions__checkmark {
	background: #10b981;
	border-color: #10b981;
}

.dad-actions__checkbox:checked + .dad-actions__checkmark::after {
	content: '\2713';
	color: white;
	font-size: 14px;
	font-weight: 700;
	line-height: 1;
}

.dad-actions__text {
	font-size: var(--font-size-base);
	color: var(--color-text-primary);
	line-height: 1.4;
}

/* ========================================
   21a. Calendar Timeline
   ======================================== */

.timeline {
	position: relative;
	padding: var(--spacing-sm) 0;
}

.timeline-item {
	display: flex;
	gap: 12px;
	position: relative;
}

.timeline-item__line {
	display: flex;
	flex-direction: column;
	align-items: center;
	flex-shrink: 0;
	width: 24px;
}

.timeline-item__dot {
	width: 24px;
	height: 24px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	z-index: 1;
	transition: all 0.3s ease;
}

.timeline-item--past .timeline-item__dot {
	background: var(--color-text-muted);
	color: white;
}

.timeline-item--current .timeline-item__dot {
	background: var(--color-primary);
	color: white;
	width: 28px;
	height: 28px;
	margin-left: -2px;
	box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.2);
	animation: pulse-dot 2s ease-in-out infinite;
}

.timeline-item--future .timeline-item__dot {
	background: var(--color-bg-secondary);
	border: 2px solid var(--color-border);
	width: 20px;
	height: 20px;
	margin-left: 2px;
}

@keyframes pulse-dot {
	0%, 100% { box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.2); }
	50% { box-shadow: 0 0 0 8px rgba(59, 130, 246, 0.1); }
}

.timeline-item__connector {
	width: 2px;
	flex-grow: 1;
	min-height: 16px;
	margin: 4px 0;
}

.timeline-item--past .timeline-item__connector {
	background: var(--color-text-muted);
}

.timeline-item--current .timeline-item__connector,
.timeline-item--future .timeline-item__connector {
	background: var(--color-border);
}

.timeline-item__card {
	display: flex;
	gap: 12px;
	align-items: flex-start;
	background: var(--color-bg);
	border: 1px solid var(--color-border);
	border-radius: var(--border-radius-lg);
	padding: 12px 16px;
	margin-bottom: 8px;
	flex-grow: 1;
	transition: all 0.2s ease;
}

.timeline-item--past .timeline-item__card {
	opacity: 0.6;
}

.timeline-item--current .timeline-item__card {
	border-color: var(--color-primary);
	background: rgba(59, 130, 246, 0.04);
	box-shadow: 0 2px 8px rgba(59, 130, 246, 0.1);
}

.timeline-item__icon {
	font-size: 24px;
	flex-shrink: 0;
	line-height: 1;
}

.timeline-item__content {
	flex-grow: 1;
	min-width: 0;
}

.timeline-item__title {
	font-weight: 600;
	font-size: var(--font-size-base);
	color: var(--color-text-primary);
	margin-bottom: 2px;
}

.timeline-item--past .timeline-item__title {
	text-decoration: line-through;
	color: var(--color-text-muted);
}

.timeline-item__date {
	font-size: var(--font-size-sm);
	color: var(--color-primary);
	font-weight: 500;
	margin-bottom: 4px;
}

.timeline-item--past .timeline-item__date {
	color: var(--color-text-muted);
}

.timeline-item__desc {
	font-size: var(--font-size-sm);
	color: var(--color-text-secondary);
	line-height: 1.4;
}

/* ========================================
   21b. Checklist Category Tabs & Badges
   ======================================== */

.checklist-tabs {
	display: flex;
	gap: 8px;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
	-ms-overflow-style: none;
	padding: 0 0 var(--spacing-md);
	margin-bottom: var(--spacing-sm);
}

.checklist-tabs::-webkit-scrollbar {
	display: none;
}

.checklist-tab {
	flex-shrink: 0;
	padding: 8px 16px;
	border-radius: 20px;
	border: 1.5px solid var(--color-border);
	background: var(--color-bg);
	color: var(--color-text-secondary);
	font-size: var(--font-size-sm);
	font-weight: 500;
	cursor: pointer;
	transition: all 0.2s ease;
	white-space: nowrap;
}

.checklist-tab:hover {
	border-color: var(--color-primary);
	color: var(--color-primary);
}

.checklist-tab.is-active {
	background: var(--color-primary);
	color: white;
	border-color: var(--color-primary);
}

.checklist-item__category-badge {
	display: inline-block;
	font-size: 11px;
	font-weight: 500;
	padding: 2px 8px;
	border-radius: 10px;
	margin-top: 6px;
	background: var(--color-bg-secondary);
	color: var(--color-text-muted);
}

.checklist-item__category-badge[data-cat="documents"] {
	background: rgba(239, 68, 68, 0.1);
	color: #ef4444;
}

.checklist-item__category-badge[data-cat="for_mom"] {
	background: rgba(168, 85, 247, 0.1);
	color: #a855f7;
}

.checklist-item__category-badge[data-cat="for_baby"] {
	background: rgba(59, 130, 246, 0.1);
	color: #3b82f6;
}

.checklist-item__category-badge[data-cat="for_dad"] {
	background: rgba(16, 185, 129, 0.1);
	color: #10b981;
}

.checklist-item__category-badge[data-cat="afterbirth"] {
	background: rgba(245, 158, 11, 0.1);
	color: #f59e0b;
}

/* ========================================
   22. Breadcrumbs
   ======================================== */

.breadcrumbs {
	padding: var(--spacing-md) var(--spacing-md);
	font-size: var(--font-size-sm);
	color: var(--color-text-secondary);
}

@media (min-width: 768px) {
	.breadcrumbs {
		padding: var(--spacing-md) 0;
	}
}

.breadcrumbs a {
	color: var(--color-primary);
	text-decoration: none;
}

.breadcrumbs a:hover {
	text-decoration: underline;
}

.breadcrumbs span {
	margin: 0 var(--spacing-xs);
}

/* ========================================
   23. Back to Top Button
   ======================================== */

.back-to-top {
	position: fixed;
	bottom: calc(var(--bottom-nav-height) + var(--safe-area-bottom) + 12px);
	right: 16px;
	background: var(--color-primary);
	color: white;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	border: none;
	cursor: pointer;
	display: none;
	align-items: center;
	justify-content: center;
	font-size: 20px;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
	z-index: 999;
	transition: all 0.3s ease;
}

@media (min-width: 1024px) {
	.back-to-top {
		bottom: 30px;
		right: 30px;
		width: 50px;
		height: 50px;
		font-size: 24px;
	}
}

.back-to-top:hover {
	background: var(--color-secondary);
	transform: translateY(-4px);
}

.back-to-top.visible {
	display: flex;
}

/* ========================================
   24. Week Navigation
   ======================================== */

.week-navigation {
	display: flex;
	flex-direction: column;
	gap: var(--spacing-md);
	margin-top: var(--spacing-xl);
	padding-top: var(--spacing-xl);
	border-top: 2px solid var(--color-border);
}

@media (min-width: 768px) {
	.week-navigation {
		flex-direction: row;
		justify-content: space-between;
		align-items: center;
	}
}

.week-navigation .button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: var(--spacing-sm);
	width: 100%;
}

@media (min-width: 768px) {
	.week-navigation .button {
		width: auto;
	}
}

/* ========================================
   25. Astra Header Override
   ======================================== */

/* Hide Astra header & footer — using custom T-Journal header instead */
.papagid-app .ast-site-header,
.papagid-app #masthead,
.papagid-app .ast-mobile-header-wrap,
.papagid-app .ast-mobile-popup-drawer,
.papagid-app .ast-desktop-header,
.papagid-app .ast-above-header,
.papagid-app .ast-below-header {
	display: none !important;
}

/* Hide footer on mobile */
@media (max-width: 1023px) {
	.papagid-app .site-footer,
	.papagid-app footer.site-footer {
		display: none !important;
	}
}

.main-header-bar,
.ast-primary-header .ast-builder-menu .main-header-bar {
	background: var(--gradient-primary) !important;
	border-bottom: none !important;
	box-shadow: 0 4px 20px rgba(37, 99, 235, 0.3) !important;
}

/* Compact desktop header */
@media (min-width: 1024px) {
	.main-header-bar {
		padding: 8px 0 !important;
		min-height: auto !important;
	}
}

.ast-site-identity .site-title a,
.ast-site-identity .site-title a:visited,
.ast-site-identity .site-title a:hover {
	color: white !important;
	font-family: var(--font-family-heading) !important;
	font-weight: 900 !important;
	font-size: 22px !important;
	letter-spacing: -0.02em;
}

@media (min-width: 768px) {
	.ast-site-identity .site-title a,
	.ast-site-identity .site-title a:visited,
	.ast-site-identity .site-title a:hover {
		font-size: 28px !important;
	}
}

.ast-site-identity .site-description {
	color: rgba(255, 255, 255, 0.85) !important;
}

.main-header-menu > .menu-item > a,
.ast-header-break-point .ast-builder-menu .main-header-menu > .menu-item > a,
.main-header-menu > .menu-item > .ast-menu-toggle {
	color: rgba(255, 255, 255, 0.9) !important;
	font-weight: 500 !important;
	transition: color 0.3s ease !important;
}

.main-header-menu > .menu-item > a:hover,
.main-header-menu > .menu-item:hover > a,
.main-header-menu > .menu-item.current-menu-item > a {
	color: white !important;
}

.main-header-menu > .menu-item.current-menu-item > a {
	font-weight: 700 !important;
}

/* Admin bar color fix */
.admin-bar .main-header-bar {
	margin-top: 0;
}

/* ========================================
   26. Astra Footer Override
   ======================================== */

.ast-footer-markup,
.site-footer,
.ast-small-footer,
footer.site-footer {
	background: #0f172a !important;
	color: rgba(255, 255, 255, 0.7) !important;
}

/* Offset footer from bottom nav on mobile */
.site-footer {
	padding-bottom: calc(var(--bottom-nav-height) + var(--safe-area-bottom));
}

@media (min-width: 1024px) {
	.site-footer {
		padding-bottom: 0;
	}
}

.ast-footer-markup a,
.site-footer a,
.ast-small-footer a {
	color: rgba(255, 255, 255, 0.9) !important;
	transition: color 0.3s ease;
}

.ast-footer-markup a:hover,
.site-footer a:hover,
.ast-small-footer a:hover {
	color: #93c5fd !important;
}

.ast-small-footer {
	border-top-color: rgba(255, 255, 255, 0.1) !important;
}

/* ========================================
   27. Animations & Keyframes
   ======================================== */

@keyframes slideUp {
	from {
		opacity: 0;
		transform: translateY(20px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@keyframes fadeIn {
	from {
		opacity: 0;
		transform: translateY(10px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@keyframes checkmark {
	0% {
		transform: scale(0);
	}
	50% {
		transform: scale(1.2);
	}
	100% {
		transform: scale(1);
	}
}

.tool-card:nth-child(1) { animation: slideUp 0.4s ease-out 0.1s both; }
.tool-card:nth-child(2) { animation: slideUp 0.4s ease-out 0.2s both; }
.tool-card:nth-child(3) { animation: slideUp 0.4s ease-out 0.3s both; }

.content-card,
.week-content,
.checklist-item {
	animation: fadeIn 0.3s ease-out;
}

.checklist-item input[type="checkbox"]:checked {
	animation: checkmark 0.3s ease-out;
}

/* Smooth transitions */
.button,
.btn-primary,
.content-card,
.tool-card,
.checklist-item {
	transition: all 0.2s ease;
}

/* ========================================
   28. Responsive — Large Mobile (480px+)
   ======================================== */

@media (min-width: 480px) {
	.dashboard-week-card {
		margin: 16px auto;
		max-width: 480px;
	}

	.onboarding-card {
		margin: 24px auto;
		max-width: 440px;
	}

	.quick-action-card {
		min-width: 160px;
	}
}

/* ========================================
   29. Responsive — Tablet (768px+)
   ======================================== */

@media (min-width: 768px) {
	.dashboard-week-card {
		max-width: 600px;
		padding: 28px 24px;
	}

	.onboarding-card {
		max-width: 500px;
		padding: 40px 32px;
	}

	.onboarding-card__title {
		font-size: 28px;
	}

	.expandable-card__title {
		font-size: 18px;
	}

	.week-content-area {
		padding: 20px;
	}

	.week-stats-bar {
		gap: 12px;
	}

	.week-stat {
		padding: 16px 12px;
	}

	.week-stat__value {
		font-size: 17px;
	}

	.quick-actions {
		padding: 0 20px 20px;
	}
}

/* ========================================
   30. Responsive — Desktop (1024px+)
   ======================================== */

@media (min-width: 1024px) {
	.dashboard-week-card {
		max-width: 720px;
		padding: 32px 28px;
		margin: 24px auto;
	}

	.onboarding-card {
		max-width: 540px;
		padding: 48px 40px;
	}

	.onboarding-card__title {
		font-size: 30px;
	}

	.week-content-area {
		padding: 24px;
	}

	.quick-actions {
		justify-content: center;
		flex-wrap: wrap;
		overflow-x: visible;
		padding: 0 24px 24px;
	}

	.quick-action-card {
		min-width: 180px;
	}

	.expandable-card__header {
		padding: 20px;
	}

	.expandable-card__content {
		padding: 0 20px 20px;
	}

	.sticky-week-header {
		padding: 16px 24px;
	}

	.week-strip {
		padding: 12px 24px;
		justify-content: center;
	}
}

/* ========================================
   31. Responsive — Wide Desktop (1280px+)
   ======================================== */

@media (min-width: 1280px) {
	.dashboard-week-card {
		max-width: 800px;
	}

	.week-content-area {
		padding: 24px 0;
	}

	.quick-action-card {
		min-width: 200px;
	}
}

/* ========================================
   32. Utility & Accessibility Helpers
   ======================================== */

/* Ensure focus visibility for keyboard navigation */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
	outline: 2px solid var(--color-primary);
	outline-offset: 2px;
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}
}

/* Screen reader only */
.sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border-width: 0;
}

/* Hide scrollbar utility */
.no-scrollbar {
	scrollbar-width: none;
	-ms-overflow-style: none;
}

.no-scrollbar::-webkit-scrollbar {
	display: none;
}

/* ========================================
   Empty State Component
   ======================================== */

.empty-state {
	padding: 60px 24px;
	text-align: center;
}

.empty-state__container {
	max-width: 480px;
	margin: 0 auto;
}

.empty-state__icon {
	margin: 0 auto 24px;
}

.empty-state__title {
	font-family: var(--font-family-display, 'Playfair Display', serif);
	font-size: var(--font-size-2xl, 1.875rem);
	font-weight: var(--font-weight-bold, 700);
	color: var(--color-text-primary, #1F1B18);
	margin-bottom: 12px;
}

.empty-state__message {
	font-size: var(--font-size-md, 1.125rem);
	color: var(--color-text-secondary, #6B6560);
	margin-bottom: 32px;
	line-height: var(--line-height-relaxed, 1.625);
}

.empty-state__quick-links {
	margin-top: 40px;
}

.empty-state__links-title {
	font-size: var(--font-size-sm, 0.8rem);
	font-weight: var(--font-weight-semibold, 600);
	color: var(--color-text-muted, #9D968D);
	text-transform: uppercase;
	letter-spacing: var(--letter-spacing-wide, 0.025em);
	margin-bottom: 16px;
}

.empty-state__links-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
	gap: 12px;
}

.empty-state__link {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 12px 16px;
	background: var(--color-bg-subtle, #F0EEE9);
	border-radius: var(--radius-lg, 0.75rem);
	text-decoration: none;
	color: var(--color-text-primary, #1F1B18);
	font-size: var(--font-size-sm, 0.8rem);
	font-weight: var(--font-weight-medium, 500);
	transition: all 0.2s ease;
}

.empty-state__link:hover {
	background: var(--color-brand-primary-light, #FBDFE4);
	color: var(--color-brand-primary, #E57B8A);
	transform: translateY(-2px);
	box-shadow: var(--shadow-sm, 0 1px 3px rgba(31, 27, 24, 0.06));
}

.empty-state__link-icon {
	display: flex;
	align-items: center;
	color: currentColor;
}

/* ========================================
   Feed Filters Component
   ======================================== */

.feed-filters {
	margin: 16px;
	margin-bottom: 24px;
}

.feed-filters__container {
	display: flex;
	gap: 8px;
	overflow-x: auto;
	padding: 4px;
}

.feed-filter-btn {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 10px 16px;
	background: var(--color-bg-surface, #FFFFFF);
	border: 2px solid var(--color-border-subtle, #F0EEE9);
	border-radius: var(--radius-button, 9999px);
	color: var(--color-text-secondary, #6B6560);
	font-size: var(--font-size-sm, 0.8rem);
	font-weight: var(--font-weight-medium, 500);
	cursor: pointer;
	transition: all 0.2s ease;
	white-space: nowrap;
}

.feed-filter-btn:hover {
	background: var(--color-bg-subtle, #F0EEE9);
	border-color: var(--color-border-default, #E2DDD7);
	color: var(--color-text-primary, #1F1B18);
}

.feed-filter-btn.is-active {
	background: var(--color-brand-primary, #E57B8A);
	border-color: var(--color-brand-primary, #E57B8A);
	color: var(--color-text-inverse, #FFFFFF);
	font-weight: var(--font-weight-semibold, 600);
	box-shadow: var(--shadow-pink, 0 4px 14px rgba(229, 123, 138, 0.30));
}

.feed-filter-btn__icon {
	display: flex;
	align-items: center;
	color: currentColor;
}

.feed-filter-btn__label {
	line-height: 1;
}

/* ========================================
   Responsive Design Improvements
   ======================================== */

/* Mobile Typography Adjustments */
@media (max-width: 640px) {
	h1 {
		font-size: var(--font-size-3xl, 2.25rem);
	}

	h2 {
		font-size: var(--font-size-2xl, 1.875rem);
	}

	h3 {
		font-size: var(--font-size-xl, 1.5rem);
	}

	.lead {
		font-size: var(--font-size-md, 1.125rem);
	}
}

/* Mobile Card Spacing */
@media (max-width: 768px) {
	.dashboard-week-card,
	.onboarding-card,
	.expandable-card {
		margin-left: var(--space-2, 0.5rem);
		margin-right: var(--space-2, 0.5rem);
		padding: var(--space-4, 1rem);
	}

	.blog-card {
		border-radius: var(--radius-lg, 0.75rem);
	}

	/* Mobile button adjustments */
	.button,
	.btn-primary {
		width: 100%;
		padding: var(--space-4, 1rem) var(--space-6, 1.5rem);
	}

	.btn-primary--full {
		width: 100%;
	}
}

/* Tablet Optimizations */
@media (min-width: 768px) and (max-width: 1024px) {
	.empty-state__links-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

/* Desktop Enhancements */
@media (min-width: 1024px) {
	/* Add subtle hover states */
	.icon-wrap:hover {
		transform: scale(1.1) rotate(5deg);
	}

	/* Smooth transitions on larger screens */
	.blog-card,
	.dashboard-week-card,
	.expandable-card {
		will-change: transform;
	}
}

/* ========================================
   Print Styles
   ======================================== */

@media print {
	.site-header,
	.tjournal-sidebar,
	.feed-filters,
	.btn-my-week,
	.site-header__mobile-menu {
		display: none !important;
	}

	body {
		background: white;
		color: black;
	}

	.blog-card,
	.dashboard-week-card {
		box-shadow: none;
		border: 1px solid #ddd;
		page-break-inside: avoid;
	}
}

/* ========================================
   Accessibility Improvements
   ======================================== */

/* Focus Styles */
*:focus-visible {
	outline: 3px solid var(--color-brand-primary, #E57B8A);
	outline-offset: 2px;
	border-radius: var(--radius-sm, 0.25rem);
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
	outline: 3px solid var(--color-brand-primary, #E57B8A);
	outline-offset: 2px;
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}

	.icon-wrap:hover {
		transform: none;
	}
}

/* Dark Mode Support (Future) */
@media (prefers-color-scheme: dark) {
	/* Placeholder for future dark mode implementation */
	/* Currently disabled to maintain warm, light aesthetic */
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
	.button,
	.btn-primary {
		border: 2px solid currentColor;
	}

	.blog-card,
	.dashboard-week-card,
	.expandable-card {
		border: 2px solid var(--color-border-default, #E2DDD7);
	}
}

/* =============================================================================
   Single Week Template — /weekly-guide/{slug}/
   ========================================================================== */

.single-week {
    max-width: 720px;
    margin: 0 auto;
    padding: var(--spacing-md, 16px);
}

.single-week__header {
    margin-bottom: var(--spacing-lg, 24px);
}

.single-week__nav-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--spacing-md, 16px);
    margin-bottom: var(--spacing-sm, 8px);
}

.single-week__title-group {
    text-align: center;
}

.single-week__title {
    font-family: 'Playfair Display', serif;
    font-size: var(--font-size-2xl, 31px);
    font-weight: 700;
    margin: 0;
    color: var(--color-text, #2D2520);
}

.single-week__trimester {
    font-size: var(--font-size-sm, 14px);
    color: var(--color-text-muted, #8A8580);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.single-week__nav-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 8px 12px;
    border-radius: var(--border-radius-md, 12px);
    color: var(--color-brand-accent, #00A896);
    text-decoration: none;
    font-weight: 600;
    font-size: var(--font-size-sm, 14px);
    transition: background-color 0.15s ease;
}

.single-week__nav-link:hover {
    background-color: var(--color-teal-50, #E6F7F5);
}

/* Bottom navigation between weeks */
.single-week__nav-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: var(--spacing-xl, 32px);
    padding-top: var(--spacing-lg, 24px);
    border-top: 1px solid var(--color-border, #E2DDD7);
}

.single-week__nav-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    border-radius: 9999px;
    font-size: var(--font-size-sm, 14px);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.15s ease;
}

.single-week__nav-btn--prev,
.single-week__nav-btn--next {
    color: var(--color-brand-accent, #00A896);
    background-color: var(--color-teal-50, #E6F7F5);
}

.single-week__nav-btn--prev:hover,
.single-week__nav-btn--next:hover {
    background-color: var(--color-brand-accent, #00A896);
    color: #fff;
}

.single-week__nav-btn--all {
    color: var(--color-text-muted, #8A8580);
    background-color: var(--color-bg-secondary, #F0EDEA);
}

.single-week__nav-btn--all:hover {
    color: var(--color-text, #2D2520);
    background-color: var(--color-border, #E2DDD7);
}

/* Mobile adjustments for single week */
@media (max-width: 479px) {
    .single-week {
        padding: var(--spacing-sm, 8px);
    }

    .single-week__title {
        font-size: var(--font-size-xl, 25px);
    }

    .single-week__nav-bottom {
        flex-direction: column;
        gap: var(--spacing-sm, 8px);
    }

    .single-week__nav-btn {
        width: 100%;
        justify-content: center;
    }
}

/* =============================================================================
   Astra Theme Override — Fix Grid Layout Conflict
   ========================================================================== */

/* Remove Astra's container constraints that interfere with our grid.
   Astra sets .ast-container to display:flex (row), max-width:1240px, padding:20px.
   This causes <header> and <div.tjournal-layout> to sit side-by-side horizontally,
   pushing the layout far to the right. Fix: force block display + remove constraints. */
#content.site-content > .ast-container {
    display: block !important;
    max-width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin: 0 !important;
}

/* Force grid display on tjournal-layout in case Astra overrides it */
.tjournal-layout {
    display: grid !important;
}
