/* Superior Celebrations Article Component Suite */

:where(.article-block) {
	--article-content-width: 56.25rem;
	--article-narrow-width: 47.5rem;
	--article-wide-width: 68.75rem;
	--article-page-width: var(--default-content-width, 90rem);
	--article-heading-color: var(--teal-600, #257a9a);
	--article-heading-font: var(--secondary-font-family, Georgia, "Times New Roman", serif);
	--article-body-font: var(--primary-font-family, Arial, sans-serif);
	--article-border-color: var(--gray-300, #ddd);
	--article-muted-background: var(--gray-100, #f5f5f5);
	--article-white: var(--white, #fff);
	--article-focus: var(--focus, #257a9a);
	box-sizing: border-box;
	width: 100%;
	margin-inline: auto;
	color: inherit;
	font-family: var(--article-body-font);
}

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

.article-width--narrow {
	max-width: var(--article-narrow-width);
}

.article-width--standard {
	max-width: var(--article-content-width);
}

.article-width--small {
	max-width: var(--article-content-width);
}

.article-width--wide {
	max-width: var(--article-wide-width);
}

.article-width--full {
	max-width: var(--article-page-width);
}

.article-block p,
.article-block li {
	line-height: 1.7;
}

.article-block p {
	margin: 0 0 1.25rem;
}

.article-block h1,
.article-block h2,
.article-block h3,
.article-block h4 {
	color: var(--article-heading-color);
	font-family: var(--article-heading-font);
	font-style: normal;
	font-weight: var(--font-regular, 400);
}

.article-block h1 {
	margin: 0 0 1.25rem;
	font-size: clamp(2.25rem, 5vw, var(--display-three, 3rem));
	line-height: 1.08;
	text-wrap: balance;
}

.article-block h2 {
	margin: 2.75rem 0 1rem;
	font-size: var(--title-one, 1.75rem);
	line-height: 1.2;
}

.article-block h3 {
	margin: 2rem 0 0.75rem;
	font-size: var(--title-two, 1.5rem);
	line-height: 1.25;
}

.article-block h4 {
	margin: 1.5rem 0 0.625rem;
	font-family: var(--article-body-font);
	font-size: var(--subheading-large, 1.25rem);
	font-weight: var(--font-bold, 700);
	line-height: 1.35;
}

.article-block h1[id],
.article-block h2[id],
.article-block h3[id],
.article-block h4[id] {
	scroll-margin-top: 6rem;
}

.article-block ul,
.article-block ol {
	margin: 0 0 1.5rem;
	padding-left: 1.5rem;
}

.article-block li {
	margin-bottom: 0.5rem;
}

.article-block li:last-child {
	margin-bottom: 0;
}

.article-block a:focus-visible {
	outline: 2px solid var(--article-focus);
	outline-offset: 3px;
}

/* Header */

.article-header {
	max-width: var(--article-page-width);
}

.article-header__content,
.article-header__toc-wrap {
	width: min(100%, var(--article-content-width));
	margin-inline: auto;
}

.article-header__intro {
	margin-bottom: 1.75rem;
	font-size: 1.125rem;
	line-height: 1.75;
}

.article-header__intro p,
.article-header__intro li {
	line-height: inherit;
}

.article-header__intro > :last-child {
	margin-bottom: 0;
}

.article-header__hero {
	margin: 2rem auto;
}

.article-header__hero--content {
	max-width: var(--article-content-width);
}

.article-header__hero--wide {
	max-width: var(--article-wide-width);
}

.article-header__hero--full {
	max-width: var(--article-page-width);
}

.article-header__hero img,
.article-image img,
.article-rich-text img {
	display: block;
	max-width: 100%;
	height: auto;
	margin-inline: auto;
}

.article-header figcaption,
.article-image figcaption,
.article-rich-text figcaption {
	margin-top: 0.625rem;
	font-size: var(--paragraph-small, 0.875rem);
	line-height: 1.5;
	color: var(--gray-500, #666);
}

/* Automatic table of contents */

.article-toc {
	margin: 2rem 0 2.5rem;
	padding: 1.25rem 1.5rem;
	background: var(--article-muted-background);
	border: 1px solid var(--article-border-color);
	border-radius: var(--default-border-radius, 4px);
}

.article-toc[hidden] {
	display: none;
}

.article-toc__title {
	display: block;
	margin-bottom: 0.75rem;
	font-weight: var(--font-bold, 700);
}

.article-toc ul {
	margin: 0;
	padding-left: 1.25rem;
	columns: 2;
	column-gap: 2.5rem;
}

.article-toc li {
	margin-bottom: 0.4rem;
	break-inside: avoid;
}

/* Rich text */

.article-rich-text__content > :first-child {
	margin-top: 0;
}

.article-rich-text__content > :last-child {
	margin-bottom: 0;
}

.article-rich-text img {
	margin-block: 2rem;
}

.article-rich-text figure {
	margin: 2rem 0;
}

.article-rich-text figure img {
	margin-block: 0;
}

.article-rich-text hr {
	margin: 2.5rem 0;
	border: 0;
	border-top: 1px solid var(--article-border-color);
}

.article-rich-text blockquote {
	margin: 1.75rem 0;
	padding: 1.25rem 1.5rem;
	background: var(--article-muted-background);
	border: 0;
	border-left: 4px solid var(--article-heading-color);
}

.article-rich-text blockquote > :last-child {
	margin-bottom: 0;
}

/* Responsive tables */

.article-table-wrap {
	width: 100%;
	margin: 1.5rem 0 2rem;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}

.article-table-wrap table,
.article-rich-text table {
	width: 100%;
	min-width: 37.5rem;
	margin: 0;
	border-collapse: collapse;
	border: 1px solid var(--article-border-color);
}

.article-rich-text th,
.article-rich-text td {
	padding: 0.85rem 1rem;
	text-align: left;
	vertical-align: top;
	border-bottom: 1px solid var(--article-border-color);
}

.article-rich-text th {
	font-weight: var(--font-bold, 700);
	background: var(--article-muted-background);
}

.article-rich-text tr:last-child td {
	border-bottom: 0;
}

/* Structured image */

.article-image figure {
	margin: 0;
}

.article-image--small img {
	max-width: 32rem;
}

.article-image a {
	display: block;
}

.article-image--small figcaption {
	max-width: 32rem;
	margin-inline: auto;
}

/* Callouts */

.article-callout {
	padding: 1.25rem 1.5rem;
	background: var(--article-muted-background);
	border-left: 4px solid var(--gray-500, #666);
}

.article-callout--tip {
	border-left-color: var(--teal-600, #257a9a);
}

.article-callout--important {
	border-left-color: var(--purple-600, #8d3a72);
}

.article-callout--note {
	border-left-color: var(--blue-400, #2e669e);
}

.article-callout__title {
	display: block;
	margin-bottom: 0.5rem;
	font-weight: var(--font-bold, 700);
}

.article-callout__content > :last-child {
	margin-bottom: 0;
}

/* Related resources */

.article-resources h2 {
	margin-top: 0;
}

.article-resources__intro > :last-child {
	margin-bottom: 0;
}

.article-resources__list {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1rem;
	margin: 1.25rem 0 0;
	padding: 0;
	list-style: none;
}

.article-resources__item {
	margin: 0;
}

.article-resources__item a {
	display: block;
	height: 100%;
	padding: 1rem;
	background: var(--article-white);
	border: 1px solid var(--article-border-color);
	border-radius: var(--default-border-radius, 4px);
	text-decoration: none;
}

.article-resources__item a:hover .article-resources__title,
.article-resources__item a:focus .article-resources__title {
	text-decoration: underline;
}

.article-resources__title,
.article-resources__summary {
	display: block;
}

.article-resources__title {
	font-weight: var(--font-bold, 700);
}

.article-resources__summary {
	margin-top: 0.375rem;
	line-height: 1.55;
}

@media (max-width: 43.75rem) {
	.article-header__intro {
		font-size: 1.05rem;
	}

	.article-toc {
		padding: 1rem 1.25rem;
	}

	.article-toc ul {
		columns: 1;
	}

	.article-block h2 {
		margin-top: 2.25rem;
	}

	.article-resources__list {
		grid-template-columns: 1fr;
	}
}

@media print {
	.article-block {
		max-width: none;
	}

	.article-toc,
	.article-callout,
	.article-resources__item {
		break-inside: avoid;
	}
}

/* Editorial quotes / testimonials */

.article-quote {
	margin-inline: auto;
}

.article-quote__inner {
	display: grid;
	align-items: center;
	gap: clamp(1.5rem, 4vw, 3rem);
}

.article-quote--image-left .article-quote__inner,
.article-quote--image-right .article-quote__inner {
	grid-template-columns: minmax(15rem, 0.72fr) minmax(0, 1.28fr);
}

.article-quote--image-right .article-quote__media {
	order: 2;
}

.article-quote--image-right .article-quote__body {
	order: 1;
}

.article-quote__media {
	margin: 0;
}

.article-quote__media img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: var(--default-border-radius, 4px);
}

.article-quote__image-caption {
	margin: 0.625rem 0 0;
	font-size: var(--paragraph-small, 0.875rem);
	line-height: 1.5;
	color: var(--gray-500, #666);
}

.article-quote blockquote {
	position: relative;
	margin: 0;
	padding: 0 0 0 2.25rem;
	border: 0;
}

.article-quote blockquote::before {
	content: "\201C";
	position: absolute;
	top: -0.12em;
	left: 0;
	color: var(--article-heading-color);
	font-family: var(--article-heading-font);
	font-size: clamp(3rem, 6vw, 5rem);
	font-weight: var(--font-regular, 400);
	line-height: 1;
	opacity: 0.28;
}

.article-quote__content {
	font-family: var(--article-heading-font);
	font-size: clamp(1.5rem, 2.6vw, 2.125rem);
	font-style: normal;
	font-weight: var(--font-regular, 400);
	line-height: 1.35;
	text-wrap: pretty;
}

.article-quote__content p,
.article-quote__content li {
	line-height: inherit;
}

.article-quote__content > :first-child {
	margin-top: 0;
}

.article-quote__content > :last-child {
	margin-bottom: 0;
}

.article-quote__attribution {
	margin-top: 1.25rem;
	padding-left: 2.25rem;
	font-style: normal;
	line-height: 1.45;
	color: var(--gray-600, #555);
}

.article-quote__name {
	display: block;
	font-weight: var(--font-bold, 700);
	color: inherit;
}

.article-quote__context {
	display: block;
	margin-top: 0.125rem;
}

.article-quote__links {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem 1.25rem;
	margin-top: 1rem;
	padding-left: 2.25rem;
	font-size: 0.9375rem;
	line-height: 1.5;
}

.article-quote__links a {
	font-weight: var(--font-bold, 700);
}

@media (max-width: 43.75rem) {
	.article-quote--image-left .article-quote__inner,
	.article-quote--image-right .article-quote__inner {
		grid-template-columns: 1fr;
	}

	.article-quote--image-left .article-quote__body,
	.article-quote--image-right .article-quote__body {
		order: 1;
	}

	.article-quote--image-left .article-quote__media,
	.article-quote--image-right .article-quote__media {
		order: 2;
	}

	.article-quote blockquote,
	.article-quote__attribution,
	.article-quote__links {
		padding-left: 1.75rem;
	}
}

@media print {
	.article-quote {
		break-inside: avoid;
	}
}
