/* ==========================================================================
   TheCodeWork — Blog
   The index at /blog/, its category archives and its search results. Scoped
   entirely under .tcwb so nothing here can reach another template.
   Sizing is in px on purpose: the theme sets html{font-size:15px} and 18px at
   md, which makes rem unreliable across breakpoints.
   ========================================================================== */

/* ==========================================================================
   1. Tokens
   ========================================================================== */

.tcwb {
	/* Colour: one blue ramp, the logo's own #46659B in the middle of it ------- */
	--tcwb-bg: #f6f8fb;
	--tcwb-surface: #ffffff;
	--tcwb-ice: #eaf0fa;
	--tcwb-ink: #0f1e3a;
	--tcwb-ink-2: #3d4d6b;
	--tcwb-ink-3: #6c7c99;
	--tcwb-blue: #46659b;
	--tcwb-blue-dark: #38517d;
	--tcwb-blue-soft: #e5eaf3;
	--tcwb-blue-light: #a9bad8;
	--tcwb-navy: #071b38;
	--tcwb-line: rgba(15, 30, 58, 0.10);
	--tcwb-line-2: rgba(15, 30, 58, 0.16);

	/* Type ------------------------------------------------------------------- */
	--tcwb-font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "Lato", Helvetica, Arial, sans-serif;
	--tcwb-font-hand: "Caveat", "Segoe Script", cursive;

	/* Space and shape: the site shell, so every page keeps one measure -------- */
	--tcwb-content: var(--tcw-content, 1280px);
	--tcwb-pad: var(--tcw-gutter, 24px);
	--tcwb-section: clamp(40px, 4.6vw, 72px);
	--tcwb-gap: clamp(16px, 1.6vw, 24px);
	--tcwb-r-card: 16px;
	--tcwb-r-sm: 10px;
	--tcwb-r-pill: 999px;

	/* Elevation and motion --------------------------------------------------- */
	--tcwb-shadow-sm: 0 1px 2px rgba(15, 30, 58, 0.05);
	--tcwb-shadow: 0 1px 2px rgba(15, 30, 58, 0.04), 0 16px 36px -24px rgba(15, 30, 58, 0.30);
	--tcwb-t: 200ms;
	--tcwb-ease: cubic-bezier(0.2, 0.7, 0.3, 1);

	background: var(--tcwb-bg);
	color: var(--tcwb-ink);
	font-family: var(--tcwb-font);
	-webkit-font-smoothing: antialiased;
	overflow-x: clip;
}

/* Every section carries the air under it, rather than the page carrying the air under the last one:
   a list followed by the Explore band needs the same gap as a list followed by the footer. */
.tcwb-hero,
.tcwb-filters,
.tcwb-promoted,
.tcwb-listing,
.tcwb-quick,
.tcwb-empty {
	padding-bottom: var(--tcwb-section);
}


/* ==========================================================================
   2. Shell, type and shared components
   ========================================================================== */

.tcwb-shell {
	width: 100%;
	max-width: calc(var(--tcwb-content) + (var(--tcwb-pad) * 2));
	margin-inline: auto;
	padding-inline: var(--tcwb-pad);
}

.tcwb-sr {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
}

.tcwb-eyebrow {
	margin: 0;
	font-size: 11.5px;
	font-weight: 700;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--tcwb-blue);
}

.tcwb-h2 {
	margin: 0;
	font-size: clamp(22px, 2.4vw, 30px);
	font-weight: 800;
	letter-spacing: -0.025em;
	line-height: 1.15;
	color: var(--tcwb-ink);
}

.tcwb-link {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	font-size: 13.5px;
	font-weight: 600;
	color: var(--tcwb-blue);
	text-decoration: none;
	white-space: nowrap;
}

.tcwb-link svg {
	transition: transform var(--tcwb-t) var(--tcwb-ease);
}

.tcwb-link:hover {
	color: var(--tcwb-blue-dark);
}

.tcwb-link:hover svg {
	transform: translateX(3px);
}

.tcwb-btn {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	height: 46px;
	padding: 0 22px;
	border-radius: var(--tcwb-r-sm);
	background: var(--tcwb-blue);
	color: #fff;
	font-size: 14px;
	font-weight: 600;
	letter-spacing: -0.01em;
}

.tcwb-btn svg {
	transition: transform var(--tcwb-t) var(--tcwb-ease);
}

/* No approved image yet: a drafting panel rather than a stock photograph or a
   broken frame. The same fallback the homepage insights cards use. */
.tcwb-panel {
	display: block;
	width: 100%;
	height: 100%;
	min-height: 104px;
	background-color: var(--tcwb-ice);
	background-image:
		linear-gradient(to right, rgba(70, 101, 155, 0.09) 1px, transparent 1px),
		linear-gradient(to bottom, rgba(70, 101, 155, 0.09) 1px, transparent 1px);
	background-size: 14px 14px;
}

/* The one hover transform on the page: three pixels. */
.tcwb-lift {
	transition: transform var(--tcwb-t) var(--tcwb-ease), box-shadow var(--tcwb-t) var(--tcwb-ease), border-color var(--tcwb-t) var(--tcwb-ease);
}

.tcwb-lift:hover {
	transform: translateY(-3px);
	box-shadow: var(--tcwb-shadow);
	border-color: var(--tcwb-line-2);
}

/* A control that is hidden but still focusable strands a keyboard: the search button is there for
   people who tab to it, so it shows itself when they do. */
.tcwb button.tcwb-sr:focus-visible {
	position: static !important;
	width: auto;
	height: 44px;
	padding: 0 18px;
	margin: 0;
	overflow: visible;
	clip: auto;
	clip-path: none;
	border-radius: var(--tcwb-r-sm);
	background: var(--tcwb-blue);
	color: #fff;
	font-family: inherit;
	font-size: 13.5px;
	font-weight: 600;
}

/* A focused link inside a card must show on the card, not behind it. */
.tcwb a:focus-visible {
	outline: 2px solid var(--tcwb-blue);
	outline-offset: 3px;
	border-radius: 4px;
}


/* ==========================================================================
   3. Hero, and the header an archive carries instead
   ========================================================================== */

.tcwb-hero {
	padding-top: clamp(8px, 1.4vw, 20px);
}

.tcwb-hero__inner {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: clamp(20px, 3vw, 40px);
	align-items: center;
}

@media (min-width: 1000px) {
	.tcwb-hero__inner {
		grid-template-columns: minmax(0, 1fr) minmax(0, 0.72fr);
	}
}

.tcwb-hero__title {
	margin: 14px 0 0;
	font-size: clamp(32px, 4.4vw, 52px);
	font-weight: 800;
	letter-spacing: -0.035em;
	line-height: 1.04;
	color: var(--tcwb-ink);
}

.tcwb-hero__lead {
	margin: 16px 0 0;
	max-width: 46ch;
	font-size: clamp(15px, 1.3vw, 18px);
	line-height: 1.55;
	color: var(--tcwb-ink-2);
}

.tcwb-hero__art {
	display: none;
}

@media (min-width: 1000px) {
	.tcwb-hero__art {
		display: block;
	}
}

/* Compact: a filtered, searched or paged view of the same page. */
.tcwb-hero--compact {
	padding-bottom: clamp(20px, 2.4vw, 32px);
}

.tcwb-hero--compact .tcwb-hero__title {
	font-size: clamp(26px, 3vw, 36px);
}

.tcwb-hero--compact .tcwb-hero__lead {
	display: none;
}

/* The blueprint ----------------------------------------------------------- */

.tcwb-art {
	display: block;
	width: 100%;
	height: auto;
	/* The drafting grid has no business ending in a straight edge: fade it into the page. */
	-webkit-mask-image: radial-gradient(115% 105% at 50% 48%, #000 52%, transparent 100%);
	mask-image: radial-gradient(115% 105% at 50% 48%, #000 52%, transparent 100%);
}

.tcwb-art__grid {
	stroke: rgba(70, 101, 155, 0.14);
	stroke-width: 1;
	fill: none;
}

.tcwb-art__line {
	stroke: var(--tcwb-blue);
	stroke-width: 1.5;
	stroke-linecap: round;
	fill: none;
	opacity: 0.6;
}

.tcwb-art__hand {
	font-family: var(--tcwb-font-hand);
	font-size: 27px;
	font-weight: 600;
	letter-spacing: 0.06em;
	fill: var(--tcwb-blue-light);
	stroke: none;
}

/* Archive and search header ------------------------------------------------ */

.tcwb-head {
	padding-block: clamp(8px, 1.4vw, 20px) clamp(22px, 2.6vw, 34px);
}

.tcwb-trail {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	font-size: 12.5px;
	font-weight: 600;
	color: var(--tcwb-ink-3);
}

.tcwb-trail a {
	color: var(--tcwb-ink-3);
	text-decoration: none;
}

.tcwb-trail a:hover {
	color: var(--tcwb-blue);
}

.tcwb-trail > * + *::before {
	content: "/";
	margin-right: 8px;
	color: var(--tcwb-line-2);
}

.tcwb-head__title {
	margin: 12px 0 0;
	font-size: clamp(28px, 3.4vw, 42px);
	font-weight: 800;
	letter-spacing: -0.032em;
	line-height: 1.08;
}

.tcwb-head__lead {
	margin: 12px 0 0;
	max-width: 62ch;
	font-size: 15.5px;
	line-height: 1.6;
	color: var(--tcwb-ink-2);
}


/* ==========================================================================
   4. Search and the track pills
   ========================================================================== */

.tcwb-filters {
	padding-bottom: clamp(20px, 2.4vw, 32px);
}

.tcwb-filters__bar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px;
	padding: 12px;
	background: var(--tcwb-surface);
	border: 1px solid var(--tcwb-line);
	border-radius: 14px;
	box-shadow: var(--tcwb-shadow-sm);
}

.tcwb-search {
	position: relative;
	flex: 1 1 300px;
	display: flex;
	align-items: center;
	min-width: 0;
}

.tcwb-search__icon {
	position: absolute;
	left: 14px;
	display: inline-flex;
	color: var(--tcwb-ink-3);
	pointer-events: none;
}

.tcwb-search input {
	width: 100%;
	height: 44px;
	padding: 0 14px 0 42px;
	border: 1px solid var(--tcwb-line);
	border-radius: var(--tcwb-r-sm);
	background: #fbfcfe;
	font-family: inherit;
	font-size: 14px;
	color: var(--tcwb-ink);
	appearance: none;
}

.tcwb-search input::placeholder {
	color: var(--tcwb-ink-3);
}

.tcwb-search input:focus {
	outline: none;
	border-color: var(--tcwb-blue-light);
	box-shadow: 0 0 0 3px rgba(70, 101, 155, 0.14);
}

.tcwb-pills {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
}

.tcwb-pill {
	display: inline-flex;
	align-items: center;
	height: 38px;
	padding: 0 16px;
	border: 1px solid var(--tcwb-line);
	border-radius: var(--tcwb-r-pill);
	background: var(--tcwb-surface);
	font-size: 13px;
	font-weight: 600;
	color: var(--tcwb-ink-2);
	text-decoration: none;
	white-space: nowrap;
	transition: color var(--tcwb-t) var(--tcwb-ease), border-color var(--tcwb-t) var(--tcwb-ease), background var(--tcwb-t) var(--tcwb-ease);
}

.tcwb-pill:hover {
	color: var(--tcwb-blue);
	border-color: var(--tcwb-blue-light);
}

.tcwb-pill.is-on {
	background: var(--tcwb-blue);
	border-color: transparent;
	color: #fff;
}


/* ==========================================================================
   5. The promoted row: the featured piece and the two picks
   ========================================================================== */

.tcwb-promoted__inner {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: var(--tcwb-gap);
	align-items: start;
}

@media (min-width: 1000px) {
	.tcwb-promoted__inner {
		grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
	}
}

.tcwb-feature {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: clamp(18px, 2vw, 28px);
	align-items: center;
	padding: clamp(20px, 2.2vw, 30px);
	background: var(--tcwb-surface);
	border: 1px solid var(--tcwb-line);
	border-radius: var(--tcwb-r-card);
	box-shadow: var(--tcwb-shadow-sm);
}

@media (min-width: 720px) {
	.tcwb-feature {
		grid-template-columns: minmax(0, 1fr) minmax(0, 0.78fr);
	}
}

.tcwb-feature__meta,
.tcwb-card__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin: 0;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--tcwb-ink-3);
}

.tcwb-feature__meta > span:first-child {
	color: var(--tcwb-blue);
}

/* The separator belongs to the item before it, not the one after. On a narrow column the meta line
   wraps, and a dot that leads the new line reads as a bullet point rather than a divider. */
.tcwb-feature__meta > *:not(:last-child)::after,
.tcwb-card__meta > *:not(:last-child)::after {
	content: "\00b7";
	margin-left: 8px;
	color: var(--tcwb-blue-light);
}

.tcwb-feature__title {
	margin: 14px 0 0;
	font-size: clamp(22px, 2.5vw, 31px);
	font-weight: 800;
	letter-spacing: -0.03em;
	line-height: 1.14;
}

.tcwb-feature__title a {
	color: var(--tcwb-ink);
	text-decoration: none;
}

/* The whole card is the target; the heading link supplies the accessible name. */
.tcwb-feature__title a::after,
.tcwb-card__title a::after,
.tcwb-pick__title a::after {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: inherit;
}

.tcwb-feature:hover .tcwb-feature__title a,
.tcwb-card:hover .tcwb-card__title a,
.tcwb-pick:hover .tcwb-pick__title a {
	color: var(--tcwb-blue);
}

.tcwb-feature__standfirst {
	margin: 14px 0 0;
	max-width: 46ch;
	font-size: 15.5px;
	line-height: 1.6;
	color: var(--tcwb-ink-2);
}

.tcwb-feature .tcwb-btn {
	margin-top: clamp(18px, 2vw, 26px);
}

.tcwb-feature:hover .tcwb-btn {
	background: var(--tcwb-blue-dark);
}

.tcwb-feature:hover .tcwb-btn svg {
	transform: translateX(3px);
}

.tcwb-feature__media,
.tcwb-card__media,
.tcwb-pick__media {
	overflow: hidden;
	border-radius: 12px;
	background: var(--tcwb-ice);
}

.tcwb-feature__media img,
.tcwb-card__media img,
.tcwb-pick__media img {
	display: block;
	width: 100%;
	height: 100%;
	/* The artwork on these posts is illustration, not photography: contain keeps
	   a drawing whole where cover would crop the subject out of it. */
	object-fit: contain;
}

.tcwb-feature__media {
	min-height: 220px;
	padding: 14px;
}

.tcwb-feature__media img {
	max-height: 260px;
}

/* Start here --------------------------------------------------------------- */

.tcwb-rail {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.tcwb-rail .tcwb-eyebrow {
	margin-bottom: 2px;
}

.tcwb-pick {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 1fr) 96px;
	gap: 14px;
	align-items: center;
	padding: 16px;
	background: var(--tcwb-surface);
	border: 1px solid var(--tcwb-line);
	border-radius: 14px;
	box-shadow: var(--tcwb-shadow-sm);
}

.tcwb-pick__title {
	margin: 10px 0 0;
	font-size: 15.5px;
	font-weight: 700;
	letter-spacing: -0.02em;
	line-height: 1.35;
}

.tcwb-pick__title a {
	color: var(--tcwb-ink);
	text-decoration: none;
}

.tcwb-pick__cta {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-top: 12px;
	font-size: 12.5px;
	font-weight: 600;
	color: var(--tcwb-blue);
}

.tcwb-pick__cta svg {
	transition: transform var(--tcwb-t) var(--tcwb-ease);
}

.tcwb-pick:hover .tcwb-pick__cta svg {
	transform: translateX(3px);
}

.tcwb-pick__media {
	align-self: stretch;
	min-height: 88px;
	padding: 8px;
}


/* ==========================================================================
   6. The list and its cards
   ========================================================================== */

.tcwb-listing__head {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: 12px 20px;
	margin-bottom: clamp(18px, 2vw, 26px);
}

.tcwb-grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: var(--tcwb-gap);
}

@media (min-width: 860px) {
	.tcwb-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

.tcwb-card {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 1fr) 124px;
	gap: 18px;
	padding: 20px;
	background: var(--tcwb-surface);
	border: 1px solid var(--tcwb-line);
	border-radius: var(--tcwb-r-card);
	box-shadow: var(--tcwb-shadow-sm);
}

.tcwb-card__body {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.tcwb-card__track {
	color: var(--tcwb-blue);
}

.tcwb-card__title {
	margin: 12px 0 0;
	font-size: 18px;
	font-weight: 700;
	letter-spacing: -0.022em;
	line-height: 1.3;
}

.tcwb-card__title a {
	color: var(--tcwb-ink);
	text-decoration: none;
}

.tcwb-card__excerpt {
	margin: 10px 0 0;
	font-size: 14px;
	line-height: 1.6;
	color: var(--tcwb-ink-2);
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.tcwb-card__date {
	margin-top: auto;
	padding-top: 14px;
	font-size: 12.5px;
	color: var(--tcwb-ink-3);
}

.tcwb-card__media {
	align-self: start;
	height: 124px;
	padding: 10px;
}

@media (max-width: 720px) {
	/* A panel the height of a desktop feature card is a lot of empty blue on a handset. */
	.tcwb-feature__media {
		min-height: 0;
	}

	.tcwb-feature__media img,
	.tcwb-feature__media .tcwb-panel {
		max-height: 180px;
		min-height: 140px;
	}
}

@media (max-width: 520px) {
	.tcwb-card {
		grid-template-columns: minmax(0, 1fr) 96px;
		gap: 14px;
		padding: 16px;
	}

	.tcwb-card__media {
		height: 96px;
	}

	.tcwb-pick {
		grid-template-columns: minmax(0, 1fr) 80px;
	}
}


/* ==========================================================================
   7. The Explore band
   ========================================================================== */

.tcwb-quick__band {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: clamp(24px, 3vw, 40px);
	align-items: center;
	padding: clamp(24px, 3vw, 40px);
	border-radius: 20px;
	background-color: var(--tcwb-navy);
	/* The same drafting grid as the hero blueprint, at the strength a dark ground can carry. */
	background-image:
		linear-gradient(to right, rgba(255, 255, 255, 0.045) 1px, transparent 1px),
		linear-gradient(to bottom, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
	background-size: 26px 26px;
	color: #fff;
}

@media (min-width: 1000px) {
	.tcwb-quick__band {
		grid-template-columns: minmax(0, 0.56fr) minmax(0, 1fr);
	}
}

.tcwb-quick__copy {
	min-width: 0;
}

/* The brand blue is a mid-tone: on navy it is a smudge rather than an accent, so anything blue on
   this band takes a light step of the ramp. */
.tcwb-quick__eyebrow {
	margin: 0;
	font-size: 11.5px;
	font-weight: 700;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--tcwb-blue-light);
}

.tcwb-quick__title {
	margin: 14px 0 0;
	font-size: clamp(28px, 3.1vw, 40px);
	font-weight: 800;
	letter-spacing: -0.032em;
	line-height: 1.08;
}

.tcwb-quick__lead {
	margin: 14px 0 0;
	max-width: 40ch;
	font-size: 15.5px;
	line-height: 1.6;
	color: rgba(255, 255, 255, 0.76);
}

.tcwb-quick__facts {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin: 22px 0 0;
	padding-top: 20px;
	font-size: 12.5px;
	color: rgba(255, 255, 255, 0.62);
	border-top: 1px solid rgba(255, 255, 255, 0.16);
	/* A short rule, not a full one: the line marks the note rather than dividing the band. */
	max-width: 340px;
}

.tcwb-quick__facts > *:not(:last-child)::after {
	content: "\00b7";
	margin-left: 8px;
	color: rgba(255, 255, 255, 0.35);
}

.tcwb-quick__cta {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	height: 46px;
	margin-top: 24px;
	padding: 0 22px;
	border: 1px solid rgba(255, 255, 255, 0.34);
	border-radius: var(--tcwb-r-sm);
	color: #fff;
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
	transition: border-color var(--tcwb-t) var(--tcwb-ease), background var(--tcwb-t) var(--tcwb-ease);
}

.tcwb-quick__cta svg {
	transition: transform var(--tcwb-t) var(--tcwb-ease);
}

.tcwb-quick__cta:hover {
	border-color: var(--tcwb-blue-light);
	background: rgba(255, 255, 255, 0.07);
}

.tcwb-quick__cta:hover svg {
	transform: translateX(3px);
}

/* The rail ---------------------------------------------------------------- */

/* Not a positioning context on purpose: the arrow belongs to the band's edge, out in the gutter,
   rather than to the inside edge of the track. */
.tcwb-quick__rail {
	min-width: 0;
}

.tcwb-quick__track {
	display: flex;
	gap: 14px;
	margin: 0;
	padding: 0;
	list-style: none;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	scrollbar-width: none;
	-ms-overflow-style: none;
}

.tcwb-quick__track::-webkit-scrollbar {
	display: none;
}

.tcwb-quick__track > li {
	flex: 0 0 auto;
	width: 186px;
	scroll-snap-align: start;
}

.tcwb-quick__card {
	display: flex;
	flex-direction: column;
	height: 100%;
	color: #fff;
	text-decoration: none;
}

.tcwb-quick__media {
	display: block;
	overflow: hidden;
	aspect-ratio: 3 / 4;
	border-radius: 12px;
	background: rgba(255, 255, 255, 0.07);
}

.tcwb-quick__media img {
	display: block;
	width: 100%;
	height: 100%;
	/* These are designed covers rather than illustrations on a ground: they fill the tile. */
	object-fit: cover;
	transition: transform 320ms var(--tcwb-ease);
}

.tcwb-quick__card:hover .tcwb-quick__media img {
	transform: scale(1.03);
}

.tcwb-quick__name {
	display: -webkit-box;
	margin-top: 12px;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.35;
	letter-spacing: -0.015em;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.tcwb-quick__card:hover .tcwb-quick__name {
	color: var(--tcwb-blue-light);
}

.tcwb-quick__read {
	margin-top: 6px;
	font-size: 12.5px;
	color: rgba(255, 255, 255, 0.6);
}

/* Shown by assets/js/blog.js, and only where there is something to scroll to. */
.tcwb-quick__arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 1px solid var(--tcwb-line);
	border-radius: var(--tcwb-r-pill);
	background: var(--tcwb-surface);
	color: var(--tcwb-blue);
	box-shadow: var(--tcwb-shadow);
	cursor: pointer;
	right: -22px;
}

.tcwb-quick__arrow:hover {
	color: var(--tcwb-blue-dark);
	border-color: var(--tcwb-blue-light);
}

/* The button sets its own display, which would otherwise beat the browser's rule for [hidden]. */
.tcwb-quick__arrow[hidden] {
	display: none;
}

@media (max-width: 640px) {
	.tcwb-quick__arrow {
		right: 4px;
	}
}


/* ==========================================================================
   8. The pager
   ========================================================================== */

.tcwb-pager {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 8px;
	margin-top: clamp(26px, 3vw, 40px);
}

.tcwb-pager .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 40px;
	height: 40px;
	padding: 0 14px;
	border: 1px solid var(--tcwb-line);
	border-radius: var(--tcwb-r-sm);
	background: var(--tcwb-surface);
	font-size: 13.5px;
	font-weight: 600;
	color: var(--tcwb-ink-2);
	text-decoration: none;
	transition: color var(--tcwb-t) var(--tcwb-ease), border-color var(--tcwb-t) var(--tcwb-ease);
}

.tcwb-pager a.page-numbers:hover {
	color: var(--tcwb-blue);
	border-color: var(--tcwb-blue-light);
}

.tcwb-pager .page-numbers.current {
	background: var(--tcwb-blue);
	border-color: transparent;
	color: #fff;
}

.tcwb-pager .page-numbers.dots {
	border-color: transparent;
	background: none;
	min-width: 0;
	padding: 0 4px;
	color: var(--tcwb-ink-3);
}


/* ==========================================================================
   9. Nothing matched
   ========================================================================== */

.tcwb-empty__panel {
	padding: clamp(28px, 4vw, 52px);
	background: var(--tcwb-surface);
	border: 1px solid var(--tcwb-line);
	border-radius: var(--tcwb-r-card);
	box-shadow: var(--tcwb-shadow-sm);
	text-align: center;
}

.tcwb-empty__lead {
	margin: 12px auto 22px;
	max-width: 48ch;
	font-size: 15px;
	line-height: 1.6;
	color: var(--tcwb-ink-2);
}

.tcwb-empty .tcwb-pills {
	justify-content: center;
}


/* ==========================================================================
   10. Motion
   ========================================================================== */

/* Enhancement only. Every element is styled to its finished state and only
   hidden once html.js is present, so the page is complete with scripting off. */
html.js .tcwb [data-reveal] {
	opacity: 0;
	transform: translateY(12px);
}

html.js .tcwb [data-reveal].is-in {
	opacity: 1;
	transform: none;
	transition: opacity 520ms var(--tcwb-ease), transform 520ms var(--tcwb-ease);
	transition-delay: calc(var(--i, 0) * 70ms);
}

@media (prefers-reduced-motion: reduce) {
	html.js .tcwb [data-reveal] {
		opacity: 1;
		transform: none;
	}

	.tcwb-lift:hover {
		transform: none;
	}

	.tcwb-quick__track {
		scroll-behavior: auto;
	}

	.tcwb *,
	.tcwb *::before,
	.tcwb *::after {
		transition-duration: 1ms !important;
	}
}
