/**
 * Tracey Muir — base styles, global header and footer, shared components.
 * Section/widget styles live in widgets.css and load only where used.
 * All colours, fonts and spacing come from the --tm-* tokens printed inline.
 */

/* ---------- Base ---------- */

html {
	scroll-padding-top: 1rem;
}

body {
	background: var(--tm-color-background);
	color: var(--tm-color-text);
	font-family: var(--tm-font-body);
	font-size: var(--tm-size-body);
	font-weight: var(--tm-weight-body);
	line-height: var(--tm-lh-body);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6 {
	color: var(--tm-color-primary);
	font-family: var(--tm-font-heading);
	font-weight: var(--tm-weight-heading);
	line-height: var(--tm-lh-heading);
	letter-spacing: var(--tm-ls-heading);
	margin: 0 0 0.5em;
}

h1 { font-size: var(--tm-size-h1); }
h2 { font-size: var(--tm-size-h2); }
h3 { font-size: var(--tm-size-h3); }
h4 { font-size: var(--tm-size-h4); }
h5 { font-size: var(--tm-size-h5); }
h6 { font-size: var(--tm-size-h6); }

a {
	color: var(--tm-color-link);
}

a:hover,
a:active {
	color: var(--tm-color-link-hover);
}

:focus-visible {
	outline: 2px solid var(--tm-color-focus);
	outline-offset: 3px;
}

img {
	max-width: 100%;
	height: auto;
}

/* Skip-link target: receives focus programmatically, no outline needed. */
.tm-main:focus {
	outline: none;
}

.screen-reader-text:focus {
	background: var(--tm-color-surface);
	color: var(--tm-color-primary);
	z-index: 1000;
}

.tm-container {
	box-sizing: border-box;
	width: 100%;
	max-width: calc(var(--tm-container) + 2 * var(--tm-gutter));
	margin-inline: auto;
	padding-inline: var(--tm-gutter);
}

:root {
	--tm-gutter: var(--tm-gutter-desktop);
	--tm-inset: 24px;
}

@media (max-width: 1024px) {
	:root {
		--tm-gutter: var(--tm-gutter-tablet);
		--tm-inset: 0px;
	}
}

@media (max-width: 767px) {
	:root {
		--tm-gutter: var(--tm-gutter-mobile);
	}
}

/* ---------- Shared components ---------- */

.tm-eyebrow {
	color: var(--tm-color-secondary);
	font-family: var(--tm-font-body);
	font-size: var(--tm-size-eyebrow);
	font-weight: var(--tm-weight-bold);
	letter-spacing: var(--tm-ls-eyebrow);
	line-height: 1.4;
	margin: 0 0 1.4em;
	text-transform: uppercase;
}

.tm-button {
	align-items: center;
	background: var(--tm-color-button);
	border: var(--tm-border-width) solid var(--tm-color-button);
	border-radius: var(--tm-radius);
	box-sizing: border-box;
	color: var(--tm-color-button-text);
	cursor: pointer;
	display: inline-flex;
	font-family: var(--tm-font-body);
	font-size: var(--tm-size-button);
	font-weight: var(--tm-weight-bold);
	gap: 0.65em;
	justify-content: center;
	line-height: 1.5;
	padding: var(--tm-button-pad-y) var(--tm-button-pad-x);
	text-decoration: none;
	transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.tm-button:hover,
.tm-button:focus-visible {
	background: var(--tm-color-button-hover);
	border-color: var(--tm-color-button-hover);
	color: var(--tm-color-button-text);
}

/* <button class="tm-button"> (form submits): undo Hello's pink button:focus after a click. */
button.tm-button:focus {
	background-color: var(--tm-color-button);
	color: var(--tm-color-button-text);
}

button.tm-button:is(:hover, :focus-visible) {
	background-color: var(--tm-color-button-hover);
	border-color: var(--tm-color-button-hover);
}

.tm-button--outline {
	background: transparent;
	border-color: color-mix(in srgb, var(--tm-color-primary) 35%, transparent);
	color: var(--tm-color-primary);
	min-width: 160px;
}

.tm-button--outline:hover,
.tm-button--outline:focus-visible {
	background: var(--tm-color-surface);
	border-color: var(--tm-color-primary);
	color: var(--tm-color-primary);
}

.tm-button--text {
	background: none;
	border: 0;
	color: var(--tm-color-primary);
	padding: 0;
}

.tm-button--text:hover,
.tm-button--text:focus-visible {
	background: none;
	color: var(--tm-color-secondary);
}

.tm-button svg,
.tm-link-arrow svg {
	flex: none;
	height: 1em;
	width: 1em;
}

.tm-link-arrow {
	align-items: center;
	color: var(--tm-color-primary);
	display: inline-flex;
	font-size: var(--tm-size-small);
	font-weight: var(--tm-weight-bold);
	gap: 0.6em;
	text-decoration: none;
}

.tm-link-arrow:hover,
.tm-link-arrow:focus-visible {
	color: var(--tm-color-secondary);
}

/* Arrow nudge on hover lives in motion.css (Site Settings → Motion). */

.tm-divider {
	background: var(--tm-color-secondary);
	border: 0;
	display: block;
	height: 2px;
	margin: 0;
	width: 68px;
}

/* Placeholder shown when an image is not set. */
.tm-image-placeholder {
	align-items: center;
	background: var(--tm-color-alt-background);
	color: var(--tm-color-muted);
	display: flex;
	font-size: var(--tm-size-small);
	height: 100%;
	justify-content: center;
	width: 100%;
}

/* ---------- Article cards (homepage widget, archives, search) ---------- */

.tm-card-grid {
	display: grid;
	gap: var(--tm-grid-gap);
	grid-template-columns: repeat(var(--tm-columns, 4), minmax(0, 1fr));
}

.tm-card-grid--3 { --tm-columns: 3; }

.tm-card {
	background: var(--tm-color-surface);
	border: var(--tm-border-width) solid var(--tm-color-border);
	display: flex;
	flex-direction: column;
	position: relative;
}

.tm-card__media {
	aspect-ratio: var(--tm-card-ratio, 1.27);
	background: var(--tm-color-alt-background);
	overflow: hidden;
}

.tm-card__media img {
	display: block;
	height: 100%;
	object-fit: cover;
	width: 100%;
}

.tm-card__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	padding: 22px 24px 40px;
}

.tm-card__label {
	align-self: flex-start;
	background: var(--tm-label-bg, var(--tm-color-alt-background));
	color: var(--tm-label-color, var(--tm-color-secondary));
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.1em;
	line-height: 1;
	margin: 0 0 16px;
	padding: 6px 7px 5px;
	text-decoration: none;
	text-transform: uppercase;
}

/* Category label and optional date share one row. */
.tm-card__meta {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	gap: 8px 14px;
	margin: 0 0 16px;
}

.tm-card__meta .tm-card__label {
	margin: 0;
}

.tm-card__date {
	color: var(--tm-color-muted);
	font-size: 13px;
}

/* ---------- Breadcrumb (page heroes, articles, books) ---------- */

.tm-breadcrumb {
	font-size: 14px;
	margin-bottom: 28px;
}

.tm-breadcrumb ol {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 0;
	list-style: none;
	margin: 0;
	padding: 0;
}

.tm-breadcrumb li + li::before {
	color: var(--tm-color-border);
	content: "/";
	margin: 0 10px;
}

.tm-breadcrumb a {
	color: var(--tm-color-muted);
	text-decoration: none;
}

.tm-breadcrumb a:hover,
.tm-breadcrumb a:focus-visible {
	color: var(--tm-color-secondary);
	text-decoration: underline;
}

.tm-breadcrumb [aria-current] {
	color: var(--tm-color-primary);
}

.tm-card__title {
	font-size: var(--tm-size-h3);
	line-height: 1.28;
	margin: 0 0 14px;
}

.tm-card__title a {
	color: inherit;
	text-decoration: none;
}

/* Whole card is clickable through the title link. */
.tm-card__title a::after {
	content: "";
	inset: 0;
	position: absolute;
}

.tm-card__label,
.tm-card__more {
	position: relative;
	z-index: 1;
}

.tm-card__title a:hover,
.tm-card:hover .tm-card__more {
	color: var(--tm-color-secondary);
}

.tm-card__title a:focus-visible {
	outline: none;
}

/* Focus ring around the whole card when its (stretched) title link is focused. */
.tm-card:focus-within {
	outline: 2px solid var(--tm-color-focus);
	outline-offset: 3px;
}

.tm-card__excerpt {
	color: var(--tm-color-text);
	font-size: 15.5px;
	line-height: 1.9;
	margin: 0 0 26px;
}

.tm-card__more {
	margin-top: auto;
}

@media (max-width: 1024px) {
	.tm-card-grid { --tm-columns: 2 !important; }
}

@media (max-width: 599px) {
	.tm-card-grid { --tm-columns: 1 !important; }
}

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

.tm-header {
	background: var(--tm-header-bg);
	color: var(--tm-header-text);
	position: relative;
	z-index: 100;
}

.tm-header--bordered {
	border-bottom: var(--tm-border-width) solid var(--tm-color-border);
}

.tm-has-sticky-header .tm-header {
	position: sticky;
	top: 0;
}

.admin-bar.tm-has-sticky-header .tm-header {
	top: var(--wp-admin--admin-bar--height, 32px);
}

.tm-header__inner {
	align-items: center;
	display: flex;
	gap: 24px;
	min-height: var(--tm-header-height);
}

.tm-brand {
	color: var(--tm-header-text);
	display: inline-flex;
	flex: none;
	flex-direction: column;
	text-decoration: none;
}

.tm-brand:hover {
	color: var(--tm-header-text);
}

.tm-brand__name {
	font-family: var(--tm-font-heading);
	font-size: 34px;
	letter-spacing: -0.01em;
	line-height: 1;
}

.tm-brand__subtitle {
	color: var(--tm-color-secondary);
	font-family: var(--tm-font-body);
	font-size: 10.5px;
	font-weight: var(--tm-weight-bold);
	letter-spacing: 0.24em;
	line-height: 1;
	margin-top: 9px;
	text-transform: uppercase;
}

.tm-brand__logo {
	display: block;
	height: auto;
	max-width: 100%;
}

/* Phones: a smaller logo leaves room for the search and menu buttons. */
@media (max-width: 767px) {
	.tm-brand--header .tm-brand__logo {
		width: 180px !important; /* Overrides the inline width from Site Settings. */
	}
}

.tm-nav {
	flex: 1;
	font-family: var(--tm-font-nav);
}

.tm-nav__list,
.tm-nav__submenu {
	list-style: none;
	margin: 0;
	padding: 0;
}

.tm-nav__list {
	align-items: center;
	display: flex;
	gap: 6px 22px;
	justify-content: flex-end;
}

.tm-nav__item {
	align-items: center;
	display: flex;
	position: relative;
}

.tm-nav__link {
	background: none;
	border: 0;
	color: var(--tm-header-text);
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	gap: 3px;
	font: inherit;
	font-size: var(--tm-size-nav);
	line-height: 1.3;
	padding: 10px 0;
	position: relative;
	text-decoration: none;
	white-space: nowrap;
}

.tm-nav__link:hover,
.tm-nav__link:focus-visible {
	color: var(--tm-nav-hover);
}

/*
 * Hello Elementor's reset.css styles every <button> with
 * `[type=button]:hover, [type=button]:focus, button:hover, button:focus
 * { background-color: #c36; color: #fff }` (specificity 0,2,0) plus
 * `transition: all .3s`. That painted the "Research & Practice" trigger pink
 * and turned its label white after a click. These rules restore the header's
 * own states for the header's buttons only (specificity 0,2,1).
 */
button.tm-nav__link,
button.tm-nav__submenu-toggle,
button.tm-header__button {
	transition: color 0.15s ease;
}

button.tm-nav__link:is(:hover, :focus),
button.tm-nav__submenu-toggle:is(:hover, :focus),
button.tm-header__button:is(:hover, :focus) {
	background-color: transparent;
	color: var(--tm-header-text);
}

button.tm-nav__link:is(:hover, :focus-visible),
button.tm-nav__submenu-toggle:is(:hover, :focus-visible),
button.tm-header__button:is(:hover, :focus-visible),
.tm-nav__item--parent:hover > button.tm-nav__submenu-toggle {
	color: var(--tm-nav-hover);
}

.tm-nav__item.is-current > .tm-nav__link {
	font-weight: var(--tm-weight-bold);
}

.tm-nav__list > .tm-nav__item.is-current > .tm-nav__link::after {
	background: var(--tm-nav-active);
	bottom: -8px;
	content: "";
	height: 2px;
	left: 0;
	position: absolute;
	right: 0;
}

.tm-nav__submenu-toggle {
	background: none;
	border: 0;
	color: var(--tm-header-text);
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin-left: 0;
	min-height: 24px;
	min-width: 24px;
	padding: 0;
}

.tm-ui-icon--caret {
	height: 12px;
	transition: transform 0.15s ease;
	width: 12px;
}

.tm-nav__item.is-open > button .tm-ui-icon--caret {
	transform: rotate(180deg);
}

.tm-nav__submenu {
	background: var(--tm-dropdown-bg);
	border: var(--tm-border-width) solid var(--tm-dropdown-border);
	left: -16px;
	min-width: 240px;
	opacity: 0;
	padding: 8px 0;
	position: absolute;
	/* Items are centred in the header, so this lines the dropdown up with the header's bottom edge. */
	top: calc(50% + var(--tm-header-height) / 2 - var(--tm-border-width));
	transform: translateY(4px);
	transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s;
	visibility: hidden;
}

/* Invisible bridge across the gap so the dropdown stays open while the pointer moves down to it. */
.tm-nav__submenu::before {
	bottom: 100%;
	content: "";
	height: calc(var(--tm-header-height) / 2);
	left: 0;
	position: absolute;
	right: 0;
}

.tm-nav__submenu .tm-nav__link {
	color: var(--tm-dropdown-text);
	display: block;
	padding: 9px 16px;
	white-space: normal;
}

.tm-nav__submenu .tm-nav__link:hover,
.tm-nav__submenu .tm-nav__link:focus-visible {
	color: var(--tm-nav-hover);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.tm-nav__item--parent:hover > .tm-nav__submenu,
.tm-nav__item--parent.is-open > .tm-nav__submenu {
	opacity: 1;
	transform: none;
	visibility: visible;
}

.tm-nav__empty {
	font-size: var(--tm-size-small);
	margin: 0;
	text-align: right;
}

.tm-header__button {
	align-items: center;
	background: none;
	border: 0;
	border-radius: var(--tm-radius);
	color: var(--tm-header-text);
	cursor: pointer;
	display: inline-flex;
	height: 44px;
	justify-content: center;
	padding: 0;
	width: 44px;
}

.tm-search-toggle {
	margin-left: 26px;
	margin-right: -12px;
}

.tm-nav-toggle {
	display: none;
}

.tm-nav-toggle .tm-ui-icon--close,
.is-nav-open .tm-nav-toggle .tm-ui-icon--menu {
	display: none;
}

.is-nav-open .tm-nav-toggle .tm-ui-icon--close {
	display: block;
}

.tm-search-panel {
	background: var(--tm-header-bg);
	border-top: var(--tm-border-width) solid var(--tm-color-border);
	border-bottom: var(--tm-border-width) solid var(--tm-color-border);
	left: 0;
	padding-block: 20px;
	position: absolute;
	right: 0;
	top: 100%;
}

.tm-search-panel__form {
	align-items: center;
	display: flex;
	gap: 12px;
}

.tm-search-panel__input,
.tm-listing__search input {
	background: var(--tm-color-surface);
	border: var(--tm-border-width) solid var(--tm-color-border);
	border-radius: var(--tm-radius);
	color: var(--tm-color-text);
	flex: 1;
	font: inherit;
	min-width: 0;
	padding: 14px 16px;
}

/* Header switches to the menu button below 1320px: nine 16px menu items and the logo need ~1304px. */
@media (max-width: 1319px) {
	.tm-header__inner {
		min-height: 80px;
	}

	.tm-brand__name {
		font-size: 28px;
	}

	.tm-header__inner {
		gap: 4px;
	}

	.tm-brand {
		margin-right: auto;
	}

	.tm-nav-toggle {
		display: inline-flex;
		margin-right: -10px;
		order: 3;
	}

	.tm-search-toggle {
		margin: 0;
		order: 2;
	}

	.tm-nav {
		background: var(--tm-header-bg);
		border-bottom: var(--tm-border-width) solid var(--tm-color-border);
		display: none;
		left: 0;
		max-height: calc(100vh - 80px);
		overflow-y: auto;
		position: absolute;
		right: 0;
		top: 100%;
	}

	.is-nav-open .tm-nav {
		display: block;
	}

	.tm-nav__list {
		align-items: stretch;
		flex-direction: column;
		gap: 0;
		padding: 8px var(--tm-gutter) 20px;
	}

	.tm-nav__item {
		border-bottom: var(--tm-border-width) solid var(--tm-color-border);
		flex-wrap: wrap;
	}

	.tm-nav__link {
		flex: 1;
		font-size: var(--tm-size-nav);
		padding: 14px 0;
	}

	.tm-nav__toggle-only {
		justify-content: space-between;
	}

	.tm-nav__list > .tm-nav__item.is-current > .tm-nav__link::after {
		display: none;
	}

	.tm-nav__submenu-toggle {
		height: 48px;
		justify-content: center;
		width: 48px;
	}

	.tm-nav__submenu {
		border: 0;
		box-shadow: none;
		display: none;
		flex-basis: 100%;
		opacity: 1;
		padding: 0 0 10px 16px;
		position: static;
		transform: none;
		visibility: visible;
	}

	.tm-nav__item--parent:hover > .tm-nav__submenu {
		display: none;
	}

	.tm-nav__item--parent.is-open > .tm-nav__submenu,
	.tm-header--submenus-expanded .tm-nav__item--parent > .tm-nav__submenu {
		display: block;
	}

	.tm-nav__submenu::before {
		display: none;
	}

	/* "Always expanded" setting: submenus are open, so their toggles are not needed. */
	.tm-header--submenus-expanded .tm-nav__submenu-toggle {
		display: none;
	}

	.tm-nav__submenu .tm-nav__item {
		border: 0;
	}

	.tm-nav__submenu .tm-nav__link {
		font-size: var(--tm-size-nav);
		padding: 10px 0;
	}
}

@media (max-width: 767px) {
	.tm-brand__name {
		font-size: 25px;
	}

	.tm-brand__subtitle {
		font-size: 9.5px;
		margin-top: 7px;
	}

	.tm-search-panel__form .tm-button {
		display: none;
	}
}

/* ---------- Footer ---------- */

.tm-footer {
	background: var(--tm-footer-bg);
	color: var(--tm-footer-text);
	padding-block: var(--tm-footer-space) 40px;
}

.tm-footer > .tm-container {
	padding-inline: calc(var(--tm-gutter) + var(--tm-inset));
}

.tm-footer .tm-brand {
	color: var(--tm-color-primary);
}

.tm-footer__top {
	align-items: start;
	display: grid;
	gap: 40px;
	grid-template-columns: 468px 1fr auto;
	padding-bottom: 44px;
}

.tm-footer__tagline {
	color: var(--tm-color-text);
	font-family: var(--tm-font-heading);
	font-size: 17px;
	font-style: italic;
	margin: 46px 0 0;
}

.tm-footer__nav {
	display: grid;
	gap: 0 var(--tm-footer-column-gap);
	grid-template-columns: repeat(2, max-content);
}

.tm-footer__menu,
.tm-footer__legal,
.tm-social-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.tm-footer__menu a {
	color: var(--tm-footer-link);
	display: inline-block;
	font-size: var(--tm-size-nav);
	line-height: 1.4;
	padding: 3px 0 5px;
	text-decoration: none;
}

.tm-footer__menu a:hover,
.tm-footer__legal a:hover {
	color: var(--tm-color-secondary);
	text-decoration: underline;
}

.tm-footer__social {
	border-left: var(--tm-border-width) solid var(--tm-color-border);
	min-height: 172px;
	padding-left: 64px;
	padding-right: 48px;
}

.tm-footer__heading {
	color: var(--tm-color-primary);
	font-family: var(--tm-font-body);
	font-size: 16px;
	font-weight: var(--tm-weight-bold);
	letter-spacing: 0;
	margin: 0 0 14px;
}

/* One heading over both footer menu columns, styled like "Follow". */
.tm-footer__nav-heading {
	grid-column: 1 / -1;
}

.tm-social-list {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

/* 34px hit area around a 26px icon; the negative margin keeps the icons aligned with the heading. */
.tm-social-list a {
	align-items: center;
	border-radius: 2px;
	color: var(--tm-color-primary);
	display: inline-flex;
	height: 34px;
	justify-content: center;
	transition: color 0.15s ease;
	width: 34px;
}

.tm-social-list li:first-child a {
	margin-left: -4px;
}

.tm-social-list a:hover,
.tm-social-list a:focus-visible {
	background: transparent;
	color: var(--tm-color-secondary);
}

/* Hello's reset.css sets `a:focus-visible { outline: 2px solid #000 }`; use the site focus colour here. */
.tm-social-list a:focus-visible {
	outline: 2px solid var(--tm-color-focus);
	outline-offset: 2px;
}

.tm-social-list svg {
	display: block;
	height: 26px;
	width: 26px;
}

.tm-footer__bottom {
	align-items: center;
	border-top: var(--tm-border-width) solid var(--tm-color-border);
	display: flex;
	flex-wrap: wrap;
	font-size: 13px;
	gap: 12px 24px;
	justify-content: space-between;
	padding-top: 26px;
}

.tm-footer__copyright {
	color: var(--tm-color-muted);
	margin: 0;
}

.tm-footer__legal {
	display: flex;
	flex-wrap: wrap;
}

.tm-footer__legal li + li::before {
	color: var(--tm-color-border);
	content: "|";
	margin: 0 12px;
}

.tm-footer__legal a {
	color: var(--tm-color-muted);
	text-decoration: none;
}

@media (max-width: 1180px) {
	.tm-footer__top {
		grid-template-columns: 1fr 1fr;
	}

	.tm-footer__brand {
		grid-column: 1 / -1;
	}

	.tm-footer__tagline {
		margin-top: 20px;
	}

	.tm-footer__social {
		min-height: 0;
		padding-right: 0;
	}
}

@media (max-width: 599px) {
	.tm-footer__top {
		grid-template-columns: 1fr;
		gap: 32px;
	}

	.tm-footer__nav {
		gap: 0 min(32px, var(--tm-footer-column-gap));
	}

	.tm-footer__social {
		border-left: 0;
		border-top: var(--tm-border-width) solid var(--tm-color-border);
		padding: 24px 0 0;
	}
}

/* ---------- Listings, singular content ---------- */

body:not(.elementor-page) .site-main {
	box-sizing: border-box;
	max-width: calc(var(--tm-container) + 2 * var(--tm-gutter));
	padding: var(--tm-section-space) var(--tm-gutter);
	width: 100%;
}

body.single .site-main,
body.page:not(.elementor-page) .site-main {
	max-width: calc(780px + 2 * var(--tm-gutter));
}

.page-header .entry-title,
.tm-listing__title {
	font-size: var(--tm-size-h1);
	margin-bottom: 0.4em;
}

/* Hello adds its own widths and 10px side padding to titles; the container handles both. */
.page-header .entry-title {
	max-width: none;
	padding-inline: 0;
}

.tm-entry-meta {
	align-items: center;
	color: var(--tm-color-muted);
	display: flex;
	flex-wrap: wrap;
	font-size: var(--tm-size-small);
	gap: 8px 16px;
	margin-bottom: 18px;
}

.tm-entry-meta .tm-card__label {
	margin: 0;
}

.tm-entry-image {
	margin: 8px 0 32px;
}

.tm-entry-image img {
	aspect-ratio: 1.27;
	display: block;
	height: auto;
	object-fit: cover;
	width: 100%;
}

.tm-listing__header {
	margin-bottom: 48px;
	max-width: 780px;
}

.tm-listing__description {
	color: var(--tm-color-muted);
}

.tm-listing__search {
	display: flex;
	gap: 12px;
	margin-top: 24px;
}

.tm-listing__empty {
	color: var(--tm-color-muted);
}

.tm-pagination {
	margin-top: 48px;
}

.tm-pagination .nav-links {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.tm-pagination .page-numbers {
	border: var(--tm-border-width) solid var(--tm-color-border);
	border-radius: var(--tm-radius);
	color: var(--tm-color-primary);
	padding: 8px 14px;
	text-decoration: none;
}

.tm-pagination .page-numbers.current {
	background: var(--tm-color-primary);
	border-color: var(--tm-color-primary);
	color: var(--tm-color-surface);
}

.page-content > * + * {
	margin-top: 1.2em;
}

.page-content blockquote {
	border-left: 2px solid var(--tm-color-secondary);
	font-family: var(--tm-font-heading);
	font-size: 1.25em;
	font-style: italic;
	margin-inline: 0;
	padding-left: 1.2em;
}

.tm-book-single {
	align-items: start;
	display: grid;
	gap: 40px;
	grid-template-columns: 260px 1fr;
	margin-bottom: 2em;
}

.tm-book-single__cover {
	box-shadow: 0 10px 18px rgba(30, 43, 69, 0.18);
	display: block;
	width: 100%;
}

.tm-book-single__details {
	display: grid;
	gap: 6px 20px;
	grid-template-columns: max-content 1fr;
	margin: 0;
}

.tm-book-single__details dt {
	color: var(--tm-color-muted);
	font-weight: var(--tm-weight-bold);
}

.tm-book-single__details dd {
	margin: 0;
}

@media (max-width: 599px) {
	.tm-book-single {
		grid-template-columns: 1fr;
	}

	.tm-book-single__cover {
		max-width: 240px;
	}
}

.tm-entry-download {
	background: var(--tm-color-alt-background);
	border: var(--tm-border-width) solid var(--tm-color-border);
	margin-top: 2em;
	padding: 20px 24px;
}

.tm-entry-download .tm-eyebrow {
	margin-bottom: 8px;
}

.tm-entry-download__name {
	color: var(--tm-color-primary);
	font-weight: var(--tm-weight-bold);
	margin: 0 0 14px;
}

.tm-entry-download__meta {
	color: var(--tm-color-muted);
	font-size: 13px;
	font-weight: var(--tm-weight-body);
	letter-spacing: 0.05em;
	margin-left: 8px;
}

.tm-entry-download p:last-child,
.tm-entry-external {
	margin-bottom: 0;
}

.tm-entry-external {
	margin-top: 1.5em;
}

/* Book page: details, themes and link beside the cover. */
.tm-book-single__info > * + * {
	margin-top: 24px;
}

.tm-tag-list {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.tm-tag-list li {
	background: var(--tm-color-alt-background);
	border: var(--tm-border-width) solid var(--tm-color-border);
	font-size: 14px;
	padding: 4px 12px;
}

/* Related articles and back link at the end of articles and books. */
.tm-related {
	border-top: var(--tm-border-width) solid var(--tm-color-border);
	margin-top: 64px;
	padding-top: 48px;
}

.tm-related__heading {
	font-size: clamp(26px, 1vw + 18px, 32px);
	margin-bottom: 28px;
}

.tm-related .tm-card__title {
	font-size: 20px;
}

.tm-related .tm-card__body {
	padding: 20px 20px 28px;
}

.tm-back-link {
	margin: 48px 0 0;
}

.tm-link-arrow--back::before {
	content: "\2190";
	margin-right: 2px;
}

/* ---------- Motion preferences ---------- */

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