/**
 * Header, Mega Menu, Breaking Bar, Section Heads, Rails, and Footer.
 * Mobile-first; desktop layout from 1000px.
 */

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

.thr-header {
	background: var(--white);
	border-bottom: 1px solid var(--grey-light);
	position: sticky;
	top: 0;
	z-index: 100;
}

.thr-header__bar {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	min-height: var(--header-height);
	padding-top: 8px;
	padding-bottom: 8px;
}

.thr-header__left,
.thr-header__right {
	display: flex;
	align-items: center;
	gap: 14px;
}

.thr-header__right {
	justify-content: flex-end;
}

.thr-header__icon-btn {
	background: none;
	border: 0;
	padding: 6px;
	margin-left: -6px;
	cursor: pointer;
	color: var(--black);
	display: inline-flex;
	align-items: center;
}

.thr-header__icon-btn:hover {
	color: var(--brand-primary);
}

.thr-header__search-btn,
.thr-header__text-link {
	display: none;
}

.thr-header__text-link {
	font-family: var(--font-sans);
	font-size: 14px;
	font-weight: var(--fw-accent);
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: var(--black);
}

.thr-header__subscribe {
	color: var(--brand-primary);
}

.thr-header__logo {
	text-align: center;
}

/* Typeset wordmark (used until a logo image is uploaded). */
.thr-logo {
	display: inline-grid;
	justify-items: center;
	color: var(--brand-primary);
	line-height: 1;
}

.thr-logo:hover {
	color: var(--brand-primary);
}

.thr-logo__the,
.thr-logo__reporter {
	font-family: var(--font-sans);
	font-weight: var(--fw-accent);
	text-transform: uppercase;
	letter-spacing: 0.16em;
	justify-self: end;
}

.thr-logo__the {
	font-size: 7px;
	margin-bottom: -1px;
}

.thr-logo__main {
	font-family: var(--font-serif);
	font-style: italic;
	font-weight: var(--fw-heading);
	font-size: 26px;
	letter-spacing: -0.02em;
}

.thr-logo__reporter {
	font-size: 8px;
	margin-top: 1px;
}

.thr-logo__img {
	display: block;
	width: auto;
	height: 34px;
}

.thr-section-bar {
	display: none;
}

@media (min-width: 1000px) {
	/* Desktop: the full header scrolls away and the compact .thr-sticky bar takes over. */
	.thr-header {
		position: relative;
		border-bottom: 0;
	}

	.thr-header__bar {
		min-height: 104px;
	}

	.thr-header__left,
	.thr-header__right {
		gap: 24px;
	}

	.thr-header__search-btn,
	.thr-header__text-link {
		display: inline-flex;
	}

	.thr-logo__the {
		font-size: 13px;
	}

	.thr-logo__main {
		font-size: 60px;
	}

	.thr-logo__reporter {
		font-size: 15px;
	}

	.thr-logo__img {
		height: 80px;
	}

	.thr-section-bar {
		display: block;
		border-top: 1px solid var(--grey-light);
		border-bottom: 1px solid var(--grey-light);
	}

	.thr-section-bar__list {
		list-style: none;
		margin: 0 auto;
		padding: 0 20px;
		max-width: var(--container-max);
		display: flex;
		justify-content: center;
		flex-wrap: wrap;
		gap: 4px 28px;
	}

	.thr-section-bar__link {
		display: block;
		padding: 14px 0;
		font-family: var(--font-sans);
		font-size: 14px;
		font-weight: var(--fw-accent);
		letter-spacing: 0.05em;
		text-transform: uppercase;
		color: var(--black);
	}

	/* Section dropdowns: open on hover, or via the chevron button (touch and keyboard). */
	.thr-nav__item {
		position: relative;
		display: flex;
		align-items: center;
		gap: 2px;
	}

	.thr-nav__item:hover > .thr-section-bar__link,
	.thr-nav__item.is-open > .thr-section-bar__link {
		color: var(--brand-primary);
	}

	.thr-nav__toggle {
		display: inline-flex;
		align-items: center;
		padding: 4px 0;
		background: none;
		border: 0;
		color: var(--black);
		cursor: pointer;
	}

	.thr-nav__toggle svg {
		transition: transform 0.15s ease;
	}

	.thr-nav__item:hover > .thr-nav__toggle,
	.thr-nav__item.is-open > .thr-nav__toggle {
		color: var(--brand-primary);
	}

	.thr-nav__item:hover > .thr-nav__toggle svg,
	.thr-nav__item.is-open > .thr-nav__toggle svg {
		transform: rotate(180deg);
	}

	.thr-nav__dropdown {
		position: absolute;
		top: 100%;
		left: -16px;
		z-index: 130;
		min-width: 220px;
		max-height: 70vh;
		overflow-y: auto;
		margin: 0;
		padding: 0;
		list-style: none;
		background: var(--white);
		border: 1px solid var(--grey-light);
		border-top: 2px solid var(--brand-primary);
		box-shadow: 0 8px 20px rgb(0 0 0 / 12%);
		opacity: 0;
		visibility: hidden;
		transform: translateY(4px);
		transition: opacity 0.15s ease, transform 0.15s ease, visibility 0s linear 0.15s;
	}

	/* The last items open leftwards so the panel stays on screen. */
	.thr-nav__item:nth-last-child(-n+2) > .thr-nav__dropdown {
		left: auto;
		right: -16px;
	}

	.thr-nav__item:hover > .thr-nav__dropdown,
	.thr-nav__item.is-open > .thr-nav__dropdown,
	.thr-sticky .thr-nav__item:focus-within > .thr-nav__dropdown {
		opacity: 1;
		visibility: visible;
		transform: none;
		transition: opacity 0.15s ease, transform 0.15s ease;
	}

	.thr-nav__dropdown a {
		display: block;
		padding: 12px 16px;
		border-bottom: 1px solid var(--grey-lightest);
		font-family: var(--font-sans);
		font-size: 13px;
		font-weight: var(--fw-accent);
		letter-spacing: 0.05em;
		text-transform: uppercase;
		white-space: nowrap;
		color: var(--black);
	}

	.thr-nav__dropdown li:last-child a {
		border-bottom: 0;
	}

	.thr-nav__dropdown a:hover,
	.thr-nav__dropdown a:focus-visible {
		color: var(--brand-primary);
		background: var(--grey-lightest);
		text-decoration: none;
	}
}

/* WordPress pins its admin bar at 32px from 783px up. */
@media (min-width: 783px) and (max-width: 999px) {
	.admin-bar .thr-header {
		top: 32px;
	}
}

/* ---------- Compact sticky header (desktop, after scrolling past the masthead) ---------- */

.thr-sticky {
	display: none;
}

@media (min-width: 1000px) {
	.thr-sticky {
		display: flex;
		align-items: center;
		gap: 20px;
		position: fixed;
		top: 0;
		left: 0;
		right: 0;
		z-index: 110;
		height: var(--sticky-height);
		padding: 0 16px;
		background: var(--white);
		border-bottom: 1px solid var(--grey-light);
		transform: translateY(-100%);
		visibility: hidden;
		transition: transform 0.2s ease, visibility 0s linear 0.2s;
	}

	.thr-sticky.is-visible {
		transform: none;
		visibility: visible;
		transition: transform 0.2s ease;
	}

	.admin-bar .thr-sticky {
		top: 32px;
	}

	.thr-sticky__menu {
		display: inline-flex;
		align-items: center;
		gap: 8px;
		margin-left: 0;
		font-family: var(--font-sans);
		font-size: 14px;
		font-weight: var(--fw-accent);
		letter-spacing: 0.05em;
		text-transform: uppercase;
	}

	.thr-sticky .thr-logo__the {
		font-size: 6px;
	}

	.thr-sticky .thr-logo__main {
		font-size: 28px;
	}

	.thr-sticky .thr-logo__reporter {
		font-size: 7px;
	}

	.thr-sticky .thr-logo__img {
		height: 34px;
	}

	/* Clip only sideways so dropdowns can still hang below the bar. */
	.thr-sticky__nav {
		flex: 1;
		min-width: 0;
		overflow-x: clip;
		overflow-y: visible;
	}

	/* The compact bar has no room for chevrons; hover and keyboard focus open dropdowns instead. */
	.thr-sticky .thr-nav__toggle {
		display: none;
	}

	/* Items fill the bar's height so a dropdown starts at its bottom edge, with no hover gap. */
	.thr-sticky .thr-nav__item {
		height: var(--sticky-height);
	}

	/* The bar clips sideways, so the right-hand items open leftwards. */
	.thr-sticky .thr-nav__item:nth-last-child(-n+3) > .thr-nav__dropdown {
		left: auto;
		right: -16px;
	}

	.thr-sticky__list {
		list-style: none;
		margin: 0;
		padding: 0;
		display: flex;
		justify-content: flex-end;
		gap: 32px;
		white-space: nowrap;
	}

	.thr-sticky .thr-section-bar__link {
		padding: 0;
	}

	.thr-sticky__subscribe {
		font-family: var(--font-sans);
		font-size: 14px;
		font-weight: var(--fw-accent);
		letter-spacing: 0.05em;
		text-transform: uppercase;
		color: var(--brand-primary);
		white-space: nowrap;
	}
}

/* ---------- Mobile tab bar (sections, home, search; hidden on article pages) ---------- */

.thr-tabbar {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 120;
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	height: calc(var(--tabbar-height) + env(safe-area-inset-bottom, 0px));
	padding-bottom: env(safe-area-inset-bottom, 0px);
	background: var(--white);
	border-top: 1px solid var(--grey-light);
	box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.06);
	transition: transform 0.2s ease;
}

.thr-tabbar.is-hidden {
	transform: translateY(100%);
}

.thr-tabbar__item {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 4px;
	background: none;
	border: 0;
	padding: 0;
	color: var(--black);
	font-family: var(--font-sans);
	font-size: 10px;
	font-weight: var(--fw-accent);
	letter-spacing: 0.04em;
	text-transform: uppercase;
	cursor: pointer;
	min-width: 0;
}

.thr-tabbar__item span {
	max-width: 100%;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.thr-tabbar__item.is-current {
	color: var(--brand-primary);
}

body.has-tabbar {
	padding-bottom: calc(var(--tabbar-height) + env(safe-area-inset-bottom, 0px));
}

@media (min-width: 1000px) {
	.thr-tabbar {
		display: none;
	}

	body.has-tabbar {
		padding-bottom: 0;
	}
}

/* ---------- Mega menu ---------- */

.thr-mega[hidden] {
	display: none;
}

.thr-mega {
	position: fixed;
	inset: 0;
	z-index: 1000;
}

.thr-mega__backdrop {
	position: absolute;
	inset: 0;
	background: var(--overlay);
	opacity: 0;
	transition: opacity 0.2s ease;
}

.thr-mega__panel {
	position: absolute;
	top: 0;
	bottom: 0;
	left: 0;
	width: min(calc(100% - 40px), 440px);
	background: var(--white);
	overflow-y: auto;
	overscroll-behavior: contain;
	transform: translateX(-100%);
	transition: transform 0.25s ease;
}

.thr-mega.is-open .thr-mega__backdrop {
	opacity: 1;
}

.thr-mega.is-open .thr-mega__panel {
	transform: none;
}

.admin-bar .thr-mega__panel {
	top: 46px;
}

.thr-mega__head {
	display: grid;
	grid-template-columns: 1fr auto;
	align-items: center;
	gap: 14px;
	padding: 12px 20px 16px;
	border-bottom: 1px solid var(--grey-light);
}

.thr-mega__logo {
	display: none;
}

.thr-mega__close {
	grid-column: 2;
	grid-row: 1;
	background: none;
	border: 0;
	padding: 6px;
	color: var(--brand-primary);
	cursor: pointer;
}

.thr-mega__search {
	grid-column: 1 / -1;
	position: relative;
	display: flex;
	align-items: center;
	border: 1px solid var(--grey-light);
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
	background: var(--white);
}

.thr-mega__search-btn {
	background: none;
	border: 0;
	padding: 0 6px 0 12px;
	color: var(--black);
	cursor: pointer;
	display: inline-flex;
}

.thr-mega__search-input {
	flex: 1;
	min-width: 0;
	border: 0;
	padding: 13px 12px 13px 4px;
	font-family: var(--font-sans);
	font-size: 14px;
	letter-spacing: 0.06em;
	background: transparent;
	outline: none;
}

.thr-mega__search-input::placeholder {
	color: var(--black);
	text-transform: uppercase;
	font-size: 12px;
}

.thr-mega__search:focus-within {
	border-color: var(--black);
}

.thr-search-results {
	position: absolute;
	top: calc(100% + 4px);
	left: -1px;
	right: -1px;
	background: var(--white);
	border: 1px solid var(--grey-light);
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
	z-index: 5;
}

.thr-search-results:empty {
	display: none;
}

.thr-search-item {
	display: flex;
	gap: 12px;
	align-items: center;
	padding: 10px 12px;
	border-bottom: 1px solid var(--grey-lightest);
}

.thr-search-item:last-child {
	border-bottom: 0;
}

.thr-search-item img {
	width: 72px;
	height: 40px;
	object-fit: cover;
	flex-shrink: 0;
}

.thr-search-item__title {
	font-family: var(--font-display);
	font-size: 15px;
	line-height: 1.2;
}

.thr-search-item__date,
.thr-search-empty,
.thr-search-all {
	font-family: var(--font-sans);
	font-size: 11px;
	color: var(--grey-dark);
	text-transform: uppercase;
	letter-spacing: 0.06em;
}

.thr-search-empty,
.thr-search-all {
	display: block;
	padding: 12px;
}

.thr-search-all {
	color: var(--brand-primary);
	font-weight: var(--fw-accent);
}

.thr-mega__cols {
	list-style: none;
	margin: 0;
	padding: 0 20px;
}

.thr-mega__col {
	border-bottom: 1px solid var(--grey-light);
}

.thr-mega__heading {
	margin: 0;
	font-family: var(--font-display);
	font-size: 24px;
	font-weight: var(--fw-body);
	text-transform: uppercase;
	letter-spacing: -0.01em;
}

.thr-mega__heading-link {
	display: none;
}

.thr-mega__heading > span.thr-mega__heading-link:only-child,
.thr-mega__heading > a.thr-mega__heading-link:only-child {
	display: block;
	padding: 16px 0;
}

.thr-mega__toggle {
	display: flex;
	align-items: center;
	gap: 10px;
	width: 100%;
	padding: 16px 0;
	background: none;
	border: 0;
	font: inherit;
	text-transform: inherit;
	letter-spacing: inherit;
	color: var(--black);
	cursor: pointer;
	text-align: left;
}

.thr-mega__toggle .thr-icon {
	transition: transform 0.2s ease;
}

.thr-mega__toggle[aria-expanded="true"] .thr-icon {
	transform: rotate(180deg);
}

.thr-mega__links {
	list-style: none;
	margin: 0;
	padding: 0 0 14px;
	display: none;
}

.thr-mega__col.is-open .thr-mega__links {
	display: block;
}

.thr-mega__links a {
	display: block;
	padding: 8px 0;
	font-family: var(--font-sans);
	font-size: 17px;
	color: var(--black);
}

.thr-mega__links a:hover {
	color: var(--brand-primary);
}

.thr-mega__foot {
	display: grid;
	gap: 22px;
	padding: 24px 20px 32px;
}

.thr-mega__foot-title {
	display: block;
	font-family: var(--font-display);
	font-size: 18px;
	font-weight: var(--fw-heading);
	text-transform: uppercase;
	margin-bottom: 10px;
}

.thr-social {
	list-style: none;
	margin: 0;
	padding: 0;
}

.thr-social--icons {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
}

.thr-social--icons a {
	color: var(--brand-primary);
	display: inline-flex;
}

.thr-mega__newsletter-row {
	display: flex;
}

.thr-mega__newsletter-row input {
	flex: 1;
	min-width: 0;
	border: 1px solid var(--grey-light);
	border-right: 0;
	padding: 11px 12px;
	font-family: var(--font-sans);
	font-size: 13px;
}

.thr-mega__newsletter-row button {
	background: var(--brand-primary);
	color: var(--white);
	border: 0;
	padding: 0 16px;
	font-family: var(--font-sans);
	font-size: 12px;
	font-weight: var(--fw-accent);
	text-transform: uppercase;
	letter-spacing: 0.06em;
	cursor: pointer;
}

.thr-mega__legal {
	list-style: none;
	margin: 0;
	padding: 14px 0 0;
	border-top: 1px solid var(--black);
	display: flex;
	flex-wrap: wrap;
	gap: 18px;
}

.thr-mega__legal a {
	font-family: var(--font-sans);
	font-size: 10px;
	font-weight: var(--fw-accent);
	text-transform: uppercase;
	letter-spacing: 0.08em;
}

@media (max-width: 782px) {
	.admin-bar .thr-mega__panel {
		top: 0;
	}
}

@media (min-width: 1000px) {
	.thr-mega__panel {
		right: 0;
		bottom: auto;
		width: 100%;
		max-height: 100vh;
		transform: translateY(-16px);
		opacity: 0;
		transition: transform 0.2s ease, opacity 0.2s ease;
	}

	.admin-bar .thr-mega__panel {
		top: 32px;
		max-height: calc(100vh - 32px);
	}

	.thr-mega.is-open .thr-mega__panel {
		opacity: 1;
	}

	.thr-mega__head,
	.thr-mega__cols,
	.thr-mega__foot {
		max-width: 1040px;
		margin-left: auto;
		margin-right: auto;
	}

	.thr-mega__head {
		grid-template-columns: auto minmax(0, 460px) 1fr auto;
		gap: 22px;
		padding: 18px 20px;
		border-bottom: 1px solid var(--grey-light);
	}

	.thr-mega__logo {
		display: block;
	}

	.thr-mega__logo .thr-logo__main {
		font-size: 30px;
	}

	.thr-mega__logo .thr-logo__img {
		height: 40px;
	}

	.thr-mega__logo .thr-logo__the {
		font-size: 8px;
	}

	.thr-mega__logo .thr-logo__reporter {
		font-size: 9px;
	}

	.thr-mega__search {
		grid-column: 2;
		grid-row: 1;
		border: 2px solid var(--black);
		box-shadow: none;
	}

	.thr-mega__close {
		grid-column: 4;
	}

	.thr-mega__cols {
		display: grid;
		grid-template-columns: repeat(4, 1fr);
		gap: 40px 28px;
		padding: 32px 20px;
	}

	.thr-mega__col {
		border-bottom: 0;
	}

	/* THR: 28px condensed caps over a 2px rule; 18px links on a 40px rhythm. */
	.thr-mega__heading {
		font-size: 28px;
		line-height: 1;
		border-bottom: 2px solid var(--black);
		padding-bottom: 12px;
		margin-bottom: 14px;
	}

	.thr-mega__heading .thr-mega__heading-link,
	.thr-mega__heading > span.thr-mega__heading-link:only-child,
	.thr-mega__heading > a.thr-mega__heading-link:only-child {
		display: block;
		padding: 0;
	}

	.thr-mega__toggle {
		display: none;
	}

	.thr-mega__links {
		display: block;
		padding: 0;
	}

	.thr-mega__links a {
		padding: 8px 0;
		font-size: 18px;
		line-height: 24px;
	}

	.thr-mega__foot {
		grid-template-columns: auto 1fr;
		align-items: center;
		gap: 18px 40px;
		padding: 22px 20px 26px;
		border-top: 1px solid var(--grey-light);
	}

	.thr-mega__follow {
		display: flex;
		align-items: center;
		gap: 16px;
	}

	.thr-mega__follow .thr-mega__foot-title {
		margin: 0;
	}

	.thr-mega__newsletter {
		display: flex;
		align-items: center;
		justify-content: flex-end;
		gap: 16px;
	}

	.thr-mega__newsletter .thr-mega__foot-title {
		margin: 0;
		font-family: var(--font-sans);
		font-size: 15px;
		font-weight: var(--fw-accent);
		text-transform: none;
	}

	.thr-mega__newsletter-row {
		width: 300px;
	}

	.thr-mega__legal {
		grid-column: 1 / -1;
	}
}

/* ---------- Breaking bar ---------- */

.thr-breaking-bar {
	background: var(--brand-primary);
	color: var(--white);
	padding: 10px 0;
	font-family: var(--font-sans);
	font-size: 14px;
}

.thr-breaking-bar__inner {
	display: flex;
	align-items: center;
	gap: 12px;
}

.thr-breaking-bar__label {
	flex-shrink: 0;
	font-size: 10px;
	font-weight: var(--fw-accent);
	text-transform: uppercase;
	letter-spacing: 0.08em;
}

.thr-breaking-bar__headline {
	flex: 1;
	min-width: 0;
	font-weight: var(--fw-heading);
	color: var(--white);
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.thr-breaking-bar__headline:hover {
	color: var(--white);
	text-decoration: underline;
}

.thr-breaking-bar__close {
	background: none;
	border: 0;
	color: var(--white);
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
	padding: 0 4px;
}

/* ---------- Section head + subsection row ---------- */

.thr-section-head {
	padding-top: 24px;
	margin-bottom: 8px;
}

.thr-section-head__title {
	margin: 0 0 10px;
	font-size: 40px;
	line-height: 0.95;
	font-weight: var(--fw-body);
	text-transform: uppercase;
	letter-spacing: -0.01em;
}

.thr-section-head__subtitle {
	font-size: 18px;
	color: var(--grey-dark);
	margin: -6px 0 14px;
}

.thr-subnav {
	border-bottom: 1px solid var(--grey);
	overflow-x: auto;
	scrollbar-width: none;
}

.thr-subnav::-webkit-scrollbar {
	display: none;
}

.thr-subnav__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	gap: 28px;
	white-space: nowrap;
}

.thr-subnav__link {
	display: block;
	padding: 6px 0 8px;
	font-family: var(--font-sans);
	font-size: 12px;
	font-weight: var(--fw-accent);
	text-transform: uppercase;
	letter-spacing: 0.12em;
	color: var(--grey-dark);
}

.thr-subnav__link.is-active {
	color: var(--brand-primary);
}

@media (min-width: 1000px) {
	.thr-section-head {
		padding-top: 36px;
	}

	.thr-section-head__title {
		font-size: 56px;
	}

	.thr-subnav__list {
		gap: 48px;
		flex-wrap: wrap;
	}

	.thr-subnav__link {
		font-size: 13px;
	}
}

/* ---------- Main grid + rail ---------- */

.thr-layout-main {
	display: block;
	padding: 24px 0;
}

.thr-layout-grid {
	display: flex;
	flex-direction: column;
	gap: var(--gap-main);
}

.thr-content-area {
	width: 100%;
	min-width: 0;
}

.thr-rail {
	display: none;
	width: var(--rail-width);
	flex-shrink: 0;
}

.thr-rail-title,
.thr-block-title {
	font-size: 22px;
	font-weight: var(--fw-heading);
	text-transform: uppercase;
	letter-spacing: -0.01em;
	border-top: 2px solid var(--black);
	padding-top: 10px;
	margin-bottom: 12px;
}

.thr-block-title {
	font-size: 28px;
	margin-bottom: 8px;
}

.thr-rail-block {
	margin-top: 30px;
}

.thr-more-link {
	display: inline-block;
	margin-top: 14px;
	font-family: var(--font-sans);
	font-size: 12px;
	font-weight: var(--fw-accent);
	color: var(--brand-primary);
	text-transform: uppercase;
	letter-spacing: 0.06em;
}

.thr-pagination {
	margin: 40px 0;
	text-align: center;
	font-family: var(--font-sans);
}

@media (min-width: 1000px) {
	.thr-layout-main {
		padding: 30px 0;
	}

	.thr-layout-grid {
		flex-direction: row;
		justify-content: space-between;
	}

	.thr-content-area {
		max-width: var(--content-width);
		flex: 1 1 auto;
	}

	.thr-rail {
		display: block;
	}

	.thr-rail-title {
		font-size: 29px;
		line-height: 28px;
	}

	/* THR's Latest News rail has no rule above its heading. */
	.thr-rail-widget > .thr-rail-title {
		border-top: 0;
		padding-top: 0;
	}

	.thr-rail--sticky {
		position: sticky;
		top: 20px;
		align-self: flex-start;
	}
}

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

.thr-footer {
	background: var(--footer-bg);
	color: var(--white);
	margin-top: 60px;
	font-family: var(--font-sans);
}

.thr-footer a {
	color: inherit;
}

.thr-footer a:hover {
	color: var(--white);
	text-decoration: underline;
}

.thr-footer__inner {
	display: grid;
	gap: 32px;
	padding-top: 40px;
	padding-bottom: 32px;
}

.thr-footer__cover {
	max-width: 220px;
	margin: 0 auto;
	width: 100%;
}

.thr-footer__cover img {
	width: 100%;
}

.thr-footer__cover-placeholder {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 16px;
	aspect-ratio: 3 / 4;
	border: 1px solid var(--footer-rule);
	background: var(--grey-darkest);
}

.thr-footer__cover--placeholder {
	display: none;
}

.thr-logo--footer {
	color: var(--white);
}

.thr-logo--footer .thr-logo__main {
	font-size: 44px;
}

.thr-footer a.thr-footer__cover-link:hover {
	text-decoration: none;
}

.thr-footer__menus {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 28px 20px;
}

.thr-footer__title,
.thr-footer__action-title {
	font-family: var(--font-sans);
	font-size: 16px;
	font-weight: var(--fw-accent);
	letter-spacing: 0;
	color: var(--white);
	margin: 0 0 14px;
	line-height: 1.25;
}

.thr-footer__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 12px;
}

.thr-footer__list a {
	font-size: 13px;
	font-weight: var(--fw-heading);
	color: var(--footer-muted);
}

.thr-social--labelled {
	display: grid;
	gap: 12px;
}

.thr-social--labelled a {
	display: flex;
	align-items: center;
	gap: 14px;
	font-size: 13px;
	font-weight: var(--fw-accent);
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--white);
}

.thr-footer__actions {
	display: grid;
	gap: 32px;
	margin-top: 28px;
	padding-top: 28px;
	border-top: 1px solid var(--footer-rule);
	text-align: center;
}

.thr-footer__newsletter-row {
	display: flex;
	align-items: flex-end;
	justify-content: center;
	gap: 16px;
	max-width: 360px;
	margin: 0 auto 14px;
}

.thr-footer__newsletter-row input {
	flex: 1;
	min-width: 0;
	background: transparent;
	border: 0;
	border-bottom: 1px solid var(--white);
	color: var(--white);
	padding: 8px 4px;
	font-family: var(--font-sans);
	font-size: 13px;
}

.thr-footer__newsletter-row input::placeholder {
	color: var(--footer-muted);
}

.thr-arrow-link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: none;
	border: 0;
	padding: 6px 0;
	color: var(--white);
	font-family: var(--font-sans);
	font-size: 13px;
	font-weight: var(--fw-accent);
	letter-spacing: 0.08em;
	text-transform: uppercase;
	cursor: pointer;
}

.thr-footer__fineprint {
	font-size: 11px;
	line-height: 1.6;
	color: var(--footer-muted);
	max-width: 360px;
	margin: 0 auto;
}

.thr-footer__fineprint a {
	color: var(--white);
	font-weight: var(--fw-accent);
}

.thr-footer__tip p {
	font-size: 14px;
	font-weight: var(--fw-heading);
	letter-spacing: 0.02em;
	margin: 0 0 8px;
}

.thr-footer__bottom {
	border-top: 1px solid var(--footer-rule);
	padding: 18px 0;
	text-align: center;
	font-size: 11px;
	color: var(--footer-muted);
}

.thr-footer__bottom p {
	margin: 0;
}

@media (min-width: 700px) {
	.thr-footer__menus {
		grid-template-columns: repeat(4, 1fr);
	}

	.thr-footer__actions {
		grid-template-columns: 1fr 1fr;
	}

	.thr-footer__tip {
		border-left: 1px solid var(--footer-rule);
	}
}

@media (min-width: 1000px) {
	.thr-footer__inner {
		grid-template-columns: 300px 1fr;
		gap: 32px;
		padding-top: 48px;
		padding-bottom: 48px;
	}

	.thr-footer__cover {
		max-width: none;
		margin: 0;
	}

	.thr-footer__cover--placeholder {
		display: block;
	}

	.thr-footer__menus {
		gap: 0;
	}

	.thr-footer__col {
		padding: 0 24px 12px;
		border-right: 1px solid var(--footer-rule);
	}

	.thr-footer__col:last-child {
		border-right: 0;
	}

	.thr-footer__title {
		font-size: 18px;
	}

	.thr-footer__actions {
		margin-left: 24px;
	}
}
