/* Field Notes topic/category archive. Kept separate from the shared archive and article styles. */
.sd-field-notes-category {
	--fn-paper: #f8f6f0;
	--fn-ink: #173027;
	--fn-muted: #5f6b63;
	--fn-line: #d9ddd7;
	--fn-brass: #b8873b;
	--fn-shell: min(1320px, calc(100% - 2 * clamp(20px, 6.7vw, 96px)));
	background: var(--fn-paper);
	color: var(--fn-ink);
	overflow-x: hidden;
}

/* The category archive keeps breadcrumb schema/logic but follows the supplied
 * visual reference, which has no visible breadcrumb band above the Hero. */
.site-main:has(> .sd-field-notes-category) > .sd-breadcrumbs {
	display: none;
}

.sd-field-notes-category__shell {
	width: var(--fn-shell);
	margin-right: auto;
	margin-left: auto;
}

.sd-field-notes-category__hero {
	height: clamp(340px, 36.2vw, 520px);
	min-height: 0;
	color: #fff;
	position: relative;
	isolation: isolate;
	display: grid;
	align-items: center;
}

.sd-field-notes-category__hero-media,
.sd-field-notes-category__hero-overlay {
	position: absolute;
	inset: 0;
}

.sd-field-notes-category__hero-media {
	z-index: -2;
	background: var(--fn-ink);
}

.sd-field-notes-category__hero-media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
}

.sd-field-notes-category__hero-overlay {
	z-index: -1;
	background: linear-gradient(90deg, rgba(5, 17, 12, .88) 0%, rgba(5, 17, 12, .67) 40%, rgba(5, 17, 12, .1) 78%), linear-gradient(0deg, rgba(5, 17, 12, .3), transparent 45%);
}

.sd-field-notes-category__hero-copy {
	padding-top: clamp(46px, 6vw, 84px);
	padding-bottom: clamp(46px, 6vw, 84px);
}

.sd-field-notes-category__eyebrow,
.sd-field-notes-category__card-kicker {
	margin: 0 0 14px;
	color: var(--fn-brass);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .12em;
	line-height: 1.3;
	text-transform: uppercase;
}

.sd-field-notes-category__hero h1 {
	max-width: 720px;
	margin: 0;
	font-size: clamp(48px, 5vw, 68px);
	line-height: .98;
}

.sd-field-notes-category__hero p {
	max-width: 590px;
}

.sd-field-notes-category__subtitle {
	margin: 22px 0 0;
	font-size: clamp(17px, 1.8vw, 21px);
	line-height: 1.45;
}

.sd-field-notes-category__description {
	max-width: 540px;
	margin-top: 12px;
	color: rgba(255, 255, 255, .78);
	font-size: 15px;
	line-height: 1.65;
}

.sd-field-notes-category__description p {
	margin: 0 0 8px;
}

.sd-field-notes-category__description p:last-child {
	margin-bottom: 0;
}

.sd-field-notes-category__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 28px;
}

.sd-field-notes-category__button {
	min-height: 46px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 18px;
	padding: 0 18px;
	border: 1px solid rgba(255, 255, 255, .5);
	font-size: 12px;
	font-weight: 650;
	letter-spacing: .04em;
	transition: background .18s ease, color .18s ease, border-color .18s ease, transform .18s ease;
}

.sd-field-notes-category__button:hover,
.sd-field-notes-category__button:focus-visible,
.sd-field-notes-category__featured-main:hover,
.sd-field-notes-category__featured-secondary:hover,
.sd-field-notes-category__article-card:hover,
.sd-field-notes-category__popular-list a:hover,
.sd-field-notes-category__stat:hover {
	transform: translateY(-2px);
}

.sd-field-notes-category__button--primary {
	background: var(--fn-ink);
	border-color: var(--fn-brass);
}

.sd-field-notes-category__button--ghost {
	background: rgba(255, 255, 255, .08);
}

.sd-field-notes-category__button--ghost:hover,
.sd-field-notes-category__button--ghost:focus-visible {
	background: #fff;
	color: var(--fn-ink);
}

.sd-field-notes-category__tabs-wrap {
	padding-top: 24px;
}

.sd-field-notes-category__tabs {
	display: flex;
	align-items: center;
	gap: 4px;
	padding: 4px;
	border: 1px solid var(--fn-line);
	border-radius: 42px;
	overflow-x: auto;
	background: #fff;
	scrollbar-width: thin;
}

.sd-field-notes-category__tabs a {
	flex: 0 0 auto;
	margin: 5px 0;
	padding: 8px 16px;
	border: 1px solid transparent;
	border-radius: 999px;
	color: var(--fn-muted);
	font-size: 16px;
	white-space: nowrap;
}

.sd-field-notes-category__tabs-all {
	display: inline-flex;
	align-items: center;
	gap: 12px;
}

.sd-field-notes-category__tabs-grid {
	width: 18px;
	height: 18px;
	display: grid;
	grid-template-columns: repeat(2, 4px);
	grid-template-rows: repeat(2, 4px);
	align-content: center;
	justify-content: center;
	gap: 3px;
	border: 1px solid currentColor;
	border-radius: 3px;
}

.sd-field-notes-category__tabs-grid i {
	display: block;
	border: 1px solid currentColor;
	border-radius: 1px;
}

.sd-field-notes-category__tabs a:hover,
.sd-field-notes-category__tabs a:focus-visible,
.sd-field-notes-category__tabs a.is-current {
	background: #fff;
	color: var(--fn-ink);
	box-shadow: 0 2px 10px rgba(13, 31, 22, .08);
}

.sd-field-notes-category__search {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-top: 12px;
}

.sd-field-notes-category__search input[type="search"] {
	min-width: 0;
	flex: 1 1 auto;
	height: 50px;
	min-height: 50px;
	padding: 0 12px;
	border: 1px solid var(--fn-line);
	border-radius: 5px;
	background: #fff;
	color: var(--fn-ink);
	font: inherit;
	font-size: 12px;
}

.sd-field-notes-category__search button {
	width: 126.09px;
	min-width: 126.09px;
	height: 50px;
	min-height: 50px;
	padding: 0 16px;
	border: 1px solid var(--fn-ink);
	border-radius: 5px;
	background: var(--fn-ink);
	color: #fff;
	cursor: pointer;
	font: inherit;
	font-size: 12px;
}

.sd-field-notes-category__stats {
	display: flex;
	gap: 12px;
	padding-top: 22px;
	overflow-x: auto;
	contain: inline-size;
	scrollbar-width: thin;
}

.sd-field-notes-category__stat {
	flex: 0 0 calc((100% - 48px) / 5);
	min-height: 138px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 16px 14px;
	border: 1px solid rgba(23, 48, 39, .1);
	border-radius: 9px;
	background: rgba(255, 255, 255, .54);
	text-align: center;
	transition: transform .18s ease, border-color .18s ease, background .18s ease;
}

.sd-field-notes-category__stat.is-current {
	border-color: var(--fn-brass);
	background: #fff;
}

.sd-field-notes-category__stat-icon {
	width: 42px;
	height: 42px;
	display: grid;
	place-items: center;
	margin-bottom: 12px;
	border: 1px solid var(--fn-ink);
	border-radius: 50%;
	font-size: 20px;
}

.sd-field-notes-category__stat-icon {
	font-size: 0;
}

.sd-field-notes-category__stat-icon svg {
	width: 25px;
	height: 25px;
	display: block;
	fill: none;
	stroke: currentColor;
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-width: 1.45;
}

.sd-field-notes-category__stat strong {
	font-size: 14px;
	line-height: 1.3;
}

.sd-field-notes-category__stat-count {
	margin-top: 7px;
	color: var(--fn-brass);
	font-size: 12px;
}

.sd-field-notes-category__stat-description {
	max-width: 170px;
	margin-top: 8px;
	color: var(--fn-muted);
	font-size: 11px;
	line-height: 1.35;
}

.sd-field-notes-category__stat-image {
	display: none;
}

.sd-field-notes-category__section {
	padding-top: clamp(38px, 4.8vw, 62px);
}

.sd-field-notes-category__section-header {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 20px;
	margin-bottom: 20px;
}

.sd-field-notes-category__section-header--ruled::after {
	content: "";
	height: 1px;
	flex: 1 1 auto;
	background: var(--fn-line);
}

.sd-field-notes-category__section-header h2 {
	margin: 0;
	font-size: clamp(24px, 2vw, 34px);
	line-height: 1.1;
}

#sd-field-notes-category-featured-title,
#sd-field-notes-category-latest-title,
#sd-field-notes-category-popular-title {
	font-family: "Instrument Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

.sd-field-notes-category__section-header a {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	color: var(--fn-ink);
	font-size: 12px;
	font-weight: 650;
	white-space: nowrap;
}

.sd-field-notes-category__featured-grid {
	display: grid;
	grid-template-columns: minmax(0, 1.45fr) minmax(250px, .8fr);
	gap: 22px;
}

.sd-field-notes-category__featured-main,
.sd-field-notes-category__featured-secondary,
.sd-field-notes-category__article-card {
	border: 1px solid var(--fn-line);
	border-radius: 8px;
	background: rgba(255, 255, 255, .56);
	transition: transform .18s ease, box-shadow .18s ease;
	overflow: hidden;
}

.sd-field-notes-category__featured-main:hover,
.sd-field-notes-category__featured-secondary:hover,
.sd-field-notes-category__article-card:hover {
	box-shadow: 0 16px 34px rgba(22, 46, 36, .09);
}

.sd-field-notes-category__featured-main {
	display: grid;
	grid-template-columns: minmax(0, 1.15fr) minmax(260px, .85fr);
	height: clamp(340px, 28vw, 430px);
}

.sd-field-notes-category__featured-main figure,
.sd-field-notes-category__featured-secondary figure,
.sd-field-notes-category__article-card figure,
.sd-field-notes-category__popular-list figure {
	margin: 0;
	background: var(--fn-ink);
	overflow: hidden;
}

.sd-field-notes-category__featured-main figure {
	min-height: 0;
}

.sd-field-notes-category__featured-secondary figure {
	flex: 0 0 42%;
	aspect-ratio: auto;
}

.sd-field-notes-category__featured-main img,
.sd-field-notes-category__featured-secondary img,
.sd-field-notes-category__article-card img,
.sd-field-notes-category__popular-list img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .35s ease;
}

.sd-field-notes-category__featured-main:hover img,
.sd-field-notes-category__featured-secondary:hover img,
.sd-field-notes-category__article-card:hover img,
.sd-field-notes-category__popular-list a:hover img {
	transform: scale(1.035);
}

.sd-field-notes-category__featured-copy,
.sd-field-notes-category__featured-secondary > div,
.sd-field-notes-category__article-copy {
	display: flex;
	flex-direction: column;
	min-width: 0;
	padding: clamp(22px, 3vw, 34px);
}

.sd-field-notes-category__featured-copy h3,
.sd-field-notes-category__featured-secondary h3,
.sd-field-notes-category__article-card h3 {
	margin: 0;
	font-size: clamp(20px, 2vw, 27px);
	line-height: 1.13;
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
	overflow: hidden;
}

.sd-field-notes-category__featured-main .sd-field-notes-category__featured-copy h3 {
	font-family: "Instrument Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

.sd-field-notes-category__featured-copy > p:not(.sd-field-notes-category__card-kicker),
.sd-field-notes-category__featured-secondary > div > p:not(.sd-field-notes-category__card-kicker),
.sd-field-notes-category__article-card .sd-field-notes-category__article-copy > p:not(.sd-field-notes-category__card-kicker) {
	margin: 14px 0 0;
	color: var(--fn-muted);
	font-size: 14px;
	line-height: 1.55;
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
	overflow: hidden;
}

.sd-field-notes-category__text-link {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	margin-top: auto;
	padding-top: 24px;
	font-size: 12px;
	font-weight: 650;
}

.sd-field-notes-category__featured-secondary {
	display: flex;
	flex-direction: column;
	height: clamp(340px, 28vw, 430px);
}

.sd-field-notes-category__featured-secondary > div {
	order: 1;
	flex: 0 0 58%;
	min-height: 0;
	padding: 22px 24px;
}

.sd-field-notes-category__featured-secondary h3 {
	font-size: clamp(19px, 1.65vw, 24px);
}

.sd-field-notes-category__featured-secondary figure {
	order: 2;
	flex: 0 0 42%;
	aspect-ratio: auto;
}

.sd-field-notes-category__featured-secondary > div > p:not(.sd-field-notes-category__card-kicker) {
	-webkit-line-clamp: 2;
}

.sd-field-notes-category__featured-secondary h3 {
	font-size: clamp(19px, 1.45vw, 22px);
	line-height: 1.08;
}

.sd-field-notes-category__latest-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 16px;
}

.sd-field-notes-category__article-card {
	display: flex;
	flex-direction: column;
}

.sd-field-notes-category__article-card figure {
	aspect-ratio: 2.05;
}

.sd-field-notes-category__article-copy {
	min-height: 0;
	min-height: 250px;
	padding: 18px;
}

.sd-field-notes-category__article-card h3 {
	font-size: 16px;
	font-family: "Instrument Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

.sd-field-notes-category__article-card .sd-field-notes-category__article-copy > p:not(.sd-field-notes-category__card-kicker) {
	font-size: 12px;
	line-height: 1.45;
}

.sd-field-notes-category__article-card footer {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	margin-top: auto;
	padding-top: 10px;
	border-top: 1px solid var(--fn-line);
	color: var(--fn-muted);
	font-size: 11px;
	font-family: "Instrument Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

.sd-field-notes-category__article-card footer time,
.sd-field-notes-category__article-card footer span {
	font-family: "Instrument Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

.sd-field-notes-category__popular-list {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 22px;
	padding-bottom: 12px;
}

.sd-field-notes-category__popular-list a {
	display: grid;
	grid-template-columns: 90px minmax(0, 1fr);
	align-items: center;
	gap: 16px;
	transition: transform .18s ease;
}

.sd-field-notes-category__popular-list figure {
	aspect-ratio: 1;
	border-radius: 7px;
}

.sd-field-notes-category__popular-list strong,
.sd-field-notes-category__popular-list small {
	display: block;
}

.sd-field-notes-category__popular-list strong {
	font-size: 14px;
	line-height: 1.35;
	font-weight: 500;
}

.sd-field-notes-category__popular-list small {
	margin-top: 10px;
	color: var(--fn-muted);
	font-size: 11px;
}

.sd-field-notes-category__pagination {
	display: flex;
	justify-content: center;
	padding-top: 34px;
	padding-bottom: 70px;
}

.sd-field-notes-category__section--popular {
	padding-top: 0;
	padding-bottom: clamp(38px, 4.8vw, 62px);
}

.sd-field-notes-category__pagination ul {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.sd-field-notes-category__pagination a,
.sd-field-notes-category__pagination span {
	min-width: 38px;
	height: 38px;
	display: grid;
	place-items: center;
	padding: 0 10px;
	border: 1px solid var(--fn-line);
	border-radius: 6px;
	font-size: 12px;
}

.sd-field-notes-category__pagination .current {
	background: var(--fn-ink);
	border-color: var(--fn-ink);
	color: #fff;
}

.sd-field-notes-category__pagination a:hover,
.sd-field-notes-category__pagination a:focus-visible {
	border-color: var(--fn-ink);
}

.sd-field-notes-category__empty {
	padding-top: clamp(48px, 7vw, 90px);
	padding-bottom: clamp(54px, 8vw, 110px);
	text-align: center;
}

.sd-field-notes-category__empty h2 {
	margin: 0;
	font-size: clamp(26px, 3vw, 40px);
}

.sd-field-notes-category__empty p {
	max-width: 520px;
	margin: 16px auto 0;
	color: var(--fn-muted);
	font-size: 14px;
	line-height: 1.6;
}

@media (max-width: 900px) {
	.sd-field-notes-category {
		--fn-shell: calc(100% - 40px);
	}

	.sd-field-notes-category__hero {
		height: auto;
		min-height: 520px;
	}

	.sd-field-notes-category__stats {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		overflow-x: visible;
}

	.sd-field-notes-category__featured-grid,
	.sd-field-notes-category__featured-main {
		grid-template-columns: 1fr;
		height: auto;
	}

	.sd-field-notes-category__featured-secondary {
		height: auto;
	}

	.sd-field-notes-category__featured-secondary figure {
		aspect-ratio: 2.05;
		flex-basis: auto;
		min-height: 220px;
	}

	.sd-field-notes-category__featured-main figure {
		min-height: 280px;
	}

	.sd-field-notes-category__latest-grid,
	.sd-field-notes-category__popular-list {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.sd-field-notes-category__section-header--ruled::after {
		display: none;
	}

	.sd-field-notes-category__search {
		flex-wrap: wrap;
	}

	.sd-field-notes-category__search input[type="search"],
	.sd-field-notes-category__search button {
		min-height: 42px;
	}
}

@media (max-width: 620px) {
	.sd-field-notes-category__hero {
		min-height: 520px;
	}

	.sd-field-notes-category__hero-overlay {
		background: linear-gradient(0deg, rgba(5, 17, 12, .9), rgba(5, 17, 12, .3) 70%), linear-gradient(90deg, rgba(5, 17, 12, .5), transparent);
	}

	.sd-field-notes-category__hero h1 {
		font-size: clamp(42px, 13vw, 64px);
	}

	.sd-field-notes-category__hero-copy {
		padding-top: 54px;
		padding-bottom: 54px;
	}

	.sd-field-notes-category__actions {
		align-items: stretch;
		flex-direction: column;
	}

	.sd-field-notes-category__button {
		justify-content: space-between;
	}

	.sd-field-notes-category__stats {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.sd-field-notes-category__stat {
		min-height: 142px;
		padding: 15px 10px;
	}

	.sd-field-notes-category__latest-grid,
	.sd-field-notes-category__popular-list {
		grid-template-columns: 1fr;
	}

	.sd-field-notes-category__section-header h2 {
		font-size: 28px;
	}

	.sd-field-notes-category__featured-copy,
	.sd-field-notes-category__featured-secondary > div {
		padding: 22px 18px;
	}

	.sd-field-notes-category__featured-secondary > div {
		order: 1;
		min-height: 230px;
		padding: 22px 18px;
	}

	.sd-field-notes-category__featured-main figure {
		min-height: 250px;
	}

	.sd-field-notes-category__featured-main,
	.sd-field-notes-category__featured-secondary {
		min-height: 0;
	}

	.sd-field-notes-category__featured-copy h3,
	.sd-field-notes-category__featured-secondary h3 {
		font-size: 22px;
	}

	.sd-field-notes-category__article-copy {
		min-height: 230px;
	}

	.sd-field-notes-category__section--popular {
		padding-bottom: 44px;
	}

	.sd-field-notes-category__section-header {
		align-items: flex-start;
		flex-direction: column;
		gap: 10px;
	}

	.sd-field-notes-category__pagination {
		padding-bottom: 44px;
	}

	.sd-field-notes-category__pagination ul {
		gap: 4px;
	}
}
