/**
 * Single article (Figma "Article"): header, photograph, body with "On this page" and sidebar, read next.
 * Desktop 1440, tablet 834 (max-width 1024px), mobile 390 (max-width 767px).
 */

/* ------------------------------------------------------------------ */
/* Shared bits                                                        */
/* ------------------------------------------------------------------ */

.nb-article {
	--nb-area: var(--nb-c-sand-area);
	--nb-quote-rule: var(--nb-c-ink-text);
}

.nb .nb-tag {
	display: inline-flex;
	align-items: center;
	min-height: 22px;
	padding: 3px 8px;
	border-radius: 4px;
	background: var(--nb-area, var(--nb-c-sand-area));
	color: var(--nb-heading);
	font-family: var(--nb-font-body);
	font-size: 13px;
	line-height: 16px;
	font-weight: 600;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	text-decoration: none;
	white-space: nowrap;
}

.nb .nb-tag:hover {
	text-decoration: underline;
	text-underline-offset: 2px;
}

.nb-avatar {
	display: inline-flex;
	flex: none;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: var(--nb-area, var(--nb-c-sand-area));
	color: var(--nb-heading);
	font-size: 13px;
	line-height: 16px;
	font-weight: 600;
	letter-spacing: 0.02em;
	text-transform: uppercase;
}

/* ------------------------------------------------------------------ */
/* Header                                                             */
/* ------------------------------------------------------------------ */

.nb-article__header {
	padding: var(--nb-pad-t, 56px) 0 var(--nb-pad-b, 48px);
}

.nb-article__crumbs ol {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0 8px;
	margin: 0;
	padding: 0;
	list-style: none;
	color: var(--nb-muted);
	font-size: var(--nb-fs-small);
	line-height: var(--nb-lh-small);
}

.nb-article__crumbs li {
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

.nb .nb-article__crumbs a {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	color: inherit;
	text-decoration: none;
}

.nb .nb-article__crumbs a:hover {
	color: var(--nb-heading);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.nb-article__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 12px;
	margin-top: 24px;
	color: var(--nb-muted);
	font-size: var(--nb-fs-small);
	line-height: var(--nb-lh-small);
}

.nb-article__title {
	max-width: 1000px;
	margin-top: 24px;
	color: var(--nb-heading);
	font-family: var(--nb-font-display);
	font-size: 96px;
	line-height: 90px;
	font-weight: 600;
	text-transform: uppercase;
	overflow-wrap: break-word;
}

.nb-article__lead {
	max-width: 760px;
	margin-top: 24px;
	color: var(--nb-muted);
	font-size: 22px;
	line-height: 34px;
}

.nb-article__byline {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-top: 32px;
}

.nb-article__byline-name {
	color: var(--nb-heading);
	font-size: 21px;
	line-height: 28px;
	font-weight: 600;
}

.nb-article__byline-meta {
	margin-top: 2px;
	color: var(--nb-muted);
	font-size: var(--nb-fs-small);
	line-height: var(--nb-lh-small);
}

.nb-article__dot {
	margin: 0 8px;
}

/* ------------------------------------------------------------------ */
/* Photograph                                                         */
/* ------------------------------------------------------------------ */

.nb-article__hero {
	margin: 0;
}

.nb-article__hero-media {
	aspect-ratio: 1440 / 640;
	overflow: hidden;
	background: var(--nb-area);
}

.nb .nb-article__hero-media img {
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
}

.nb-article__hero-caption {
	padding-top: 12px;
	color: var(--nb-muted);
	font-size: var(--nb-fs-small);
	line-height: var(--nb-lh-small);
}

/* ------------------------------------------------------------------ */
/* Body layout                                                        */
/* ------------------------------------------------------------------ */

.nb-article__body {
	padding: 56px 0 80px;
}

.nb-article__layout {
	display: grid;
	grid-template-columns: 240px minmax(0, 1fr) 280px;
	column-gap: 48px;
	align-items: start;
}

.nb-article__toc {
	grid-column: 1;
	position: sticky;
	top: 24px;
}

.nb-article__main {
	grid-column: 2;
	min-width: 0;
}

.nb-article__aside {
	grid-column: 3;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

/* On this page */

.nb-article__toc-title {
	color: var(--nb-muted);
}

.nb-article__toc-list {
	display: grid;
	gap: 4px;
	margin: 4px 0 0;
	padding: 0;
	list-style: none;
}

.nb .nb-article__toc-link {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	min-height: 44px;
	padding: 8px 0 0 12px;
	border-left: 2px solid var(--nb-line);
	color: var(--nb-muted);
	font-size: var(--nb-fs-small);
	line-height: var(--nb-lh-small);
	text-decoration: none;
	transition: border-color 0.2s ease, color 0.2s ease;
}

.nb .nb-article__toc-link:hover,
.nb .nb-article__toc-link.is-active {
	color: var(--nb-heading);
}

.nb .nb-article__toc-link.is-active {
	border-left-color: var(--nb-accent);
}

.nb-article__toc-num {
	flex: none;
	margin-top: -1px;
	font-family: var(--nb-font-display);
	font-size: 20px;
	line-height: 24px;
	font-weight: 500;
}

.nb-article__toc-text {
	padding-top: 1px;
}

/* ------------------------------------------------------------------ */
/* Article text (block editor content)                                */
/* ------------------------------------------------------------------ */

.nb-article .nb-prose {
	margin-top: 0;
	color: var(--nb-text);
	font-size: 19px;
	line-height: 32px;
}

.nb-article .nb-prose > * + * {
	margin-top: 20px;
}

.nb-article .nb-prose h2,
.nb-article .nb-prose h3,
.nb-article .nb-prose h4 {
	margin-top: 20px;
	color: var(--nb-heading);
	font-family: var(--nb-font-display);
	font-weight: 600;
	text-transform: uppercase;
	scroll-margin-top: 24px;
}

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

.nb-article .nb-prose h2 {
	font-size: 32px;
	line-height: 34px;
}

.nb-article .nb-prose h3 {
	font-size: 24px;
	line-height: 28px;
}

.nb-article .nb-prose h4 {
	font-family: var(--nb-font-body);
	font-size: 21px;
	line-height: 28px;
	text-transform: none;
}

.nb .nb-prose a:not(.wp-block-button__link) {
	color: var(--nb-heading);
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}

.nb .nb-prose a:not(.wp-block-button__link):hover {
	text-decoration-thickness: 2px;
}

/* Lists: 6px dots, 10px between items. */
.nb-article .nb-prose ul {
	display: grid;
	gap: 10px;
	padding-left: 0;
	list-style: none;
}

.nb-article .nb-prose ul > li {
	position: relative;
	padding-left: 20px;
}

.nb-article .nb-prose ul > li::before {
	content: "";
	position: absolute;
	top: 13px;
	left: 0;
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: currentColor;
}

.nb-article .nb-prose ol {
	display: grid;
	gap: 10px;
	padding-left: 1.25em;
}

/* Quotes and pull quotes */
.nb-article .nb-prose blockquote,
.nb-article .nb-prose .wp-block-pullquote {
	margin-left: 0;
	margin-right: 0;
	/* The block library adds a 1.75em bottom margin; the frames keep the usual 20px gap. */
	margin-bottom: 0;
	/* Text sits 24px from the outer edge of the 3px rule. */
	padding: 8px 0 8px 21px;
	border: 0;
	border-left: 3px solid var(--nb-quote-rule);
	color: var(--nb-heading);
	font-size: inherit;
	line-height: inherit;
	text-align: left;
}

.nb-article .nb-prose .wp-block-pullquote blockquote {
	padding: 0;
	border: 0;
}

.nb-article .nb-prose blockquote p {
	margin: 0;
	font-family: var(--nb-font-display);
	font-size: 44px;
	line-height: 48px;
	font-weight: 500;
	text-transform: uppercase;
}

.nb-article .nb-prose blockquote p + p {
	margin-top: 12px;
}

.nb-article .nb-prose blockquote cite,
.nb-article .nb-prose .wp-block-pullquote cite {
	display: block;
	margin-top: 12px;
	color: var(--nb-muted);
	font-family: var(--nb-font-body);
	font-size: var(--nb-fs-small);
	line-height: var(--nb-lh-small);
	font-style: normal;
	text-transform: none;
}

/* Images with captions */
.nb-article .nb-prose figure {
	margin-left: 0;
	margin-right: 0;
}

.nb .nb-prose .wp-block-image img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 12px;
}

.nb-article .nb-prose figcaption,
.nb-article .nb-prose .wp-element-caption {
	margin: 10px 0 0;
	color: var(--nb-muted);
	font-size: var(--nb-fs-small);
	line-height: var(--nb-lh-small);
	text-align: left;
}

/* Buttons from the button block */
.nb-article .nb-prose .wp-block-buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

.nb .nb-prose .wp-block-button__link {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 44px;
	padding: 0 20px;
	border: 1px solid transparent;
	border-radius: 8px;
	background: var(--nb-accent);
	color: var(--nb-c-ink);
	font-family: var(--nb-font-body);
	font-size: 16px;
	line-height: 16px;
	font-weight: 600;
	text-decoration: none;
	transition: filter 0.2s ease;
}

.nb .nb-prose .wp-block-button__link:hover {
	filter: brightness(1.1);
	color: var(--nb-c-ink);
}

.nb .nb-prose .is-style-outline .wp-block-button__link {
	border-color: #8a8273;
	background: transparent;
	color: var(--nb-heading);
}

/* Field tip (group block with the class "nb-tip") */
.nb-article .nb-prose .nb-tip {
	position: relative;
	padding: 24px 24px 24px 64px;
	border-radius: 16px;
	background: var(--nb-area);
	color: var(--nb-heading);
	font-size: var(--nb-fs-body);
	line-height: var(--nb-lh-body);
}

.nb-article .nb-prose .nb-tip::before {
	content: "";
	position: absolute;
	top: 24px;
	left: 24px;
	width: 24px;
	height: 24px;
	background: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.75' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='8.5'/%3E%3Cpath d='M12 11v5M12 8h.01'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.75' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='8.5'/%3E%3Cpath d='M12 11v5M12 8h.01'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* Classic themes wrap group content in .wp-block-group__inner-container; let its children lay out directly. */
.nb-article .nb-prose :is(.nb-tip, .nb-route-card, .nb-route-card__body) > .wp-block-group__inner-container {
	display: contents;
}

.nb-article .nb-prose .nb-tip :is(p, h3, ul, ol) {
	margin: 0;
}

.nb-article .nb-prose .nb-tip :is(p, h3, ul, ol) + :is(p, h3, ul, ol) {
	margin-top: 4px;
}

.nb-article .nb-prose .nb-tip__label {
	font-size: var(--nb-fs-label);
	line-height: var(--nb-lh-label);
	font-weight: 600;
	letter-spacing: 0.02em;
	text-transform: uppercase;
}

/* Route card (group block with the class "nb-route-card") */
.nb-article .nb-prose .nb-route-card {
	display: grid;
	grid-template-columns: 160px minmax(0, 1fr);
	gap: 20px;
	align-items: center;
	padding: 20px;
	border-radius: 16px;
	background: var(--nb-c-ink);
	color: var(--nb-c-muted);
	font-size: var(--nb-fs-small);
	line-height: var(--nb-lh-small);
}

.nb-article .nb-prose .nb-route-card > * {
	margin-top: 0;
}

.nb-article .nb-prose .nb-route-card__media {
	margin: 0;
}

.nb .nb-prose .nb-route-card__media img {
	width: 160px;
	height: 160px;
	border-radius: 8px;
	object-fit: cover;
}

.nb-article .nb-prose .nb-route-card__body :is(p, h3, .wp-block-buttons) {
	margin: 8px 0 0;
}

.nb-article .nb-prose .nb-route-card__body .nb-route-card__label {
	margin-top: 0;
}

.nb-article .nb-prose .nb-route-card__label {
	font-size: var(--nb-fs-label);
	line-height: var(--nb-lh-label);
	font-weight: 600;
	letter-spacing: 0.02em;
	text-transform: uppercase;
}

.nb-article .nb-prose .nb-route-card__title {
	margin-top: 8px;
	color: var(--nb-c-text);
	font-size: var(--nb-fs-h3);
	line-height: var(--nb-lh-h3);
}

.nb .nb-prose .nb-route-card .wp-block-button__link::after {
	content: "";
	width: 18px;
	height: 18px;
	background: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%23000' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3.5 10h13M12 5.5l4.5 4.5-4.5 4.5'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%23000' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3.5 10h13M12 5.5l4.5 4.5-4.5 4.5'/%3E%3C/svg%3E") center / contain no-repeat;
	transition: transform 0.2s ease;
}

.nb .nb-prose .nb-route-card .wp-block-button__link:hover::after {
	transform: translateX(3px);
}

.nb-article__pages {
	margin-top: 32px;
}

/* ------------------------------------------------------------------ */
/* Tags and author                                                    */
/* ------------------------------------------------------------------ */

.nb-article__tags {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 28px 0 0;
	padding: 0;
	list-style: none;
}

/* Keep each row at the 22px tag height (no inherited line box). */
.nb-article__tags > li {
	display: flex;
}

.nb-article__author {
	display: flex;
	gap: 20px;
	margin-top: 20px;
	padding: 32px 0;
	border-top: 1px solid var(--nb-line);
	border-bottom: 1px solid var(--nb-line);
}

.nb-article__author-title {
	color: var(--nb-heading);
	font-family: var(--nb-font-body);
	font-size: var(--nb-fs-h4);
	line-height: var(--nb-lh-h4);
	font-weight: 600;
}

.nb-article__author-bio {
	margin-top: 8px;
	color: var(--nb-muted);
}

.nb .nb-article__author-link {
	min-height: 44px;
	margin-top: 4px;
}

/* ------------------------------------------------------------------ */
/* Sidebar                                                            */
/* ------------------------------------------------------------------ */

.nb-article__aside-title {
	color: var(--nb-muted);
}

.nb-article__related {
	margin-top: 12px;
	padding: 20px;
	border-radius: 16px;
	background: var(--nb-area);
}

.nb-article__related-name {
	color: var(--nb-heading);
	font-size: 21px;
	line-height: 28px;
	font-weight: 600;
}

.nb-article__related-meta {
	margin-top: 8px;
	color: var(--nb-muted);
	font-size: var(--nb-fs-small);
	line-height: var(--nb-lh-small);
}

.nb-article__related-price {
	margin-top: 8px;
	color: var(--nb-heading);
	font-size: 15px;
	line-height: 20px;
	font-weight: 600;
}

.nb .nb-article__related-btn {
	display: flex;
	width: 100%;
	margin-top: 8px;
	border-color: #8a8273;
	color: var(--nb-heading);
}

.nb .nb-article__related-btn:hover {
	border-color: var(--nb-heading);
	color: var(--nb-heading);
}

.nb-article__topics {
	margin: 12px 0 0;
	padding: 0;
	list-style: none;
}

.nb .nb-article__topics a {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	min-height: 44px;
	padding: 10px 0;
	border-bottom: 1px solid var(--nb-line);
	color: var(--nb-heading);
	font-size: var(--nb-fs-small);
	line-height: var(--nb-lh-small);
	text-decoration: none;
}

.nb .nb-article__topics a:hover span {
	text-decoration: underline;
	text-underline-offset: 3px;
}

.nb-article__topics .nb-icon {
	flex: none;
	color: var(--nb-muted);
}

.nb-article__news {
	padding: 24px;
	border-radius: 16px;
	background: var(--nb-c-ink);
	color: var(--nb-c-muted);
}

.nb-article__news .nb-news {
	margin: 0;
}

/* The newsletter block keeps its desktop label and intro sizes at every width. */
.nb-article__news .nb-news__label {
	font-size: 13px;
	line-height: 16px;
}

.nb-article__news .nb-news__text {
	font-size: 15px;
	line-height: 22px;
}

.nb-article__news input {
	text-overflow: ellipsis;
}

.nb-article__news .nb-news__status:empty {
	display: none;
}

.nb-article__news .nb-btn--primary {
	flex: none;
	border: 0;
}

/* ------------------------------------------------------------------ */
/* Read next                                                          */
/* ------------------------------------------------------------------ */

.nb-read-next {
	--nb-bg: var(--nb-c-sand-area);
	padding: var(--nb-pad-t, 96px) 0 var(--nb-pad-b, 96px);
}

.nb-read-next__head {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 0 24px;
}

.nb-read-next__head .nb-link {
	min-height: 44px;
}

.nb-read-next__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 48px 24px;
	margin-top: 48px;
}

.nb .nb-article-card__link {
	display: block;
	color: inherit;
	text-decoration: none;
}

.nb-article-card__media {
	aspect-ratio: 3 / 2;
	overflow: hidden;
	border-radius: 12px;
	background: var(--nb-line);
}

.nb .nb-article-card__media img {
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
	transition: transform 0.6s ease;
}

.nb .nb-article-card__link:hover .nb-article-card__media img {
	transform: scale(1.03);
}

.nb-article-card__meta {
	margin-top: 16px;
	color: var(--nb-muted);
	font-size: 15px;
	line-height: 22px;
}

.nb-article-card__title {
	margin-top: 16px;
	font-size: 32px;
	line-height: 34px;
}

.nb .nb-article-card__link:hover .nb-article-card__title {
	text-decoration: underline;
	text-decoration-thickness: 2px;
	text-underline-offset: 4px;
}

/* ------------------------------------------------------------------ */
/* Tablet                                                             */
/* ------------------------------------------------------------------ */

@media (max-width: 1024px) {
	.nb-article__header {
		padding: var(--nb-pad-t, 48px) 0 var(--nb-pad-b, 40px);
	}

	.nb-article__title {
		font-size: 72px;
		line-height: 68px;
	}

	.nb-article__hero-media {
		aspect-ratio: 834 / 440;
	}

	.nb-article__body {
		padding: 48px 0 64px;
	}

	.nb-article__layout {
		display: block;
	}

	.nb-article__toc {
		position: static;
		margin-bottom: 40px;
		padding: 20px;
		border-radius: 12px;
		background: var(--nb-area);
	}

	/* Text, tags, author and newsletter use a 760px column; "On this page" spans the container. */
	.nb-article__main,
	.nb-article__aside {
		max-width: 760px;
	}

	.nb-article__aside {
		margin-top: 20px;
	}

	.nb-article__aside-block--wide {
		display: none;
	}

	.nb-read-next {
		padding: var(--nb-pad-t, 80px) 0 var(--nb-pad-b, 80px);
	}

	.nb-read-next__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		margin-top: 40px;
	}

	.nb-read-next__grid > :nth-child(n + 3) {
		display: none;
	}
}

/* ------------------------------------------------------------------ */
/* Mobile                                                             */
/* ------------------------------------------------------------------ */

@media (max-width: 767px) {
	.nb-article__header {
		padding: var(--nb-pad-t, 32px) 0 var(--nb-pad-b, 32px);
	}

	.nb-article__meta,
	.nb-article__title,
	.nb-article__lead {
		margin-top: 20px;
	}

	.nb-article__title {
		font-size: 52px;
		line-height: 50px;
	}

	.nb-article__lead {
		font-size: 18px;
		line-height: 28px;
	}

	.nb-article__byline {
		margin-top: 28px;
	}

	.nb-article__byline-name {
		font-size: 19px;
		line-height: 26px;
	}

	.nb-article__hero-media {
		aspect-ratio: 390 / 260;
	}

	.nb-article__body {
		padding: 40px 0 56px;
	}

	.nb-article__toc {
		margin-bottom: 32px;
	}

	.nb-article__toc-num {
		font-size: 18px;
		line-height: 22px;
	}

	.nb-article .nb-prose {
		font-size: 17px;
		line-height: 28px;
	}

	.nb-article .nb-prose h2 {
		font-size: 26px;
		line-height: 28px;
	}

	.nb-article .nb-prose h3 {
		font-size: 22px;
		line-height: 26px;
	}

	.nb-article .nb-prose h4 {
		font-size: 19px;
		line-height: 26px;
	}

	.nb-article .nb-prose ul > li::before {
		top: 11px;
	}

	.nb-article .nb-prose blockquote p {
		font-size: 32px;
		line-height: 36px;
	}

	.nb-article .nb-prose .nb-route-card {
		grid-template-columns: minmax(0, 1fr);
	}

	.nb .nb-prose .nb-route-card__media img {
		width: 100%;
		height: auto;
		aspect-ratio: 310 / 194;
	}

	.nb-article__author-bio {
		font-size: 16px;
		line-height: 26px;
	}

	.nb-read-next {
		padding: var(--nb-pad-t, 64px) 0 var(--nb-pad-b, 64px);
	}

	.nb-read-next__head {
		display: block;
	}

	.nb-read-next__grid {
		grid-template-columns: minmax(0, 1fr);
		margin-top: 32px;
	}
}

/* "Explore the related journey" after the article text (prototype CTA on every note). */
.nb-article__explore {
	margin: 32px 0 0;
}
