/* ===================================================================
 * Editorial
 *
 * Super Mom is a shop AND a publication: 6 articles, 3 topic hubs, and
 * three of the eight primary nav items point at category archives. This
 * file is the publication half. theme.css stays the shop.
 * ================================================================= */

/* ---- Breadcrumb and article head ---- */
.sm-crumbs {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: .5em;
	font-size: .9rem;
	color: var(--wp--preset--color--ink);
	margin-block-end: 1.1em;
}
.sm-crumbs a { color: var(--wp--preset--color--ink); text-decoration: none; opacity: .8; }
.sm-crumbs a:hover { opacity: 1; text-decoration: underline; }
.sm-crumbs span { opacity: .45; }

.sm-artcat { margin-block: 0 .5em; }
.sm-artcat a {
	display: inline-block;
	padding: .25em .8em;
	border-radius: 999px;
	background: var(--wp--preset--color--brand);
	color: var(--wp--preset--color--paper);
	font-size: .85rem;
	font-weight: 700;
	text-decoration: none;
}
.sm-artcat a:hover { background: var(--wp--preset--color--navy); }

.sm-arttitle {
	font-size: clamp(1.9rem, 4.4vw, 3rem);
	line-height: 1.18;
	color: var(--wp--preset--color--navy);
	margin-block: 0 .45em;
	text-wrap: balance;
}
.sm-byline {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: .5em;
	font-size: .95rem;
	color: var(--wp--preset--color--ink);
	margin: 0;
}
.sm-byline b { color: var(--wp--preset--color--navy); }
.sm-byline__by { opacity: .7; }
.sm-byline__sep { opacity: .4; }

/* The hero image lifts out of the tinted band into the white below it. */
.sm-arthero { margin-block-start: calc(-1 * var(--wp--preset--spacing--40)); }
.sm-arthero__img img {
	inline-size: 100%;
	border-radius: 18px;
	box-shadow: 0 18px 40px rgba(4, 41, 104, .16);
}

/* ---- Article body ---- */
.sm-article__cols { align-items: flex-start; }
.sm-prose { font-size: 1.12rem; line-height: 1.75; color: var(--wp--preset--color--ink); }
.sm-prose > * + * { margin-block-start: 1.1em; }
.sm-prose h2 {
	font-size: clamp(1.4rem, 2.6vw, 1.9rem);
	line-height: 1.25;
	color: var(--wp--preset--color--navy);
	margin-block-start: 1.9em;
	scroll-margin-block-start: 1.5rem;
}
.sm-prose h3,
.sm-prose h4 {
	font-size: 1.22rem;
	color: var(--wp--preset--color--navy);
	margin-block-start: 1.5em;
	scroll-margin-block-start: 1.5rem;
}
.sm-prose img { border-radius: 14px; block-size: auto; max-inline-size: 100%; }
.sm-prose ul,
.sm-prose ol { padding-inline-start: 1.3em; }
.sm-prose li + li { margin-block-start: .5em; }
.sm-prose a { color: var(--wp--preset--color--brand); }

/* The imported articles wrap whole sections inside one <li>. Left alone,
   the entire body sits indented behind a single bullet. */
.sm-prose > ul > li > p:first-child { margin-block-start: 0; }
.sm-prose > ul.sm-unwrapped { list-style: none; padding-inline-start: 0; }

/* ---- Sidebar ---- */
.sm-aside { position: sticky; top: 1rem; display: grid; gap: var(--wp--preset--spacing--30); }
.sm-aside__box {
	padding: 1.25em 1.35em;
	border: 2px solid #C3D9EC;
	border-radius: 16px;
	background: var(--wp--preset--color--mist);
}
.sm-aside__h { font-size: 1.05rem; color: var(--wp--preset--color--navy); margin: 0 0 .75em; }

.sm-toc ol { margin: 0; padding-inline-start: 1.15em; display: grid; gap: .45em; }
.sm-toc li { font-size: .97rem; line-height: 1.45; }
.sm-toc .sm-toc__l3 { padding-inline-start: .8em; font-size: .92rem; opacity: .85; }
.sm-toc a { color: var(--wp--preset--color--ink); text-decoration: none; }
.sm-toc a:hover { color: var(--wp--preset--color--brand); text-decoration: underline; }

.sm-aside__cats { list-style: none; margin: 0; padding: 0; display: grid; gap: .3em; }
.sm-aside__cats a {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: .6em;
	padding: .5em .7em;
	border-radius: 10px;
	color: var(--wp--preset--color--navy);
	text-decoration: none;
	font-weight: 600;
	font-size: .97rem;
}
.sm-aside__cats a:hover { background: var(--wp--preset--color--paper); }
.sm-aside__cats b {
	min-inline-size: 1.7em;
	text-align: center;
	padding: .1em .45em;
	border-radius: 999px;
	background: var(--wp--preset--color--cloud);
	font-size: .8rem;
}

.sm-aside__recent { list-style: none; margin: 0; padding: 0; display: grid; gap: .85em; }
.sm-aside__recent a {
	display: grid;
	grid-template-columns: 62px 1fr;
	gap: .7em;
	align-items: center;
	color: var(--wp--preset--color--navy);
	text-decoration: none;
	font-size: .95rem;
	line-height: 1.35;
	font-weight: 600;
}
.sm-aside__recent img { inline-size: 62px; block-size: 62px; object-fit: cover; border-radius: 10px; }
.sm-aside__recent a:hover span { color: var(--wp--preset--color--brand); }

/* ---- The product tie-in that closes an article ---- */
.sm-artcta {
	display: grid;
	grid-template-columns: 180px 1fr;
	gap: var(--wp--preset--spacing--30);
	align-items: center;
	margin-block-start: var(--wp--preset--spacing--50);
	padding: var(--wp--preset--spacing--30);
	border: 2px solid var(--wp--preset--color--brand);
	border-radius: 20px;
	background: var(--wp--preset--color--mist);
}
.sm-artcta__media img { inline-size: 100%; block-size: auto; border-radius: 14px; }
.sm-artcta__kicker {
	font-size: .8rem;
	font-weight: 700;
	letter-spacing: .06em;
	color: var(--wp--preset--color--brand);
}
.sm-artcta h2 { font-size: 1.35rem; color: var(--wp--preset--color--navy); margin: .3em 0 .4em; }
.sm-artcta p { margin: 0 0 .6em; font-size: 1rem; line-height: 1.55; }
.sm-artcta__price { font-weight: 800; color: var(--wp--preset--color--navy); font-size: 1.15rem; }
.sm-artcta__btn {
	display: inline-block;
	padding: .7em 1.5em;
	border-radius: 999px;
	background: var(--wp--preset--color--brand);
	color: var(--wp--preset--color--paper);
	font-weight: 700;
	text-decoration: none;
}
.sm-artcta__btn:hover { background: var(--wp--preset--color--navy); }

/* ---- Article cards: archives and the related row share these ---- */
.sm-cards {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: var(--wp--preset--spacing--30);
	margin-block-start: var(--wp--preset--spacing--30);
}
.sm-card {
	display: flex;
	flex-direction: column;
	border: 2px solid #C3D9EC;
	border-radius: 16px;
	overflow: hidden;
	background: var(--wp--preset--color--paper);
	text-decoration: none;
	transition: transform .18s ease, box-shadow .18s ease;
}
.sm-card:hover,
.sm-card:focus-visible {
	transform: translateY(-3px);
	box-shadow: 0 14px 30px rgba(4, 41, 104, .14);
}
.sm-card__img { aspect-ratio: 16 / 10; background: var(--wp--preset--color--mist); }
.sm-card__img img { inline-size: 100%; block-size: 100%; object-fit: cover; display: block; }
.sm-card__body { padding: 1.05em 1.15em 1.25em; display: grid; gap: .4em; }
.sm-card__cat { font-size: .8rem; font-weight: 700; color: var(--wp--preset--color--brand); }
.sm-card b { font-size: 1.1rem; line-height: 1.35; color: var(--wp--preset--color--navy); }
.sm-card p { margin: 0; font-size: .95rem; line-height: 1.5; color: var(--wp--preset--color--ink); opacity: .85; }
.sm-card__date { font-size: .85rem; color: var(--wp--preset--color--ink); opacity: .6; }

/* ---- Archive heading band ---- */
.sm-archhead { text-align: center; }
.sm-archhead__t {
	font-size: clamp(1.9rem, 4.4vw, 3rem);
	line-height: 1.18;
	color: var(--wp--preset--color--paper);
	margin: .2em 0 0;
}
.sm-archhead__d {
	margin: .7em auto 0;
	max-inline-size: 44rem;
	color: var(--wp--preset--color--cloud);
	font-size: 1.08rem;
	line-height: 1.6;
}
.sm-topics {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: .6em;
	margin-block-start: 1.4em;
}
.sm-topics a {
	padding: .45em 1.1em;
	border: 2px solid rgba(255, 255, 255, .35);
	border-radius: 999px;
	color: var(--wp--preset--color--paper);
	text-decoration: none;
	font-weight: 600;
	font-size: .97rem;
}
.sm-topics a:hover,
.sm-topics a:focus-visible {
	background: var(--wp--preset--color--brand);
	border-color: var(--wp--preset--color--brand);
}

.sm-more__h { font-size: clamp(1.5rem, 3vw, 2.1rem); color: var(--wp--preset--color--navy); margin: .1em 0 0; }
.sm-empty { text-align: center; font-size: 1.1rem; color: var(--wp--preset--color--ink); padding-block: 2rem; }

.sm-pag ul {
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	gap: .4em;
	justify-content: center;
	padding: 0;
	margin-block-start: var(--wp--preset--spacing--40);
}
.sm-pag a,
.sm-pag span {
	display: inline-block;
	padding: .5em .9em;
	border-radius: 10px;
	border: 2px solid #C3D9EC;
	color: var(--wp--preset--color--navy);
	text-decoration: none;
	font-weight: 700;
}
.sm-pag .current {
	background: var(--wp--preset--color--navy);
	color: var(--wp--preset--color--paper);
	border-color: var(--wp--preset--color--navy);
}

@media (max-width: 1080px) {
	.sm-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.sm-aside { position: static; }
}
@media (max-width: 781px) {
	.sm-cards { grid-template-columns: 1fr; }
	.sm-artcta { grid-template-columns: 1fr; text-align: center; }
	.sm-artcta__media img { max-inline-size: 220px; margin-inline: auto; }
}
@media (prefers-reduced-motion: reduce) {
	.sm-card { transition: none; }
	.sm-card:hover,
	.sm-card:focus-visible { transform: none; }
}
