/*
 * Editorial article shell.
 *
 * Step 3 establishes the responsive featured-image hero and overlapping title
 * card. Sidebar modules and the consultation CTA are styled in later steps.
 */

.swre-article-bento {
	--swre-article-canvas: #f7f4ec;
	--swre-article-surface: #ffffff;
	--swre-article-ink: #101011;
	--swre-article-muted: #66645f;
	--swre-article-gold: #d8ad2c;
	--swre-article-gold-strong: #916c0b;
	--swre-article-line: #dedbd2;
	--swre-article-radius: 12px;
	--swre-article-shadow: 0 18px 42px rgba( 21, 18, 11, 0.1 );
	--swre-article-container: 82.5rem;
	--swre-article-sidebar: 23rem;
	background: var(--swre-article-canvas);
	color: var(--swre-article-ink);
	margin: 0;
	max-width: none;
	min-width: 0;
	padding: 0 0 clamp(4rem, 8vw, 7rem);
}

.swre-article-hero {
	background: #ded8ca;
	min-height: clamp(22rem, 37vw, 34rem);
	overflow: hidden;
	position: relative;
}

.swre-article-hero__media {
	height: 100%;
	inset: 0;
	position: absolute;
	width: 100%;
}

.swre-article-hero__media::after {
	background: linear-gradient(180deg, rgba(8, 10, 12, 0.02) 48%, rgba(8, 10, 12, 0.2) 100%);
	content: '';
	inset: 0;
	pointer-events: none;
	position: absolute;
}

.swre-article-hero__image {
	display: block;
	height: 100%;
	max-width: none;
	object-fit: cover;
	object-position: center;
	width: 100%;
}

.swre-article-hero--without-image {
	background:
		radial-gradient(circle at 78% 32%, rgba(216, 173, 44, 0.28), transparent 0 18%, transparent 19%),
		linear-gradient(118deg, #111214 0 42%, #28261f 72%, #a17a13 140%);
}

.swre-article-hero--without-image::before,
.swre-article-hero--without-image::after {
	border: 1px solid rgba(216, 173, 44, 0.22);
	content: '';
	position: absolute;
	transform: rotate(34deg);
}

.swre-article-hero--without-image::before {
	height: 28rem;
	right: 8%;
	top: -13rem;
	width: 28rem;
}

.swre-article-hero--without-image::after {
	bottom: -18rem;
	height: 34rem;
	right: 22%;
	width: 34rem;
}

.swre-article-bento__frame {
	display: grid;
	gap: clamp(1.25rem, 2.5vw, 2rem);
	grid-template-columns: minmax(0, 1fr) minmax(20rem, var(--swre-article-sidebar));
	margin: clamp(-3.75rem, -4vw, -2.75rem) auto 0;
	max-width: var(--swre-article-container);
	padding-inline: clamp(1rem, 3vw, 2.5rem);
	position: relative;
	width: 100%;
	z-index: 2;
}

.swre-article-bento__main {
	min-width: 0;
}

.swre-article-title-card {
	background: color-mix(in srgb, var(--swre-article-canvas) 94%, white);
	border: 1px solid var(--swre-article-line);
	border-radius: var(--swre-article-radius);
	box-shadow: var(--swre-article-shadow);
	padding: clamp(1.5rem, 4vw, 3rem);
}

.swre-article-title-card__eyebrow {
	color: var(--swre-article-gold-strong);
	font-size: 0.72rem;
	font-weight: 850;
	letter-spacing: 0.11em;
	line-height: 1.4;
	margin: 0 0 0.85rem;
	text-transform: uppercase;
}

.swre-article-title-card h1 {
	color: var(--swre-article-ink);
	font-family: var(--swrep-heading-font, Arial, Helvetica, sans-serif);
	font-size: clamp(2.25rem, 4.25vw, 4.4rem);
	letter-spacing: -0.035em;
	line-height: 1.02;
	margin: 0;
	max-width: 17ch;
	text-wrap: balance;
}

.swre-article-title-card__meta {
	align-items: center;
	color: var(--swre-article-muted);
	display: flex;
	flex-wrap: wrap;
	font-size: 0.875rem;
	font-weight: 600;
	gap: 0.7rem;
	line-height: 1.5;
	margin-top: 1.4rem;
}

.swre-article-title-card__meta > span[aria-hidden='true'] {
	color: var(--swre-article-gold-strong);
}

.swre-article-bento__article {
	background: var(--swre-article-surface);
	border: 1px solid var(--swre-article-line);
	border-radius: var(--swre-article-radius);
	margin-top: 1rem;
	min-width: 0;
	overflow: clip;
}

.swre-article-bento__content {
	font-size: clamp(1rem, 1.2vw, 1.0625rem);
	line-height: 1.75;
	overflow-wrap: anywhere;
	padding: clamp(1.5rem, 4vw, 3rem);
}

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

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

.swre-article-bento__content :where(h2, h3, h4) {
	color: var(--swre-article-ink);
	font-family: var(--swrep-heading-font, Arial, Helvetica, sans-serif);
	line-height: 1.2;
	scroll-margin-top: calc(var(--swre-article-companion-top, 5.5rem) + 1rem);
	text-wrap: balance;
}

.swre-article-bento__content :where(h2, h3, h4)[data-swre-generated-focus-target]:focus-visible {
	border-radius: 3px;
	outline: 3px solid var(--swrep-orange, #ee1c00);
	outline-offset: 4px;
}

.swre-article-bento__content h2 {
	border-top: 1px solid var(--swre-article-line);
	font-size: clamp(1.45rem, 2.6vw, 2rem);
	margin: 2.15rem 0 0.75rem;
	padding-top: 1.5rem;
}

.swre-article-bento__content h3 {
	font-size: clamp(1.2rem, 2vw, 1.5rem);
	margin: 1.75rem 0 0.65rem;
}

.swre-article-bento__content h4 {
	font-size: 1.05rem;
	margin: 1.5rem 0 0.55rem;
}

.swre-article-bento__content :where(p, ul, ol) {
	margin-block: 0 1rem;
}

.swre-article-bento__content :where(ul, ol) {
	padding-inline-start: 1.35rem;
}

.swre-article-bento__content li + li {
	margin-top: 0.28rem;
}

.swre-article-bento__content li::marker {
	color: var(--swre-article-gold-strong);
	font-weight: 800;
}

.swre-article-bento__content a {
	color: #765806;
	text-decoration-thickness: 1px;
	text-underline-offset: 0.16em;
}

.swre-article-bento__content a:hover {
	color: var(--swre-article-ink);
}

.swre-article-bento__content a:focus-visible {
	border-radius: 2px;
	outline: 3px solid var(--swrep-orange, #ee1c00);
	outline-offset: 3px;
}

.swre-article-bento__content :where(blockquote, .wp-block-quote, .wp-block-pullquote) {
	background: var(--swre-article-canvas);
	border: 1px solid var(--swre-article-line);
	border-left: 4px solid var(--swre-article-gold);
	border-radius: 8px;
	font-size: 0.95em;
	margin: 1.5rem 0;
	padding: 1rem 1.15rem;
}

.swre-article-bento__content :where(blockquote, .wp-block-quote, .wp-block-pullquote) > :last-child {
	margin-bottom: 0;
}

.swre-article-bento__content :where(figure, .wp-block-image, .wp-block-embed) {
	margin: 1.5rem 0;
	max-width: 100%;
}

.swre-article-bento__content :where(figcaption, .wp-element-caption) {
	color: var(--swre-article-muted);
	font-size: 0.78rem;
	line-height: 1.5;
	margin-top: 0.5rem;
	text-align: left;
}

.swre-article-bento__content :where(iframe, embed) {
	border: 0;
	display: block;
}

.swre-article-bento__content .wp-block-separator {
	border: 0;
	border-top: 1px solid var(--swre-article-line);
	margin: 2rem 0;
}

.swre-article-bento__content :where(img, video, iframe, embed) {
	max-width: 100%;
}

.swre-article-bento__content img {
	height: auto;
}

.swre-article-bento__content :where(pre, table) {
	max-width: 100%;
}

.swre-article-bento__content pre {
	background: #171718;
	border-radius: 8px;
	color: #f8f6ef;
	font-size: 0.85rem;
	overflow-x: auto;
	padding: 1rem;
	-webkit-overflow-scrolling: touch;
}

.swre-article-bento__content .wp-block-table {
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}

.swre-article-bento__content table {
	border-collapse: collapse;
	font-size: 0.88rem;
	width: 100%;
}

.swre-article-bento__content :where(th, td) {
	border: 1px solid var(--swre-article-line);
	padding: 0.7rem;
	text-align: left;
	vertical-align: top;
}

.swre-article-bento__content th {
	background: var(--swre-article-canvas);
	font-weight: 800;
}

.swre-article-bento__content code:not(pre code) {
	background: var(--swre-article-canvas);
	border-radius: 3px;
	font-size: 0.9em;
	padding: 0.12em 0.3em;
	word-break: break-word;
}

.swre-article-bento__content .wp-block-button__link {
	background: var(--swre-article-ink);
	border: 1px solid var(--swre-article-ink);
	border-radius: 7px;
	color: var(--swre-article-surface);
	font-weight: 800;
	padding: 0.75rem 1rem;
	text-decoration: none;
}

/* Step 4: upper Bento widget deck. */
.swre-article-sidebar {
	align-self: stretch;
	display: flex;
	flex-direction: column;
	max-height: none;
	min-width: 0;
	overflow: visible;
	position: relative;
}

.swre-article-sidebar__runway {
	align-content: start;
	display: grid;
	flex: 1 1 auto;
	gap: 0.75rem;
	grid-template-columns: minmax(0, 1fr);
	min-height: 0;
	min-width: 0;
	overflow: visible;
	position: relative;
}

.swre-article-sidebar__companion {
	align-self: start;
	background: var(--swre-article-canvas);
	display: grid;
	gap: 0.75rem;
	grid-template-columns: minmax(0, 1fr);
	min-width: 0;
	overflow: visible;
	width: 100%;
	z-index: 3;
}

.swre-article-sidebar__supporting {
	min-width: 0;
	overflow: visible;
}

.swre-article-sidebar__widgets {
	display: grid;
	gap: 0.75rem;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	max-height: none;
	overflow: visible;
}

.swre-article-widget {
	background: var(--swre-article-surface);
	border: 1px solid var(--swre-article-line);
	border-radius: var(--swre-article-radius);
	box-shadow: 0 10px 30px rgba(21, 18, 11, 0.07);
	box-sizing: border-box;
	color: var(--swre-article-ink);
	grid-column: 1 / -1;
	margin: 0;
	min-width: 0;
	overflow: visible;
	padding: 1rem;
}

.swre-article-widget--compact {
	grid-column: span 1;
}

.swre-article-widget--custom:has(.is-style-swre-sidebar-compact) {
	grid-column: span 1;
}

.swre-article-widget :where(h2, h3, p, dl, ol, ul) {
	margin-top: 0;
}

.swre-article-widget h2,
.swre-article-widget__title {
	color: var(--swre-article-ink);
	font-family: var(--swrep-heading-font, Arial, Helvetica, sans-serif);
	font-size: 0.95rem;
	line-height: 1.3;
	margin-bottom: 0;
}

.swre-article-widget__heading {
	align-items: center;
	display: flex;
	gap: 0.65rem;
}

.swre-article-widget__heading--split {
	justify-content: space-between;
}

.swre-article-widget__heading--split > a {
	color: var(--swre-article-gold-strong);
	font-size: 0.72rem;
	font-weight: 800;
	text-decoration: none;
}

.swre-article-widget__mark {
	border: 2px solid currentColor;
	border-radius: 4px;
	color: var(--swre-article-gold-strong);
	height: 1rem;
	position: relative;
	width: 0.85rem;
}

.swre-article-widget__mark::after {
	background: currentColor;
	content: '';
	height: 2px;
	left: 2px;
	position: absolute;
	top: 3px;
	width: 4px;
}

.swre-article-progress {
	accent-color: var(--swre-article-gold);
	display: block;
	height: 0.35rem;
	margin-top: 1rem;
	width: 100%;
}

.swre-article-progress::-webkit-progress-bar {
	background: #e9e5dc;
	border-radius: 999px;
}

.swre-article-progress::-webkit-progress-value {
	background: var(--swre-article-gold);
	border-radius: 999px;
}

.swre-article-progress::-moz-progress-bar {
	background: var(--swre-article-gold);
	border-radius: 999px;
}

.swre-article-progress__meta {
	color: var(--swre-article-muted);
	display: flex;
	font-size: 0.72rem;
	font-weight: 650;
	justify-content: space-between;
	margin: 0.55rem 0 0;
}

.swre-article-widget__summary {
	display: grid;
	gap: 0.75rem;
	margin: 0.85rem 0 0;
}

.swre-article-widget__summary > div {
	display: grid;
	gap: 0.15rem;
}

.swre-article-widget__summary dt {
	color: var(--swre-article-muted);
	font-size: 0.7rem;
}

.swre-article-widget__summary dd {
	font-size: 0.78rem;
	font-weight: 800;
	margin: 0;
}

.swre-article-widget__chips {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
	list-style: none;
	margin: 0.85rem 0 0;
	padding: 0;
}

.swre-article-widget__chips a {
	background: #fbf6e8;
	border: 1px solid rgba(155, 116, 16, 0.42);
	border-radius: 6px;
	color: var(--swre-article-ink);
	display: inline-flex;
	font-size: 0.7rem;
	font-weight: 750;
	line-height: 1.3;
	padding: 0.4rem 0.55rem;
	text-decoration: none;
}

.swre-article-widget__empty {
	color: var(--swre-article-muted);
	font-size: 0.78rem;
	line-height: 1.5;
	margin-bottom: 0;
	margin-top: 0.8rem !important;
}

.swre-article-widget__list-mark {
	background: linear-gradient(var(--swre-article-gold-strong) 0 0) 0 0 / 100% 2px no-repeat,
		linear-gradient(var(--swre-article-gold-strong) 0 0) 0 50% / 100% 2px no-repeat,
		linear-gradient(var(--swre-article-gold-strong) 0 0) 0 100% / 100% 2px no-repeat;
	height: 0.8rem;
	width: 1rem;
}

.swre-article-widget__toc-list {
	display: grid;
	gap: 0.55rem;
	margin: 0.85rem 0 0;
	padding-left: 1.35rem;
}

.swre-article-widget__toc-list a {
	color: var(--swre-article-ink);
	display: inline-block;
	font-size: 0.76rem;
	font-weight: 650;
	line-height: 1.4;
	padding-block: 0.15rem;
	text-decoration: none;
}

.swre-article-widget__toc-list li[data-swre-toc-level="3"] {
	margin-left: 0.8rem;
}

.swre-article-widget__toc-list a:hover,
.swre-article-widget__toc-list a[aria-current="location"] {
	color: var(--swre-article-gold-strong);
	text-decoration: underline;
	text-decoration-thickness: 2px;
	text-underline-offset: 0.2em;
}

.swre-article-widget__toc-list a:focus-visible {
	border-radius: 3px;
	outline: 3px solid var(--swrep-orange, #ee1c00);
	outline-offset: 3px;
}

.swre-article-widget__latest-list {
	display: grid;
	gap: 0.85rem;
	list-style: none;
	margin: 1rem 0 0;
	padding: 0;
}

.swre-article-widget__latest-list li {
	align-items: start;
	display: grid;
	gap: 0.75rem;
	grid-template-columns: 5.25rem minmax(0, 1fr);
}

.swre-article-widget__latest-media {
	aspect-ratio: 4 / 3;
	background: #e7e1d4;
	border-radius: 7px;
	display: block;
	overflow: hidden;
}

.swre-article-widget__latest-media img {
	height: 100%;
	object-fit: cover;
	width: 100%;
}

.swre-article-widget__latest-list h3 {
	font-family: var(--swrep-heading-font, Arial, Helvetica, sans-serif);
	font-size: 0.78rem;
	line-height: 1.35;
	margin: 0;
}

.swre-article-widget__latest-list h3 a {
	color: var(--swre-article-ink);
	text-decoration: none;
}

.swre-article-widget__latest-list p {
	color: var(--swre-article-muted);
	font-size: 0.65rem;
	line-height: 1.4;
	margin: 0.3rem 0 0;
}

/* Step 8: full-width related insight panel. */
.swre-article-related {
	background: var(--swre-article-surface);
	border: 1px solid var(--swre-article-line);
	border-radius: var(--swre-article-radius);
	margin: 1.25rem auto 0;
	max-width: var(--swre-article-container);
	padding: clamp(1rem, 2vw, 1.5rem);
	width: calc(100% - clamp(2rem, 6vw, 5rem));
}

.swre-article-related__heading {
	align-items: center;
	display: flex;
	gap: 1rem;
	justify-content: space-between;
	margin-bottom: 1rem;
}

.swre-article-related__heading h2 {
	font-family: var(--swrep-heading-font, Arial, Helvetica, sans-serif);
	font-size: clamp(1.25rem, 2vw, 1.55rem);
	line-height: 1.2;
	margin: 0;
}

.swre-article-related__heading > a {
	align-items: center;
	color: var(--swre-article-gold-strong);
	display: inline-flex;
	font-size: 0.75rem;
	font-weight: 800;
	gap: 0.45rem;
	text-decoration: none;
}

.swre-article-related__grid {
	display: grid;
	gap: 1rem;
	grid-template-columns: repeat(4, minmax(0, 1fr));
}

.swre-article-related-card {
	min-width: 0;
}

.swre-article-related-card__media {
	aspect-ratio: 16 / 9;
	background: #e7e1d4;
	border-radius: 8px;
	display: block;
	overflow: hidden;
}

.swre-article-related-card__media.is-empty > span {
	background:
		linear-gradient(135deg, rgba(16, 16, 17, 0.06), transparent 48%),
		linear-gradient(25deg, #f2e7c4, var(--swre-article-canvas));
	display: block;
	height: 100%;
	width: 100%;
}

.swre-article-related-card__media img {
	display: block;
	height: 100%;
	max-width: none;
	object-fit: cover;
	transition: transform 260ms ease;
	width: 100%;
}

.swre-article-related-card:hover .swre-article-related-card__media img,
.swre-article-related-card:focus-within .swre-article-related-card__media img {
	transform: scale(1.025);
}

.swre-article-related-card__body {
	padding: 0.75rem 0.25rem 0.15rem;
}

.swre-article-related-card h3 {
	font-family: var(--swrep-heading-font, Arial, Helvetica, sans-serif);
	font-size: 0.9rem;
	line-height: 1.35;
	margin: 0;
}

.swre-article-related-card h3 a {
	color: var(--swre-article-ink);
	text-decoration: none;
}

.swre-article-related-card h3 a:hover,
.swre-article-related__heading > a:hover {
	color: var(--swre-article-gold-strong);
}

.swre-article-related-card p {
	color: var(--swre-article-muted);
	font-size: 0.68rem;
	font-weight: 600;
	line-height: 1.4;
	margin: 0.55rem 0 0;
}

.swre-article-related :where(a, button):focus-visible {
	border-radius: 3px;
	outline: 3px solid var(--swrep-orange, #ee1c00);
	outline-offset: 3px;
}

.swre-article-widget--custom > :last-child {
	margin-bottom: 0;
}

.swre-article-widget :where(a, button, input, select, textarea):focus-visible {
	outline: 3px solid var(--swrep-orange, #ee1c00);
	outline-offset: 3px;
}

/* Fixed-design consultation CTA, docked below the sidebar runway. */
.swre-article-sidebar__cta {
	align-self: stretch;
	flex: 0 0 auto;
	margin-top: 0.75rem;
	max-height: none;
	overflow: visible;
	position: relative;
	top: auto;
	width: 100%;
}

.swre-article-cta {
	background: color-mix(in srgb, var(--swre-article-canvas) 92%, white);
	border: 1px solid var(--swre-article-line);
	border-radius: calc(var(--swre-article-radius) + 2px);
	box-shadow: var(--swre-article-shadow);
	color: var(--swre-article-ink);
	overflow: hidden;
	position: relative;
}

.swre-article-cta__visual {
	align-items: flex-start;
	background: linear-gradient(135deg, #171718 0%, #09090a 100%);
	border-radius: 0 0 50% 50% / 0 0 25% 25%;
	display: flex;
	justify-content: space-between;
	min-height: 8.5rem;
	padding: 1.2rem 1.25rem 2.8rem;
	position: relative;
}

.swre-article-cta__visual::after {
	background: radial-gradient(circle, rgba(216, 173, 44, 0.18) 0 1px, transparent 1.5px) 0 0 / 13px 13px;
	content: '';
	inset: 0;
	opacity: 0.38;
	pointer-events: none;
	position: absolute;
}

.swre-article-cta__eyebrow {
	color: var(--swre-article-surface);
	font-family: var(--swrep-heading-font, Arial, Helvetica, sans-serif);
	font-size: 1rem;
	font-weight: 800;
	line-height: 1.25;
	margin: 0;
	max-width: 12rem;
	position: relative;
	z-index: 1;
}

.swre-article-cta__medallion {
	align-items: center;
	background: var(--swre-article-canvas);
	border: 2px solid var(--swre-article-gold);
	border-radius: 50%;
	bottom: -2.2rem;
	box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2);
	display: flex;
	height: 5rem;
	justify-content: center;
	left: 50%;
	position: absolute;
	transform: translateX(-50%);
	width: 5rem;
	z-index: 2;
}

.swre-article-cta__medallion svg {
	fill: none;
	height: 3rem;
	stroke: var(--swre-article-gold-strong);
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-width: 2;
	width: 3rem;
}

.swre-article-cta__content {
	padding: 3rem 1rem 1rem;
	text-align: center;
}

.swre-article-cta__steps {
	align-items: center;
	color: var(--swre-article-muted);
	display: flex;
	font-size: 0.68rem;
	font-weight: 700;
	justify-content: center;
	list-style: none;
	margin: 0;
	padding: 0;
}

.swre-article-cta__steps li {
	align-items: center;
	display: flex;
}

.swre-article-cta__steps li + li::before {
	background: var(--swre-article-gold);
	border-radius: 50%;
	content: '';
	height: 0.25rem;
	margin: 0 0.6rem;
	width: 0.25rem;
}

.swre-article-cta h2 {
	color: var(--swre-article-ink);
	font-family: var(--swrep-heading-font, Arial, Helvetica, sans-serif);
	font-size: clamp(1.35rem, 2.3vw, 1.75rem);
	letter-spacing: -0.025em;
	line-height: 1.08;
	margin: 0.85rem auto 0;
	max-width: 14ch;
	text-wrap: balance;
}

.swre-article-cta__body {
	color: var(--swre-article-muted);
	font-size: 0.8rem;
	line-height: 1.55;
	margin: 0.75rem auto 0;
	max-width: 28rem;
}

.swre-article-cta__action {
	align-items: center;
	background: var(--swre-article-ink);
	border: 1px solid var(--swre-article-ink);
	border-radius: 7px;
	color: var(--swre-article-surface);
	display: flex;
	font-size: 0.8rem;
	font-weight: 850;
	gap: 0.75rem;
	justify-content: space-between;
	margin-top: 1rem;
	min-height: 3rem;
	padding: 0.75rem 1rem;
	text-decoration: none;
}

.swre-article-cta__action:hover {
	background: var(--swre-article-gold);
	border-color: var(--swre-article-gold);
	color: var(--swre-article-ink);
}

.swre-article-cta__contacts {
	display: grid;
	gap: 0.5rem;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	margin-top: 0.65rem;
}

.swre-article-cta__contacts a {
	align-items: center;
	background: var(--swre-article-surface);
	border: 1px solid var(--swre-article-line);
	border-radius: 7px;
	color: var(--swre-article-ink);
	display: flex;
	font-size: 0.66rem;
	font-weight: 750;
	gap: 0.4rem;
	justify-content: center;
	min-height: 2.6rem;
	overflow-wrap: anywhere;
	padding: 0.55rem;
	text-decoration: none;
}

.swre-article-cta__contact-icon {
	align-items: center;
	border: 1px solid var(--swre-article-line);
	border-radius: 50%;
	display: inline-flex;
	flex: 0 0 auto;
	height: 1.35rem;
	justify-content: center;
	width: 1.35rem;
}

.swre-article-cta :where(a, button):focus-visible {
	outline: 3px solid var(--swrep-orange, #ee1c00);
	outline-offset: 3px;
}

@media (min-width: 1100px) {
	.swre-article-bento.is-companion-sticky-ready .swre-article-sidebar__companion {
		position: sticky;
		top: var(--swre-article-companion-top, 6.5rem);
	}
}

@media (max-width: 1099px) {
	.swre-article-hero {
		min-height: clamp(19rem, 52vw, 30rem);
	}

	.swre-article-bento__frame {
		grid-template-columns: minmax(0, 1fr);
		margin-top: -2rem;
	}

	.swre-article-sidebar {
		align-self: stretch;
		width: 100%;
	}

	.swre-article-sidebar__runway {
		flex: none;
		gap: 1rem;
		width: 100%;
	}

	.swre-article-sidebar__companion {
		align-items: start;
		gap: 1rem;
		grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr));
		position: static;
		top: auto;
		z-index: auto;
	}

	.swre-article-sidebar__companion > .swre-article-widget {
		grid-column: auto;
	}

	.swre-article-sidebar__supporting,
	.swre-article-sidebar__widgets {
		width: 100%;
	}

	.swre-article-sidebar__widgets {
		gap: 1rem;
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.swre-article-sidebar__cta {
		margin-top: 1rem;
	}

	.swre-article-related__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 767px) {
	.swre-article-hero {
		min-height: clamp(16rem, 67vw, 23rem);
	}

	.swre-article-hero__media::after {
		background: linear-gradient(180deg, rgba(8, 10, 12, 0) 58%, rgba(8, 10, 12, 0.16) 100%);
	}

	.swre-article-bento__frame {
		gap: 1.25rem;
		margin-top: -1rem;
		padding-inline: 0.75rem;
	}

	.swre-article-title-card {
		border-radius: 10px;
		padding: 1.35rem;
	}

	.swre-article-title-card h1 {
		font-size: clamp(2rem, 10vw, 3.25rem);
		line-height: 1.04;
	}

	.swre-article-title-card__meta {
		font-size: 0.8125rem;
		margin-top: 1rem;
	}

	.swre-article-bento__content {
		font-size: 1rem;
		line-height: 1.7;
		padding: 1.35rem;
	}

	.swre-article-sidebar__runway,
	.swre-article-sidebar__companion,
	.swre-article-sidebar__widgets {
		gap: 0.75rem;
	}

	.swre-article-sidebar__companion {
		grid-template-columns: minmax(0, 1fr);
	}

	.swre-article-sidebar__companion > .swre-article-widget {
		grid-column: 1;
	}

	.swre-article-sidebar__widgets {
		grid-template-columns: minmax(0, 1fr);
	}

	.swre-article-sidebar__cta {
		margin-top: 0.75rem;
	}

	.swre-article-widget,
	.swre-article-widget--compact,
	.swre-article-widget--custom:has(.is-style-swre-sidebar-compact) {
		grid-column: 1;
	}

	.swre-article-cta__contacts {
		grid-template-columns: minmax(0, 1fr);
	}
}

@media (max-width: 420px) {
	.swre-article-bento__frame {
		padding-inline: 0.5rem;
	}

	.swre-article-title-card,
	.swre-article-widget {
		border-radius: 8px;
	}

	.swre-article-title-card {
		padding: 1.15rem;
	}

	.swre-article-title-card h1 {
		font-size: clamp(1.85rem, 9.5vw, 2.7rem);
	}

	.swre-article-widget__latest-list li {
		grid-template-columns: 4.5rem minmax(0, 1fr);
	}

	.swre-article-progress__meta {
		align-items: baseline;
		flex-wrap: wrap;
		gap: 0.25rem 0.75rem;
	}

	.swre-article-progress__meta > :last-child {
		margin-left: auto;
	}

	.swre-article-widget__toc-list {
		padding-left: 1.15rem;
	}

	.swre-article-cta__content {
		padding-inline: 0.75rem;
	}
}

@media (max-width: 639px) {
	.swre-article-related {
		width: calc(100% - 1rem);
	}

	.swre-article-related__heading {
		align-items: flex-start;
	}

	.swre-article-related__heading > a {
		white-space: nowrap;
	}

	.swre-article-related__grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.swre-article-related-card h3 {
		font-size: 1rem;
	}
}

@supports not (color: color-mix(in srgb, white, black)) {
	.swre-article-title-card,
	.swre-article-cta {
		background: #f9f6ef;
	}
}

@media (prefers-reduced-motion: reduce) {
	.swre-article-bento *,
	.swre-article-bento *::before,
	.swre-article-bento *::after {
		scroll-behavior: auto !important;
		transition-duration: 0.01ms !important;
	}
}

@media (forced-colors: active) {
	.swre-article-progress {
		border: 1px solid CanvasText;
	}

	.swre-article-widget__mark,
	.swre-article-cta__medallion {
		forced-color-adjust: none;
	}
}

@media print {
	.swre-article-bento {
		background: #fff;
		padding-bottom: 0;
	}

	.swre-article-bento__frame {
		display: block;
		margin: 0;
		max-width: none;
		padding: 0;
	}

	.swre-article-hero {
		min-height: 15rem;
	}

	.swre-article-title-card,
	.swre-article-bento__article {
		border: 0;
		box-shadow: none;
	}

	.swre-article-sidebar,
	.swre-article-related {
		display: none !important;
	}

	.swre-article-bento__content a {
		color: #000;
	}
}
