:root {
	--mm-plum: #713B58;
	--mm-plum-dark: #582C44;
	--mm-rose: #E9A8B8;
	--mm-coral: #E87968;
	--mm-coral-dark: #D05D4B;
	--mm-cream: #FFF9F5;
	--mm-white: #FFFFFF;
	--mm-text: #342D32;
	--mm-muted: #766D73;
	--mm-border: rgba(113, 59, 88, 0.16);
	--mm-radius: 14px;
}

/* Message Cards */
.mm-msg-card {
	background: var(--mm-white);
	border: 1px solid var(--mm-border);
	border-left: 4px solid var(--mm-plum);
	border-radius: var(--mm-radius);
	padding: 1.25rem 1.35rem;
	margin: 1rem 0;
	box-shadow: 0 2px 10px rgba(52, 45, 50, 0.04);
}

.mm-msg-tag {
	display: inline-block;
	font-size: 0.78rem;
	font-weight: 600;
	color: var(--mm-plum);
	background: rgba(233, 168, 184, 0.25);
	padding: 0.2rem 0.65rem;
	border-radius: 999px;
	margin-bottom: 0.65rem;
}

.mm-msg-text {
	font-size: 1.0625rem;
	line-height: 1.65;
	color: var(--mm-text);
	margin: 0 0 1rem 0;
}

.mm-msg-text.mm-selected {
	background: rgba(233, 168, 184, 0.28);
	border-radius: 6px;
}

.mm-msg-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.6rem;
}

.mm-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: 0.55rem 1.1rem;
	border-radius: 10px;
	font-size: 0.9375rem;
	font-weight: 600;
	line-height: 1.2;
	cursor: pointer;
	border: 1px solid transparent;
	text-decoration: none;
	transition: background-color 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}

.mm-btn:focus-visible {
	outline: 3px solid var(--mm-coral);
	outline-offset: 2px;
}

.mm-btn-primary {
	background: var(--mm-plum);
	color: var(--mm-white);
}

.mm-btn-primary:hover {
	background: var(--mm-plum-dark);
	color: var(--mm-white);
}

.mm-btn-secondary {
	background: var(--mm-cream);
	color: var(--mm-plum);
	border-color: var(--mm-rose);
}

.mm-btn-secondary:hover {
	background: rgba(233, 168, 184, 0.25);
	color: var(--mm-plum-dark);
}

.mm-btn-accent {
	background: var(--mm-coral);
	color: var(--mm-white);
}

.mm-btn-accent:hover {
	background: var(--mm-coral-dark);
	color: var(--mm-white);
}

.mm-copy-feedback {
	margin: 0.6rem 0 0 0;
	min-height: 1.25em;
	font-size: 0.875rem;
	font-weight: 600;
	color: var(--mm-plum);
}

.mm-copy-feedback.is-error {
	color: #9C2B2E;
}

/* Homepage & Hub Sections */
.mm-hero {
	background: linear-gradient(135deg, #FFF9F5 0%, #FCEEF2 100%);
	border: 1px solid var(--mm-border);
	border-radius: 18px;
	padding: 2.25rem 1.75rem;
	margin-bottom: 2rem;
	text-align: center;
}

.mm-hero h1 {
	color: var(--mm-plum);
	margin-top: 0;
	margin-bottom: 0.65rem;
}

.mm-hero p {
	color: var(--mm-text);
	max-width: 640px;
	margin: 0 auto 1.35rem auto;
	font-size: 1.08rem;
}

.mm-hero-actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.75rem;
}

.mm-section-box {
	background: var(--mm-white);
	border: 1px solid var(--mm-border);
	border-radius: 16px;
	padding: 1.5rem;
	margin: 1.75rem 0;
}

.mm-section-box.is-cream {
	background: var(--mm-cream);
}

.mm-cat-grid,
.mm-post-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 1rem;
	margin: 1rem 0;
}

.mm-cat-card,
.mm-post-card {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	background: var(--mm-white);
	border: 1px solid var(--mm-border);
	border-radius: var(--mm-radius);
	padding: 1.15rem;
	text-decoration: none;
	color: var(--mm-text);
	transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.mm-cat-card:hover {
	border-color: var(--mm-plum);
	box-shadow: 0 4px 14px rgba(113, 59, 88, 0.08);
}

.mm-cat-card:focus-visible {
	outline: 3px solid var(--mm-coral);
	outline-offset: 2px;
}

.mm-cat-title {
	font-size: 1.08rem;
	color: var(--mm-plum);
	margin-bottom: 0.35rem;
}

.mm-cat-desc {
	font-size: 0.92rem;
	color: var(--mm-muted);
	margin-bottom: 0.75rem;
}

.mm-cat-cta {
	font-size: 0.875rem;
	font-weight: 600;
	color: var(--mm-coral-dark);
}

.mm-post-cat {
	font-size: 0.78rem;
	font-weight: 600;
	color: var(--mm-plum);
	margin-bottom: 0.4rem;
}

.mm-post-title {
	font-size: 1.08rem;
	margin: 0 0 0.5rem 0;
}

.mm-post-title a {
	color: var(--mm-text);
	text-decoration: none;
}

.mm-post-title a:hover {
	color: var(--mm-plum);
	text-decoration: underline;
}

.mm-post-excerpt {
	font-size: 0.93rem;
	color: var(--mm-muted);
	margin: 0;
}

.mm-empty-note {
	color: var(--mm-muted);
	font-style: italic;
}

/* Message Generator MVP */
.mm-generator {
	background: var(--mm-white);
	border: 1px solid var(--mm-border);
	border-radius: 18px;
	padding: 1.5rem;
	margin: 1.5rem 0;
}

.mm-generator-header h2 {
	color: var(--mm-plum);
	margin-top: 0;
	margin-bottom: 0.4rem;
}

.mm-generator-header p {
	color: var(--mm-muted);
	margin-top: 0;
}

.mm-generator-form {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
	gap: 1rem;
	align-items: end;
	margin-bottom: 1.25rem;
}

.mm-field {
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
}

.mm-field label {
	font-size: 0.9rem;
	font-weight: 600;
	color: var(--mm-text);
}

.mm-field select {
	min-height: 44px;
	padding: 0.5rem 0.75rem;
	border: 1px solid var(--mm-border);
	border-radius: 10px;
	background: var(--mm-cream);
	color: var(--mm-text);
	font-size: 0.95rem;
}

.mm-field select:focus-visible {
	outline: 3px solid var(--mm-coral);
	outline-offset: 2px;
}

.mm-generator-meta {
	font-size: 0.9rem;
	color: var(--mm-muted);
	margin-bottom: 0.5rem;
}

.mm-notice-draft {
	background: #FFF4E5;
	border: 1px solid #F0C36D;
	border-radius: 12px;
	padding: 1rem 1.25rem;
	margin: 1rem 0;
	color: #5C3C00;
}

@media (max-width: 600px) {
	.mm-hero {
		padding: 1.5rem 1rem;
	}
	.mm-msg-card {
		padding: 1rem;
	}
	.mm-msg-actions .mm-btn {
		flex: 1 1 auto;
	}
}
