.wiro-article {
	background: var(--wiro-editorial-canvas);
}

.wiro-article-hero {
	padding: var(--wiro-detail-page-top) 0 48px;
}

.wiro-breadcrumbs {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 9px;
	margin-bottom: 18px;
	color: var(--wiro-faint);
	font-family: var(--wiro-mono);
	font-size: 11px;
}

.wiro-breadcrumbs a {
	display: inline-flex;
	align-items: center;
	padding: 2px 4px;
	border-radius: var(--wiro-radius-editorial);
	color: var(--wiro-faint);
	text-decoration: none;
	transition: color var(--wiro-transition), background-color var(--wiro-transition);
}

.wiro-breadcrumbs > span + a,
.wiro-breadcrumbs > span:last-child:not([aria-hidden]) {
	color: var(--wiro-muted);
}

.wiro-breadcrumbs a:hover,
.wiro-breadcrumbs a:focus-visible {
	background: var(--wiro-editorial-wash);
	color: var(--wiro-ink);
}

.wiro-article-hero .wiro-shell > .wiro-mono-label {
	color: var(--wiro-green-text);
	font-size: 11px;
	font-weight: 500;
	letter-spacing: 0.07em;
}

.wiro-article-hero h1 {
	max-width: 1040px;
	margin: 15px 0 24px;
	overflow-wrap: anywhere;
	color: var(--wiro-ink-strong);
	font-size: 64px;
	font-weight: 500;
	letter-spacing: -0.052em;
	line-height: 1;
	text-wrap: balance;
}

.wiro-article-hero__dek {
	max-width: 760px;
	margin: 0;
	overflow-wrap: anywhere;
	color: var(--wiro-muted);
	font-size: clamp(18px, 2vw, 23px);
	line-height: 1.48;
}

.wiro-article-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px 22px;
	margin-top: 34px;
	padding-top: 20px;
	border-top: 1px solid var(--wiro-editorial-line);
	color: var(--wiro-muted);
	font-family: var(--wiro-mono);
	font-size: 9px;
	letter-spacing: 0.035em;
	text-transform: uppercase;
}

.wiro-article-meta > span,
.wiro-article-meta > time {
	display: inline-flex;
	align-items: center;
	gap: 7px;
}

.wiro-article-cover {
	margin-bottom: 64px;
}

.wiro-article-cover img {
	width: 100%;
	aspect-ratio: 8 / 5;
	object-fit: cover;
	border: 1px solid var(--wiro-editorial-line);
	border-radius: var(--wiro-radius-editorial);
}

.wiro-article-cover figcaption {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	margin-top: 14px;
	color: var(--wiro-muted);
	font-family: var(--wiro-mono);
	font-size: 9px;
	letter-spacing: 0.03em;
	line-height: 1.5;
	text-transform: uppercase;
}

.wiro-article-layout {
	display: grid;
	min-width: 0;
	align-items: start;
	justify-content: center;
	gap: 60px;
	padding-bottom: var(--wiro-section);
	grid-template-columns: 40px minmax(0, var(--wiro-reading)) 240px;
}

.wiro-article-layout.has-no-toc {
	grid-template-columns: 40px minmax(0, var(--wiro-reading));
}

.wiro-article-toc {
	position: sticky;
	top: calc(var(--wiro-chrome-height, 88px) + 80px);
	min-width: 0;
	padding: 15px 0 4px 18px;
	border-top: 2px solid var(--wiro-ink-strong);
	border-left: 0;
	grid-column: 3;
	grid-row: 1;
}

.admin-bar .wiro-article-toc {
	top: calc(var(--wiro-chrome-height, 88px) + 112px);
}

.wiro-chrome-released .wiro-article-toc {
	top: 80px;
}

.wiro-chrome-released .admin-bar .wiro-article-toc {
	top: 112px;
}

.wiro-article-toc details,
.wiro-article-toc summary {
	min-width: 0;
}

.wiro-article-toc summary {
	display: flex;
	min-height: 44px;
	align-items: center;
	margin-inline: -6px;
	padding-inline: 6px;
	border-radius: var(--wiro-radius-editorial);
	list-style: none;
	cursor: pointer;
	transition: background-color var(--wiro-transition);
}

.wiro-article-toc summary::-webkit-details-marker {
	display: none;
}

.wiro-article-toc summary:hover,
.wiro-article-toc summary:focus-visible {
	background: var(--wiro-editorial-wash);
}

.wiro-article-toc summary:hover .wiro-mono-label,
.wiro-article-toc summary:focus-visible .wiro-mono-label {
	color: var(--wiro-ink-strong);
}

.wiro-article-toc__count,
.wiro-article-toc summary > .wiro-icon {
	display: none;
}

.wiro-article-toc ol {
	display: grid;
	gap: 10px;
	margin: 14px 0 0;
	padding: 0;
	list-style: none;
}

.wiro-article-toc li {
	min-width: 0;
}

.wiro-article-toc li.is-level-3 {
	padding-left: 10px;
}

.wiro-article-toc a {
	display: block;
	overflow: hidden;
	padding: 4px 8px 4px 10px;
	border-left: 1px solid transparent;
	border-radius: 0 var(--wiro-radius-editorial) var(--wiro-radius-editorial) 0;
	color: var(--wiro-muted);
	font-size: 11px;
	font-weight: 450;
	line-height: 1.45;
	text-overflow: ellipsis;
	text-decoration: none;
	transition: color var(--wiro-transition), background-color var(--wiro-transition), border-color var(--wiro-transition);
	white-space: nowrap;
}

.wiro-article-toc a:hover,
.wiro-article-toc a:focus-visible {
	background: var(--wiro-editorial-wash);
	color: var(--wiro-ink-strong);
}

.wiro-article-toc a.is-active {
	border-left-color: var(--wiro-editorial-accent);
	background: var(--wiro-editorial-accent-soft);
	color: var(--wiro-green-text);
}

.wiro-article-content {
	min-width: 0;
	overflow-wrap: anywhere;
	color: var(--wiro-muted);
	font-family: var(--wiro-sans);
	font-size: 18px;
	font-weight: 400;
	line-height: 1.72;
	grid-column: 2;
	grid-row: 1;
}

.wiro-article-content > * {
	max-width: 100%;
}

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

.wiro-article-content > p:first-child {
	padding-bottom: 30px;
	border-bottom: 1px solid var(--wiro-editorial-line);
	color: var(--wiro-ink);
	font-size: inherit;
	line-height: inherit;
}

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

.wiro-article-content p {
	margin: 0 0 12px;
}

.wiro-article-content ul,
.wiro-article-content ol {
	margin: 0 0 14px;
}

.wiro-article-content h2,
.wiro-article-content h3,
.wiro-article-content h4,
.wiro-article-content h5,
.wiro-article-content h6 {
	scroll-margin-top: calc(var(--wiro-chrome-height, 88px) + 74px);
	overflow-wrap: anywhere;
	color: var(--wiro-ink-strong);
	font-weight: 500;
	text-wrap: balance;
}

.wiro-article-content h2 {
	margin: 2.1em 0 0.7em;
	font-size: 34px;
	letter-spacing: -0.048em;
	line-height: 1.08;
}

.wiro-article-content h3 {
	margin: 1.9em 0 0.65em;
	font-size: clamp(24px, 3vw, 32px);
	letter-spacing: -0.036em;
	line-height: 1.15;
}

.wiro-article-content h4 {
	margin: 1.7em 0 0.6em;
	font-size: 20px;
	letter-spacing: -0.025em;
}

.wiro-article-content [data-wiro-promoted-heading="3"] {
	margin: 1.9em 0 0.65em;
	font-size: clamp(24px, 3vw, 32px);
	letter-spacing: -0.036em;
	line-height: 1.15;
}

.wiro-article-content [data-wiro-promoted-heading="4"] {
	margin: 1.7em 0 0.6em;
	font-size: 20px;
	letter-spacing: -0.025em;
	line-height: normal;
}

.wiro-article-content a {
	color: var(--wiro-editorial-accent);
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}

.wiro-article-content .wiro-unavailable-link {
	opacity: 0.45;
	cursor: not-allowed;
	pointer-events: none;
}

.wiro-article-content strong {
	color: var(--wiro-ink-strong);
	font-weight: 500;
}

.wiro-article-content ul,
.wiro-article-content ol {
	padding-left: 1.25em;
}

.wiro-article-content li {
	margin-bottom: 7px;
	padding-left: 0.2em;
}

.wiro-article-content blockquote {
	margin: 2em 0;
	padding: 8px 0 8px 24px;
	border-left: 2px solid var(--wiro-editorial-accent);
	color: var(--wiro-ink-strong);
	font-size: clamp(21px, 3vw, 28px);
	letter-spacing: -0.025em;
	line-height: 1.45;
}

.wiro-article-content blockquote p {
	margin: 0;
}

.wiro-article-content figure,
.wiro-article-content .wp-block-image,
.wiro-article-content .wp-block-video,
.wiro-article-content .wp-block-embed {
	margin: 2.2em 0;
}

.wiro-article-content img,
.wiro-article-content video,
.wiro-article-content iframe {
	max-width: 100%;
	border-radius: var(--wiro-radius-editorial);
}

.wiro-article-content iframe {
	width: 100%;
	border: 0;
}

.wiro-article-content figcaption,
.wiro-article-content .wp-element-caption {
	margin-top: 9px;
	color: var(--wiro-muted);
	font-family: var(--wiro-mono);
	font-size: 9px;
	letter-spacing: 0.02em;
	line-height: 1.5;
	text-align: left;
}

.wiro-article-content pre {
	max-width: 100%;
	margin: 2em 0;
	padding: 20px;
	overflow: auto;
	border: 1px solid var(--wiro-editorial-line);
	border-radius: var(--wiro-radius-editorial);
	background: #151613;
	color: #e8eae4;
	font-family: var(--wiro-mono);
	font-size: 12px;
	line-height: 1.65;
	white-space: pre;
}

.wiro-article-content :not(pre) > code {
	padding: 0.15em 0.35em;
	border: 1px solid var(--wiro-editorial-line);
	border-radius: 3px;
	background: var(--wiro-editorial-wash);
	font-family: var(--wiro-mono);
	font-size: 0.82em;
}

.wiro-article-content .wiro-table-scroll {
	display: block;
	max-width: 100%;
	margin: 2em 0;
	overflow-x: auto;
	overscroll-behavior-inline: contain;
}

.wiro-article-content .wp-block-table > .wiro-table-scroll {
	margin: 0;
}

.wiro-article-content table {
	width: 100%;
	border-collapse: collapse;
	font-size: 12.5px;
	line-height: 1.55;
}

.wiro-article-content th,
.wiro-article-content td {
	min-width: 120px;
	padding: 11px 12px;
	border: 1px solid var(--wiro-editorial-line);
	text-align: left;
	vertical-align: top;
}

.wiro-article-content th {
	background: var(--wiro-editorial-wash);
	color: var(--wiro-ink-strong);
	font-weight: 500;
}

.wiro-article-content hr {
	margin: 3em 0;
	border: 0;
	border-top: 1px solid var(--wiro-editorial-line);
}

.wiro-article-content .wp-block-pullquote,
.wiro-article-content .wp-block-group.has-background {
	padding: 26px;
	border: 1px solid var(--wiro-editorial-line);
	border-radius: var(--wiro-radius-editorial);
	background: var(--wiro-editorial-wash) !important;
	color: var(--wiro-ink) !important;
}

.wiro-share {
	position: sticky;
	top: calc(var(--wiro-chrome-height, 88px) + 80px);
	display: grid;
	justify-items: center;
	gap: 8px;
	grid-column: 1;
	grid-row: 1;
}

.admin-bar .wiro-share {
	top: calc(var(--wiro-chrome-height, 88px) + 112px);
}

.wiro-chrome-released .wiro-share {
	top: 80px;
}

.wiro-chrome-released .admin-bar .wiro-share {
	top: 112px;
}

.wiro-share .wiro-mono-label {
	margin-bottom: 4px;
	font-size: 9px;
	writing-mode: vertical-rl;
}

.wiro-share__fallback {
	display: grid;
	gap: 8px;
}

.wiro-share__native {
	display: none;
}

.wiro-share__fallback a,
.wiro-share__fallback button {
	position: relative;
	display: grid;
	width: 36px;
	height: 36px;
	padding: 0;
	place-items: center;
	border: 1px solid var(--wiro-editorial-line);
	border-radius: var(--wiro-radius-editorial);
	background: var(--wiro-bg);
	color: var(--wiro-muted);
	font-family: var(--wiro-mono);
	font-size: 10px;
	font-weight: 500;
}

.wiro-share__fallback a::before,
.wiro-share__fallback button::before {
	position: absolute;
	inset: -5px;
	content: "";
}

.wiro-share__fallback a:hover,
.wiro-share__fallback button:hover,
.wiro-share__fallback button.is-copied {
	border-color: var(--wiro-editorial-accent);
	color: var(--wiro-editorial-accent);
}

.wiro-share__fallback button.is-copy-error {
	border-color: var(--wiro-danger);
	color: var(--wiro-danger);
}

.wiro-article-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 7px;
	margin-top: 48px;
	padding-top: 24px;
	border-top: 1px solid var(--wiro-editorial-line);
}

.wiro-article-tags span {
	padding: 6px 8px;
	border: 1px solid var(--wiro-editorial-line);
	border-radius: var(--wiro-radius-editorial);
	color: var(--wiro-muted);
	font-family: var(--wiro-mono);
	font-size: 8px;
	letter-spacing: 0.035em;
	text-transform: uppercase;
}

.wiro-related {
	border-top: 1px solid var(--wiro-editorial-line);
}

@media (max-width: 1199px) {
	.wiro-article-hero h1 {
		font-size: 50px;
	}

	.wiro-article-layout,
	.wiro-article-layout.has-no-toc {
		max-width: calc(var(--wiro-reading) + (var(--wiro-page-x) * 2));
		gap: 30px;
		grid-template-columns: minmax(0, 1fr);
	}

	.wiro-article-toc,
	.wiro-article-content,
	.wiro-share {
		grid-column: 1;
		grid-row: auto;
	}

	.wiro-article-content {
		font-size: 17px;
	}

	.wiro-article-toc {
		position: static;
		padding: 18px;
		border: 1px solid var(--wiro-editorial-line);
		border-radius: var(--wiro-radius-editorial);
		background: var(--wiro-editorial-wash);
	}

	.wiro-article-toc summary {
		gap: 10px;
		cursor: pointer;
	}

	.wiro-article-toc__count {
		display: inline;
		margin-left: auto;
		color: var(--wiro-muted);
		font-family: var(--wiro-mono);
		font-size: 9px;
		text-transform: uppercase;
	}

	.wiro-article-toc summary > .wiro-icon {
		display: block;
		transition: transform var(--wiro-transition);
	}

	.wiro-article-toc details[open] summary > .wiro-icon {
		transform: rotate(180deg);
	}

	.wiro-article-toc ol {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.wiro-share {
		position: static;
		display: flex;
		align-items: center;
		justify-content: flex-start;
		padding-top: 24px;
		border-top: 1px solid var(--wiro-editorial-line);
	}

	.wiro-share__fallback {
		display: flex;
		gap: 8px;
	}

	.wiro-share .wiro-mono-label {
		margin: 0 8px 0 0;
		writing-mode: horizontal-tb;
	}

	.wiro-article-content h2 {
		font-size: 30px;
	}
}

@media (max-width: 767px) {
	.wiro-article-hero {
		padding-top: var(--wiro-detail-page-top);
	}

	.wiro-breadcrumbs {
		margin-bottom: 26px;
	}

	.wiro-article-hero h1 {
		font-size: 34px;
	}

	.wiro-article-meta {
		align-items: flex-start;
		flex-direction: column;
	}

	.wiro-article-cover {
		margin-bottom: 44px;
		padding-inline: 0;
	}

	.wiro-article-cover img {
		border-right: 0;
		border-left: 0;
		border-radius: 0;
	}

	.wiro-article-toc ol {
		grid-template-columns: 1fr;
	}

	.wiro-article-content h2 {
		font-size: 26px;
	}

	.wiro-article-content {
		font-size: 16px;
	}

	.wiro-js .wiro-share__native {
		position: relative;
		display: inline-flex;
		min-height: 36px;
		align-items: center;
		gap: 8px;
		padding: 6px 12px;
		border: 1px solid var(--wiro-editorial-line);
		border-radius: var(--wiro-radius-editorial);
		background: var(--wiro-bg);
		color: var(--wiro-ink-strong);
		font-family: var(--wiro-sans);
		font-size: 13px;
	}

	.wiro-js .wiro-share__native::before {
		position: absolute;
		inset: -5px 0;
		content: "";
	}

	.wiro-js .wiro-share__fallback {
		display: none;
	}

	.wiro-js .wiro-share.is-expanded .wiro-share__fallback {
		display: flex;
	}

	.wiro-article-content pre {
		margin-right: calc(var(--wiro-page-x) * -1);
		margin-left: calc(var(--wiro-page-x) * -1);
		border-right: 0;
		border-left: 0;
		border-radius: 0;
	}
}
