/*
 * The Fauxy theme styles.
 * Values follow reference design/Main.dc.html.
 */

/* ---------- Tokens ---------- */

/* Primary colour: brand red by default. A category can swap all five
   --tf-primary* values for its own colour (Posts → Categories → Color);
   see thefauxy_category_color_css(). */
:root {
	--tf-primary: #FF0101;
	--tf-primary-dark: #B91C1C;
	--tf-primary-100: #FEE2E2;
	--tf-primary-200: #FECACA;
	--tf-primary-rgb: 255, 1, 1;
	--tf-ink: #111827;
	--tf-gray-50: #F9FAFB;
	--tf-gray-200: #E5E7EB;
	--tf-gray-300: #D1D5DB;
	--tf-gray-400: #9CA3AF;
	--tf-gray-500: #6B7280;
	--tf-gray-600: #4B5563;
	--tf-gray-700: #374151;
	--tf-gray-800: #1F2937;
	--tf-font: 'Inter', 'Mukta', system-ui, -apple-system, 'Segoe UI', sans-serif;
	--tf-container: 1280px;
	--tf-gutter: 16px;
	--tf-ease: .2s ease;
}

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

*,
*::before,
*::after {
	box-sizing: border-box;
}

body {
	margin: 0;
	background: #FFFFFF;
	color: var(--tf-ink);
	font-family: var(--tf-font);
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
}

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

a {
	color: var(--tf-ink);
	text-decoration: none;
}

a:hover {
	color: var(--tf-primary);
}

.icon {
	display: block;
	flex: none;
}

.container {
	max-width: var(--tf-container);
	margin: 0 auto;
	padding-left: var(--tf-gutter);
	padding-right: var(--tf-gutter);
}

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.skip-link:focus {
	clip: auto;
	width: auto;
	height: auto;
	margin: 0;
	top: 8px;
	left: 8px;
	z-index: 100000;
	padding: 8px 16px;
	background: var(--tf-ink);
	color: #FFFFFF;
	font-size: 14px;
	font-weight: 600;
	border-radius: 4px;
}

/* ---------- Buttons and links ---------- */

.btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	height: 36px;
	padding: 0 16px;
	border: 0;
	border-radius: 6px;
	background: var(--tf-primary);
	color: #FFFFFF;
	font: inherit;
	font-size: 14px;
	font-weight: 500;
	cursor: pointer;
	transition: background-color var(--tf-ease), transform var(--tf-ease), box-shadow var(--tf-ease);
}

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

.btn:hover {
	background: var(--tf-primary-dark);
	color: #FFFFFF;
	transform: translateY(-2px);
	box-shadow: 0 6px 16px rgba(var(--tf-primary-rgb), .28);
}

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

.btn:active {
	transform: translateY(0);
	box-shadow: none;
}

.ibtn,
.ibtn-d {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	padding: 0;
	border: 0;
	border-radius: 999px;
	background: transparent;
	cursor: pointer;
	transition: background-color var(--tf-ease), color var(--tf-ease), transform var(--tf-ease);
}

.ibtn {
	color: var(--tf-gray-600);
}

.ibtn:hover,
.ibtn[aria-expanded="true"] {
	background: var(--tf-primary-100);
	color: var(--tf-primary);
}

.ibtn:hover {
	transform: translateY(-2px);
}

.ibtn-d {
	color: var(--tf-gray-400);
}

.ibtn-d:hover {
	background: var(--tf-primary);
	color: #FFFFFF;
	transform: translateY(-2px);
}

.nlink {
	position: relative;
	display: inline-block;
	padding: 4px 0;
	transition: color var(--tf-ease);
}

.nlink::after {
	content: '';
	position: absolute;
	left: 0;
	right: 0;
	bottom: -2px;
	height: 2px;
	background: var(--tf-primary);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform var(--tf-ease);
}

/* The current section: its category, a story's category (menu parent), or
   the store's Shop link on every store page (current_page_parent). */
.nlink:hover,
.current-menu-item > .nlink,
.current-menu-parent > .nlink,
.current_page_parent > .nlink,
.current-menu-ancestor > .nlink {
	color: var(--tf-primary);
}

.nlink:hover::after,
.current-menu-item > .nlink::after,
.current-menu-parent > .nlink::after,
.current_page_parent > .nlink::after,
.current-menu-ancestor > .nlink::after {
	transform: scaleX(1);
}

/* The menu's Shop link is a button (menu-item-shop, inc/woocommerce.php),
   a shade darker while you're in the store. */
.primary-nav__list .menu-item-shop > .nlink {
	display: inline-flex;
	align-items: center;
	height: 36px;
	padding: 0 16px;
	border-radius: 6px;
	background: var(--tf-primary);
	color: #FFFFFF;
	transition: background-color var(--tf-ease), transform var(--tf-ease), box-shadow var(--tf-ease);
}

.primary-nav__list .menu-item-shop > .nlink::after {
	display: none;
}

.primary-nav__list .menu-item-shop > .nlink:hover,
.primary-nav__list :is(.current-menu-item, .current_page_parent).menu-item-shop > .nlink {
	background: var(--tf-primary-dark);
	color: #FFFFFF;
}

.primary-nav__list .menu-item-shop > .nlink:hover {
	transform: translateY(-2px);
	box-shadow: 0 6px 16px rgba(var(--tf-primary-rgb), .28);
}

.flink {
	color: var(--tf-gray-400);
	transition: color var(--tf-ease), padding-left var(--tf-ease);
}

.flink:hover {
	color: #FFFFFF;
	padding-left: 4px;
}

.btn:focus-visible,
.ibtn:focus-visible,
.ibtn-d:focus-visible,
.nlink:focus-visible,
.flink:focus-visible,
.promo:focus-visible,
.brand:focus-visible,
.footer-brand__mark:focus-visible,
.lead__cat:focus-visible,
.article__cat:focus-visible,
.search-result__cat:focus-visible,
.article__tags a:focus-visible {
	outline: 2px solid var(--tf-primary);
	outline-offset: 3px;
}

/* ---------- Header: masthead ---------- */

.site-header {
	background: #FFFFFF;
	border-bottom: 1px solid var(--tf-gray-200);
}

.masthead {
	background: var(--tf-gray-50);
	padding: 16px 0;
}

.masthead__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 16px;
	align-items: center;
}

/* Promos sit on the masthead's bottom edge, whatever the logo's height. */
.masthead__side {
	display: flex;
	align-self: end;
}

.masthead__side--left {
	justify-content: flex-start;
}

.masthead__side--right {
	justify-content: flex-end;
}

.promo {
	display: flex;
	align-items: flex-end;
	margin-bottom: -16px;
	color: var(--tf-ink);
}

.promo--right {
	text-align: right;
}

/* Image and text: a white tab that rises from the nav bar into the masthead,
   behind the text and the figure's lower half; the figure's head pops out
   above it. The tab is as tall as the text needs. */
.promo:not(.promo--image) {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr);
	grid-template-rows: 1fr auto;
	column-gap: 14px;
	align-items: end;
	padding: 0 18px 0 10px;
}

.promo--right:not(.promo--image) {
	grid-template-columns: minmax(0, 1fr) auto;
	padding: 0 10px 0 18px;
}

.promo:not(.promo--image)::before {
	content: "";
	grid-row: 2;
	grid-column: 1 / -1;
	align-self: stretch;
	margin: -14px -18px 0 -10px;
	border: 1px solid var(--tf-gray-200);
	border-bottom: 0;
	border-radius: 14px 14px 0 0;
	background: #FFFFFF;
}

.promo--right:not(.promo--image)::before {
	margin: -14px -10px 0 -18px;
}

.promo__media {
	display: flex;
	grid-row: 1 / -1;
	grid-column: 1;
	align-items: flex-end;
	justify-content: center;
}

.promo--right .promo__media {
	grid-column: 2;
}

.promo__fig,
.promo__img {
	display: block;
	transition: transform var(--tf-ease);
}

/* A cut-out (transparent background) shows whole, at its own shape. */
.promo__fig {
	width: auto;
	height: auto;
	max-width: 140px;
	max-height: 112px;
	filter: drop-shadow(0 2px 3px rgba(17, 24, 39, .18));
}

svg.promo__fig {
	width: 92px;
	height: 112px;
}

/* Image-only promo: the image keeps its own shape, capped to the masthead height. */
.promo__img {
	width: auto;
	height: auto;
	max-width: 100%;
	max-height: 112px;
	border-radius: 8px 8px 0 0;
}

.promo--image {
	min-width: 0;
}

.promo__text {
	display: flex;
	grid-row: 2;
	grid-column: 2;
	flex-direction: column;
	gap: 2px;
	padding-bottom: 14px;
}

.promo--right .promo__text {
	grid-column: 1;
	align-items: flex-end;
}

.promo__eyebrow {
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--tf-primary);
}

.promo__headline,
.promo__highlight {
	font-size: 18px;
	font-weight: 800;
	line-height: 1.15;
}

.promo__headline {
	color: var(--tf-ink);
	transition: color var(--tf-ease);
}

.promo__highlight {
	color: var(--tf-primary);
}

a.promo:hover .promo__headline {
	color: var(--tf-primary);
}

a.promo:hover .promo__fig,
a.promo:hover .promo__img {
	transform: translateY(-3px);
}

.brand {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 4px;
	text-align: center;
}

.brand__row {
	display: flex;
	align-items: center;
	gap: 8px;
}

/* Logo image (Customize → Site Identity): sized by height, width follows. */
.brand__logo {
	display: block;
	width: auto;
	max-width: 100%;
	height: 76px;
}

.brand__name {
	font-size: 32px;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: -.02em;
	text-transform: lowercase;
	color: var(--tf-ink);
}

.brand__name sup {
	font-size: 11px;
	margin-left: 2px;
}

.brand__tagline {
	font-size: 14px;
	font-style: italic;
	color: var(--tf-gray-600);
}

/* ---------- Header: date, nav, actions ---------- */

.header-bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding-top: 16px;
	padding-bottom: 16px;
}

.header-bar__date {
	font-size: 14px;
	font-weight: 500;
}

.primary-nav__list {
	display: flex;
	align-items: center;
	gap: 32px;
	margin: 0;
	padding: 0;
	list-style: none;
	font-size: 16px;
	font-weight: 500;
}

.header-bar__actions {
	display: flex;
	align-items: center;
	gap: 16px;
	color: var(--tf-gray-600);
}

.header-social {
	display: flex;
	align-items: center;
	gap: 4px;
}

.menu-toggle {
	display: none;
}

.menu-toggle .icon-close,
.menu-toggle[aria-expanded="true"] .icon-menu {
	display: none;
}

.menu-toggle[aria-expanded="true"] .icon-close {
	display: block;
}

/* Search toggle shows a close icon while the panel is open. */
.search-toggle .icon-close,
.search-toggle[aria-expanded="true"] .icon-search {
	display: none;
}

.search-toggle[aria-expanded="true"] .icon-close {
	display: block;
}

/* ---------- Search panel ---------- */

@keyframes thefauxy-search-in {
	from {
		opacity: 0;
		transform: translateY(-6px);
	}

	to {
		opacity: 1;
		transform: none;
	}
}

.header-search {
	padding: 32px 0 36px;
	border-top: 1px solid var(--tf-gray-200);
	background: #FFFFFF;
	animation: thefauxy-search-in .18s ease;
}

.header-search[hidden] {
	display: none;
}

.header-search__inner {
	display: flex;
	flex-direction: column;
	gap: 20px;
	max-width: 880px;
}

/* One large field on an underline that takes the page's colour on focus. */
.search-form {
	display: flex;
	align-items: center;
	gap: 14px;
	padding-bottom: 10px;
	border-bottom: 2px solid var(--tf-ink);
	transition: border-color var(--tf-ease);
}

.search-form:focus-within {
	border-bottom-color: var(--tf-primary);
}

.search-form__icon {
	flex: none;
	color: var(--tf-gray-500);
}

.search-form__input {
	flex: 1;
	min-width: 0;
	height: 48px;
	padding: 0;
	border: 0;
	background: transparent;
	color: var(--tf-ink);
	font: inherit;
	font-size: 26px;
	font-weight: 600;
	letter-spacing: -.01em;
	outline: none;
	-webkit-appearance: none;
	appearance: none;
}

.search-form__input::placeholder {
	color: var(--tf-gray-400);
	font-weight: 500;
}

.search-form__input::-webkit-search-cancel-button {
	-webkit-appearance: none;
}

.search-form__submit {
	flex: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 0;
	border-radius: 999px;
	background: var(--tf-primary);
	color: #FFFFFF;
	cursor: pointer;
	transition: background-color var(--tf-ease);
}

.search-form__submit:hover {
	background: var(--tf-primary-dark);
}

.search-form__submit .icon {
	transition: transform var(--tf-ease);
}

.search-form__submit:hover .icon {
	transform: translateX(2px);
}

.search-form__submit:focus-visible {
	outline: 2px solid var(--tf-primary);
	outline-offset: 3px;
}

/* Section shortcuts under the field. */
.search-sections {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
}

.search-sections__label {
	color: var(--tf-gray-500);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: .08em;
	text-transform: uppercase;
}

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

.search-sections__link {
	display: inline-block;
	padding: 6px 14px;
	border: 1px solid var(--tf-gray-200);
	border-radius: 999px;
	color: var(--tf-gray-700);
	font-size: 14px;
	font-weight: 500;
	transition: border-color var(--tf-ease), color var(--tf-ease);
}

.search-sections__link:hover {
	border-color: var(--tf-primary);
	color: var(--tf-primary);
}

.search-sections__link:focus-visible {
	outline: 2px solid var(--tf-primary);
	outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
	.header-search {
		animation: none;
	}

	.search-form,
	.search-form__submit,
	.search-form__submit .icon,
	.search-sections__link {
		transition: none;
	}
}

/* ---------- Search suggestions (search.js) ---------- */

.search-form.has-suggest {
	position: relative;
}

.search-suggest {
	position: absolute;
	top: calc(100% + 10px);
	left: 0;
	right: 0;
	z-index: 30;
	max-height: min(440px, 60vh);
	overflow-y: auto;
	margin: 0;
	padding: 6px;
	border: 1px solid var(--tf-gray-200);
	border-radius: 8px;
	background: #FFFFFF;
	box-shadow: 0 16px 32px -8px rgba(17, 24, 39, .18);
	list-style: none;
}

.search-suggest[hidden] {
	display: none;
}

.search-suggest__link {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 8px;
	border-radius: 6px;
	color: var(--tf-ink);
}

.search-suggest__link:hover,
.search-suggest__item.is-active .search-suggest__link {
	background: var(--tf-gray-50);
	color: var(--tf-ink);
}

.search-suggest__thumb {
	flex: none;
	width: 64px;
	height: 48px;
	border-radius: 4px;
	object-fit: cover;
}

.search-suggest__body {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}

.search-suggest__cat {
	color: var(--tf-primary);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
}

.search-suggest__title {
	display: -webkit-box;
	overflow: hidden;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.35;
}

.search-suggest mark {
	background: none;
	color: var(--tf-primary);
}

.search-suggest__item:has(.search-suggest__all) {
	margin-top: 4px;
	padding-top: 4px;
	border-top: 1px solid var(--tf-gray-200);
}

.search-suggest__all {
	display: block;
	padding: 10px 8px;
	border-radius: 6px;
	color: var(--tf-primary);
	font-size: 14px;
	font-weight: 600;
}

.search-suggest__all:hover,
.search-suggest__item.is-active .search-suggest__all {
	background: var(--tf-gray-50);
	color: var(--tf-primary-dark);
}

.search-suggest__empty {
	padding: 12px 8px;
	color: var(--tf-gray-500);
	font-size: 14px;
}

@media (max-width: 767px) {
	.search-suggest__thumb {
		width: 56px;
		height: 42px;
	}

	.search-suggest__title {
		font-size: 14px;
	}
}

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

.site-footer {
	background: var(--tf-ink);
	color: #FFFFFF;
}

.site-footer__inner {
	padding-top: 40px;
	padding-bottom: 24px;
}

.footer-grid {
	display: grid;
	grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr);
	gap: 48px;
}

.footer-brand {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.footer-brand__mark {
	display: flex;
	align-items: center;
	align-self: flex-start;
	gap: 8px;
	color: #FFFFFF;
}

.footer-brand__mark:hover {
	color: #FFFFFF;
}

.footer-brand__logo {
	display: block;
	width: auto;
	max-width: 100%;
	height: 56px;
}

.footer-brand__name {
	font-size: 24px;
	font-weight: 700;
	line-height: 1.2;
	text-transform: lowercase;
}

.footer-brand__about {
	margin: 0;
	font-size: 14px;
	line-height: 1.625;
	color: var(--tf-gray-400);
}

.footer-social {
	display: flex;
	gap: 8px;
	margin-left: -8px;
}

.footer-col__title {
	margin: 0 0 16px;
	font-size: 18px;
	font-weight: 700;
	line-height: 1.4;
}

.footer-col__subtitle {
	margin: 24px 0 8px;
	font-size: 16px;
	font-weight: 600;
	line-height: 1.5;
}

.footer-col > nav:first-child .footer-col__subtitle {
	margin-top: 0;
}

.footer-links,
.footer-contact {
	display: flex;
	flex-direction: column;
	margin: 0;
	padding: 0;
	list-style: none;
	font-size: 14px;
}

.footer-links {
	gap: 8px;
}

.footer-links--tight {
	gap: 4px;
}

.footer-contact {
	gap: 12px;
	color: var(--tf-gray-400);
}

.footer-contact li {
	display: flex;
	align-items: center;
	gap: 8px;
}

/* Long email addresses wrap inside the column instead of widening the page. */
.footer-contact a {
	min-width: 0;
	overflow-wrap: anywhere;
}

.footer-contact .footer-contact__address {
	align-items: flex-start;
}

.footer-contact__address .icon {
	margin-top: 2px;
}

.footer-bottom {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin-top: 32px;
	padding-top: 20px;
	border-top: 1px solid var(--tf-gray-800);
	font-size: 14px;
	color: var(--tf-gray-400);
}

.footer-bottom p {
	margin: 0;
}

.footer-bottom__note {
	margin-left: 8px;
}

.footer-bottom__credit {
	text-decoration: underline;
}

/* ---------- Responsive ---------- */

/* Small laptops and tablets: the nav moves onto its own row, so it never
   crowds the date and icons (they share one row only from 1200px; below
   that the date wrapped onto two lines). */
@media (max-width: 1199px) {
	.header-bar {
		flex-wrap: wrap;
	}

	.primary-nav {
		order: 3;
		width: 100%;
		padding-top: 12px;
		border-top: 1px solid var(--tf-gray-200);
	}

	.primary-nav__list {
		justify-content: center;
		flex-wrap: wrap;
		gap: 4px 20px;
	}

	.promo__headline,
	.promo__highlight {
		font-size: 16px;
	}
}

/* Tablet: the logo column takes the tagline's width, so the tagline stays on
   one line, and the promos share what is left. */
@media (max-width: 1023px) {
	.masthead__grid {
		grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
	}

	.brand__tagline {
		white-space: nowrap;
	}

	.promo:not(.promo--image) {
		column-gap: 10px;
	}

	.promo__fig {
		max-width: 120px;
		max-height: 88px;
	}

	svg.promo__fig {
		width: 72px;
		height: 88px;
	}

	.promo__img {
		max-height: 88px;
	}

	.promo__headline,
	.promo__highlight {
		font-size: 14px;
	}

	.brand__name {
		font-size: 28px;
	}

	.brand__logo {
		height: 64px;
	}

	/* Footer: the about text across the top, then Sections and Contact side
	   by side (three columns left Contact too narrow for the email). */
	.footer-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 32px 48px;
	}

	.footer-brand {
		grid-column: 1 / -1;
	}

	.footer-brand__about {
		max-width: 640px;
	}
}

/* Phone: promos and social icons hide, and the nav opens from the menu button. */
@media (max-width: 767px) {
	.masthead__grid,
	.footer-grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.footer-grid {
		gap: 32px;
	}

	.brand__logo {
		height: 56px;
	}

	.brand__tagline {
		white-space: normal;
	}

	.header-search {
		padding: 20px 0 24px;
	}

	.search-form__input {
		height: 40px;
		font-size: 20px;
	}

	.hide-sm {
		display: none !important;
	}

	.menu-toggle {
		display: inline-flex;
	}

	.header-bar__actions {
		gap: 8px;
	}

	.primary-nav {
		display: none;
		padding-top: 0;
	}

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

	.primary-nav__list {
		flex-direction: column;
		align-items: stretch;
		gap: 0;
	}

	.primary-nav__list li + li {
		border-top: 1px solid var(--tf-gray-200);
	}

	.primary-nav__list .nlink {
		display: block;
		padding: 12px 0;
	}

	.primary-nav__list .nlink::after {
		display: none;
	}

	/* Shop: a full-width button closing the menu. */
	.primary-nav__list li.menu-item-shop {
		padding: 12px 0;
	}

	.primary-nav__list .menu-item-shop > .nlink {
		display: flex;
		justify-content: center;
		height: 44px;
		padding: 0 16px;
	}

	/* Footer text links: taller, so each is easy to tap. */
	:is(.footer-links, .footer-contact) .flink {
		display: inline-block;
		padding-block: 4px;
	}

	/* Category labels: a taller tap area that doesn't move anything. */
	:is(.lead__cat, .article__cat, .search-result__cat) {
		padding-block: 4px;
		margin-block: -4px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.btn,
	.btn svg,
	.ibtn,
	.ibtn-d,
	.nlink::after,
	.primary-nav__list .menu-item-shop > .nlink,
	.flink,
	.promo__fig,
	.promo__img,
	.promo__headline {
		transition: none;
	}

	.btn:hover,
	.ibtn:hover,
	.ibtn-d:hover,
	.primary-nav__list .menu-item-shop > .nlink:hover,
	a.promo:hover .promo__fig,
	a.promo:hover .promo__img {
		transform: none;
	}
}

/* ==========================================================================
 * Homepage
 * ======================================================================== */

/* ---------- Shared pieces ---------- */

.ph {
	display: block;
	background-color: var(--tf-gray-200);
	background-image: repeating-linear-gradient(135deg, rgba(17, 24, 39, .05) 0 2px, transparent 2px 12px);
}

.post-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	font-size: 14px;
	color: var(--tf-gray-500);
}

.post-meta--lead {
	gap: 16px;
}

.post-meta--small {
	gap: 8px;
	margin-top: 8px;
	font-size: 12px;
}

.btn--lg {
	height: auto;
	padding: 12px 24px;
	border-radius: 4px;
	font-size: 16px;
}

.section-tab {
	margin-bottom: 32px;
}

.section-tab__title {
	display: inline-block;
	margin: 0;
	padding: 8px 16px;
	border-radius: 4px 4px 0 0;
	background: var(--tf-primary);
	color: #FFFFFF;
	font-size: 20px;
	font-weight: 700;
	line-height: 1.25;
}

/* ---------- Top stories ---------- */

.home-top {
	display: grid;
	grid-template-columns: minmax(0, 3fr) minmax(0, 1fr);
	gap: 32px;
	padding-top: 32px;
	padding-bottom: 32px;
}

.home-top__stories {
	display: flex;
	flex-direction: column;
	gap: 32px;
	min-width: 0;
}

.lead {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 32px;
	align-items: center;
}

.lead__body {
	display: flex;
	flex-direction: column;
	gap: 24px;
}

.lead__cat {
	align-self: flex-start;
	color: var(--tf-primary);
	font-size: 14px;
	font-weight: 500;
}

.lead__cat:hover {
	color: var(--tf-primary-dark);
}

.lead__title {
	margin: 0;
	font-size: 48px;
	line-height: 1.25;
	font-weight: 700;
}

.lead__excerpt {
	margin: 0;
	font-size: 18px;
	line-height: 1.625;
	color: var(--tf-gray-700);
}

.lead__btn {
	align-self: flex-start;
}

.lead__media {
	display: block;
}

.lead__img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 3 / 2;
	object-fit: cover;
	border-radius: 8px;
}

.secondary-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 24px;
}

.secondary {
	padding-left: 16px;
	border-left: 4px solid var(--tf-gray-200);
}

.secondary__title {
	margin: 0;
	font-size: 20px;
	line-height: 1.25;
	font-weight: 600;
}

.secondary__excerpt {
	margin: 8px 0 0;
	font-size: 14px;
	line-height: 1.625;
	color: var(--tf-gray-600);
}

/* ---------- Trending sidebar ---------- */

.trending {
	min-width: 0;
}

.trending__head,
.insta-feed__head {
	padding: 8px 16px;
	border-radius: 4px 4px 0 0;
	background: var(--tf-primary);
	color: #FFFFFF;
}

.trending__title,
.insta-feed__title {
	margin: 0;
	font-size: 18px;
	font-weight: 700;
	line-height: 1.25;
}

.trending__list {
	margin: 0;
	padding: 0;
	list-style: none;
	border: 1px solid var(--tf-gray-200);
	border-top: 0;
	border-radius: 0 0 4px 4px;
}

.trending__item {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 16px;
}

.trending__item + .trending__item {
	border-top: 1px solid var(--tf-gray-200);
}

.trending__thumb {
	flex: none;
}

.trending__img {
	display: block;
	width: 80px;
	height: 60px;
	object-fit: cover;
	border-radius: 4px;
}

.trending__body {
	flex: 1;
	min-width: 0;
}

.trending__cat {
	display: block;
	margin-bottom: 4px;
	color: var(--tf-primary);
	font-size: 12px;
	font-weight: 500;
	letter-spacing: .025em;
	text-transform: uppercase;
}

.trending__date {
	display: block;
	margin-bottom: 4px;
	color: var(--tf-gray-500);
	font-size: 12px;
	font-weight: 500;
}

.trending__link {
	display: -webkit-box;
	overflow: hidden;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.25;
}

/* ---------- Category sections ---------- */

.home-section {
	padding: 56px 0 64px;
	border-top: 1px solid var(--tf-gray-200);
	background: #FFFFFF;
}

.home-section--alt {
	border-top-color: #E5E5E5;
	background: #F3F3F3;
}

.card-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 32px;
}

.post-card {
	overflow: hidden;
	border-radius: 8px;
	background: #FFFFFF;
	box-shadow: 0 1px 3px rgba(0, 0, 0, .1), 0 1px 2px -1px rgba(0, 0, 0, .1);
}

.post-card__media {
	display: block;
}

.post-card__img {
	display: block;
	width: 100%;
	height: 192px;
	object-fit: cover;
}

.post-card__body {
	padding: 24px;
}

.post-card__title {
	margin: 0 0 12px;
	font-size: 20px;
	line-height: 1.25;
	font-weight: 700;
}

.post-card__excerpt {
	margin: 0 0 16px;
	font-size: 16px;
	line-height: 1.625;
	color: var(--tf-gray-600);
}

.home-section__more {
	margin-top: 32px;
	text-align: center;
}

/* ---------- Brands strip ---------- */

@keyframes thefauxy-brand-scroll {
	from {
		transform: translateX(0);
	}

	to {
		transform: translateX(-50%);
	}
}

/* White, as the partners' logos are drawn for a white background. */
.brands {
	padding: 48px 0;
	border-top: 1px solid var(--tf-gray-200);
	border-bottom: 1px solid var(--tf-gray-200);
	background: #FFFFFF;
}

.brands__title {
	margin: 0 0 32px;
	text-align: center;
	font-size: 24px;
	font-weight: 700;
}

.brands__viewport {
	overflow: hidden;
}

.brands__track {
	display: flex;
	width: max-content;
	margin: 0;
	padding: 0;
	list-style: none;
	animation: thefauxy-brand-scroll 40s linear infinite;
}

.brands__track:hover,
.brands__track:focus-within {
	animation-play-state: paused;
}

.brands__item {
	flex: none;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 200px;
	height: 120px;
	margin: 0 32px;
	color: var(--tf-gray-500);
	font-size: 20px;
	font-weight: 700;
	text-align: center;
}

.brands__item a {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	color: inherit;
	transition: color var(--tf-ease), opacity var(--tf-ease);
}

.brands__item a:hover {
	color: var(--tf-primary);
	opacity: .8;
}

.brands__item a:focus-visible {
	outline: 2px solid var(--tf-primary);
	outline-offset: 3px;
}

/* One optical size for every partner: wide wordmarks up to the full 200px
   slot, square marks up to 100px tall, so neither kind dominates the strip. */
.brands__logo {
	max-width: 100%;
	max-height: 100px;
	width: auto;
	height: auto;
	object-fit: contain;
}

/* ---------- Social stats ---------- */

.stats {
	padding: 64px 0;
	background: var(--tf-primary);
	color: #FFFFFF;
}

.stats__inner {
	max-width: 896px;
	margin: 0 auto;
	padding: 0 var(--tf-gutter);
	text-align: center;
}

.stats__title {
	margin: 0 0 16px;
	font-size: 36px;
	font-weight: 700;
	line-height: 1.25;
}

.stats__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 32px;
	margin: 48px 0 0;
	padding: 0;
	list-style: none;
}

.stats__value {
	display: block;
	margin-bottom: 8px;
	font-size: 30px;
	font-weight: 700;
	line-height: 1.2;
}

.stats__label {
	display: block;
	color: var(--tf-primary-200);
}

/* ---------- Homepage responsive ---------- */

@media (max-width: 1023px) {
	.home-top,
	.lead {
		grid-template-columns: minmax(0, 1fr);
	}
}

@media (max-width: 767px) {
	.secondary-grid,
	.card-grid,
	.stats__grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.lead__title {
		font-size: 36px;
	}

	.stats__title {
		font-size: 30px;
	}
}

/* Without motion the brands strip becomes a scrollable row instead. */
@media (prefers-reduced-motion: reduce) {
	.brands__track {
		animation: none;
	}

	.brands__viewport {
		overflow-x: auto;
	}
}

/* ==========================================================================
 * Category pages (category.php)
 * Values follow reference design/News - Desktop-html/News.dc.html.
 * ======================================================================== */

/* ---------- Newswire strip ---------- */

@keyframes thefauxy-newswire {
	from {
		transform: translateX(0);
	}

	to {
		transform: translateX(-50%);
	}
}

.newswire {
	padding: 8px 0;
	background: var(--tf-primary);
	color: #FFFFFF;
}

.newswire__inner {
	display: flex;
	align-items: center;
}

.newswire__label {
	flex: none;
	margin-right: 16px;
	padding: 4px 12px;
	border-radius: 4px;
	background: #FFFFFF;
	color: var(--tf-primary);
	font-size: 14px;
	font-weight: 700;
}

.newswire__viewport {
	flex: 1;
	min-width: 0;
	overflow: hidden;
}

.newswire__track {
	display: flex;
	width: max-content;
	margin: 0;
	padding: 0;
	list-style: none;
	animation: thefauxy-newswire 60s linear infinite;
}

.newswire__track:hover,
.newswire__track:focus-within {
	animation-play-state: paused;
}

.newswire__item {
	flex: none;
	margin-right: 32px;
	font-size: 14px;
	white-space: nowrap;
}

.newswire__item a {
	color: #FFFFFF;
}

.newswire__item a:hover {
	color: #FFFFFF;
	text-decoration: underline;
}

.newswire__item a:focus-visible {
	outline: 2px solid #FFFFFF;
	outline-offset: 2px;
}

/* ---------- Layout ---------- */

.category-layout {
	display: grid;
	grid-template-columns: minmax(0, 3fr) minmax(0, 1fr);
	gap: 32px;
	align-items: start;
	padding-top: 40px;
	padding-bottom: 40px;
}

.category-main {
	display: flex;
	flex-direction: column;
	gap: 40px;
	min-width: 0;
}

.category-header__title {
	display: inline-block;
	margin: 0;
	padding: 12px 20px;
	border-radius: 4px 4px 0 0;
	background: var(--tf-primary);
	color: #FFFFFF;
	font-size: 30px;
	font-weight: 700;
	line-height: 1.25;
}

.category-header--plain .category-header__title {
	border-radius: 4px;
}

.category-header__desc {
	padding: 12px 20px;
	border-left: 4px solid var(--tf-primary);
	border-radius: 0 0 4px 4px;
	background: #F3F4F6;
	color: var(--tf-gray-700);
}

.category-header__desc p {
	margin: 0;
}

.category-empty {
	margin: 0;
	color: var(--tf-gray-600);
}

/* ---------- Featured story ---------- */

.feature-card,
.post-card--archive {
	transition: box-shadow var(--tf-ease), transform var(--tf-ease);
}

.feature-card:hover,
.post-card--archive:hover {
	box-shadow: 0 10px 15px -3px rgba(0, 0, 0, .1), 0 4px 6px -4px rgba(0, 0, 0, .1);
	transform: translateY(-2px);
}

.feature-card {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 32px;
	align-items: stretch;
	overflow: hidden;
	border: 1px solid var(--tf-gray-200);
	border-radius: 8px;
	background: #FFFFFF;
}

.feature-card__body {
	display: flex;
	flex-direction: column;
	gap: 16px;
	padding: 32px;
}

.feature-card__label {
	color: var(--tf-primary);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: .025em;
	text-transform: uppercase;
}

.feature-card__title {
	margin: 0;
	font-size: 36px;
	line-height: 1.25;
	font-weight: 700;
}

.feature-card__excerpt {
	margin: 0;
	font-size: 18px;
	line-height: 1.625;
	color: var(--tf-gray-600);
}

.post-meta--feature {
	gap: 12px;
}

.more-link {
	display: inline-flex;
	align-items: center;
	align-self: flex-start;
	gap: 4px;
	min-height: 44px;
	color: var(--tf-primary);
	font-weight: 600;
	transition: color var(--tf-ease);
}

.more-link:hover {
	color: var(--tf-primary-dark);
}

.more-link__arrow {
	display: inline-block;
	transition: transform var(--tf-ease);
}

.more-link:hover .more-link__arrow {
	transform: translateX(4px);
}

.more-link:focus-visible {
	outline: 2px solid var(--tf-primary);
	outline-offset: 3px;
}

.feature-card__media {
	display: block;
	min-height: 260px;
}

.feature-card__img {
	display: block;
	width: 100%;
	height: 100%;
	min-height: 260px;
	object-fit: cover;
}

/* ---------- Latest stories ---------- */

.category-latest {
	display: flex;
	flex-direction: column;
	gap: 32px;
}

.category-latest__title {
	margin: 0;
	font-size: 24px;
	font-weight: 700;
	line-height: 1.25;
}

.card-grid--2 {
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 24px;
}

.post-card--archive {
	border: 1px solid var(--tf-gray-200);
	box-shadow: none;
}

.post-card--archive .post-card__body {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.post-card--archive .post-card__title {
	margin: 0;
	font-weight: 600;
}

.post-card--archive .post-card__excerpt {
	margin: 0;
	font-size: 14px;
}

.post-card--archive .post-meta {
	font-size: 12px;
}

/* ---------- Paging ---------- */

.pagination .nav-links {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
}

.pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 40px;
	height: 40px;
	padding: 0 12px;
	border: 1px solid var(--tf-gray-200);
	border-radius: 4px;
	font-size: 14px;
	font-weight: 500;
	transition: border-color var(--tf-ease), color var(--tf-ease);
}

.pagination a.page-numbers:hover {
	border-color: var(--tf-primary);
	color: var(--tf-primary);
}

.pagination .page-numbers.current {
	border-color: var(--tf-primary);
	background: var(--tf-primary);
	color: #FFFFFF;
}

.pagination .page-numbers.dots {
	border-color: transparent;
}

.pagination a.page-numbers:focus-visible {
	outline: 2px solid var(--tf-primary);
	outline-offset: 2px;
}

/* ---------- Sticky sidebar ---------- */

.trending--sticky {
	position: sticky;
	top: calc(24px + var(--wp-admin--admin-bar--height, 0px));
	z-index: 2;
	align-self: start;
	background: #FFFFFF;
}

/* ---------- Category responsive ---------- */

@media (max-width: 1023px) {
	.category-layout,
	.feature-card {
		grid-template-columns: minmax(0, 1fr);
	}

	/* Stacked featured story: the picture on top, as on the other cards. */
	.feature-card {
		gap: 0;
	}

	.feature-card__media {
		order: -1;
		min-height: 0;
	}

	.feature-card__img {
		height: auto;
		min-height: 0;
		aspect-ratio: 16 / 9;
	}

	.trending--sticky {
		position: static;
	}
}

@media (max-width: 767px) {
	.card-grid--2 {
		grid-template-columns: minmax(0, 1fr);
	}

	.feature-card__body {
		padding: 24px;
	}

	.feature-card__title {
		font-size: 28px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.newswire__track {
		animation: none;
	}

	.newswire__viewport {
		overflow-x: auto;
	}

	.feature-card,
	.post-card--archive,
	.more-link__arrow {
		transition: none;
	}

	.feature-card:hover,
	.post-card--archive:hover,
	.more-link:hover .more-link__arrow {
		transform: none;
	}
}

/* ==========================================================================
 * Single story (single.php)
 * ======================================================================== */

.single-layout {
	display: grid;
	grid-template-columns: minmax(0, 3fr) minmax(0, 1fr);
	gap: 48px;
	align-items: start;
	padding-top: 40px;
	padding-bottom: 56px;
}

.single-main {
	display: flex;
	flex-direction: column;
	gap: 56px;
	min-width: 0;
}

.article__header {
	display: flex;
	flex-direction: column;
	gap: 16px;
	max-width: 780px;
	margin-bottom: 28px;
}

.article__cat {
	align-self: flex-start;
	color: var(--tf-primary);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
}

.article__cat:hover {
	color: var(--tf-primary-dark);
}

.article__title {
	margin: 0;
	font-size: 44px;
	font-weight: 800;
	line-height: 1.12;
	letter-spacing: -.02em;
	text-wrap: balance;
}

.article__dek {
	margin: 0;
	color: var(--tf-gray-600);
	font-size: 20px;
	line-height: 1.55;
	text-wrap: pretty;
}

/* Byline on the left, share links on the right; they stack when narrow. */
.article__bar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px 24px;
	padding-top: 16px;
	border-top: 1px solid var(--tf-gray-200);
}

.article__meta {
	font-size: 14px;
}

.article__media {
	margin: 0 0 32px;
}

.article__img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 8px;
}

.article__caption {
	margin-top: 8px;
	color: var(--tf-gray-500);
	font-size: 13px;
}

/* Reading column. */
.article__content {
	max-width: 720px;
	color: #1F2937;
	font-size: 19px;
	line-height: 1.75;
}

.article__content > * {
	margin-top: 0;
	margin-bottom: 0;
}

.article__content > * + * {
	margin-top: 1.25em;
}

.article__content :is(h2, h3, h4) {
	margin-top: 1.8em;
	color: var(--tf-ink);
	line-height: 1.25;
}

.article__content h2 {
	font-size: 28px;
}

.article__content h3 {
	font-size: 22px;
}

.article__content a {
	color: var(--tf-primary-dark);
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: .15em;
}

.article__content a:hover {
	color: var(--tf-primary);
}

.article__content blockquote {
	margin-left: 0;
	margin-right: 0;
	padding: 4px 0 4px 20px;
	border-left: 4px solid var(--tf-primary);
	color: var(--tf-ink);
	font-size: 22px;
	font-weight: 600;
	line-height: 1.5;
}

.article__content :is(ul, ol) {
	padding-left: 1.3em;
}

.article__content li + li {
	margin-top: .4em;
}

.article__content :is(img, video, iframe) {
	max-width: 100%;
	height: auto;
}

.article__content figure {
	margin-left: 0;
	margin-right: 0;
}

.article__content figcaption {
	margin-top: 8px;
	color: var(--tf-gray-500);
	font-size: 14px;
}

.article__pages {
	display: flex;
	gap: 8px;
	font-size: 15px;
}

.article__footer {
	display: flex;
	flex-direction: column;
	gap: 20px;
	max-width: 720px;
	margin-top: 40px;
	padding-top: 24px;
	border-top: 1px solid var(--tf-gray-200);
}

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

.article__tags a {
	display: inline-block;
	padding: 5px 12px;
	border: 1px solid var(--tf-gray-200);
	border-radius: 999px;
	color: var(--tf-gray-700);
	font-size: 14px;
	transition: border-color var(--tf-ease), color var(--tf-ease);
}

.article__tags a:hover {
	border-color: var(--tf-primary);
	color: var(--tf-primary);
}

/* Share links (template-parts/share.php). */
.share {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px;
}

.share__label {
	color: var(--tf-gray-500);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: .08em;
	text-transform: uppercase;
}

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

.share__link {
	width: 40px;
	height: 40px;
	border: 1px solid var(--tf-gray-200);
}

.share__link:hover {
	border-color: var(--tf-primary-100);
}

.share__link:focus-visible {
	outline: 2px solid var(--tf-primary);
	outline-offset: 2px;
}

.article-more {
	display: flex;
	flex-direction: column;
	gap: 28px;
	padding-top: 32px;
	border-top: 1px solid var(--tf-gray-200);
}

.article-more__title {
	margin: 0;
	font-size: 24px;
	font-weight: 700;
	line-height: 1.25;
}

/* No sidebar: the story takes the full width. */
.single-layout--wide {
	grid-template-columns: minmax(0, 1fr);
}

.single-sidebar {
	display: flex;
	flex-direction: column;
	gap: 40px;
	min-width: 0;
}

/* Instagram feed (Smash Balloon); the feed's own look is set in the plugin. */
.insta-feed {
	min-width: 0;
}

.insta-feed__body {
	padding: 12px;
	border: 1px solid var(--tf-gray-200);
	border-top: 0;
	border-radius: 0 0 4px 4px;
}

/* ---------- Comments (comments.php, inc/comments.php) ---------- */

.comments {
	display: flex;
	flex-direction: column;
	gap: 28px;
	max-width: 720px;
	padding-top: 32px;
	border-top: 1px solid var(--tf-gray-200);
}

.comments__title,
.comment-reply-title {
	margin: 0;
	font-size: 24px;
	font-weight: 700;
	line-height: 1.25;
}

.comments__closed {
	margin: 0;
	color: var(--tf-gray-500);
}

.comment-list,
.comment-list .children {
	display: flex;
	flex-direction: column;
	margin: 0;
	padding: 0;
	list-style: none;
}

.comment-list {
	gap: 28px;
}

/* Replies sit under the comment they answer, behind a rule. */
.comment-list .children {
	gap: 24px;
	margin: 24px 0 0 22px;
	padding-left: 20px;
	border-left: 2px solid var(--tf-gray-200);
}

.comment__body {
	display: grid;
	grid-template-columns: 44px minmax(0, 1fr);
	gap: 14px;
	align-items: start;
}

.comment__avatar {
	display: block;
	width: 44px;
	height: 44px;
	border-radius: 999px;
	background: var(--tf-gray-200);
}

.comment__main {
	display: flex;
	flex-direction: column;
	gap: 6px;
	min-width: 0;
}

.comment__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px 10px;
}

.comment__author {
	color: var(--tf-ink);
	font-size: 15px;
	font-weight: 700;
}

.comment__author a {
	color: inherit;
}

.comment__author a:hover {
	color: var(--tf-primary);
}

.comment__badge {
	padding: 2px 8px;
	border-radius: 999px;
	background: var(--tf-primary-100);
	color: var(--tf-primary);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .06em;
	text-transform: uppercase;
}

.comment__date {
	color: var(--tf-gray-500);
	font-size: 13px;
	transition: color var(--tf-ease);
}

.comment__date:hover {
	color: var(--tf-primary);
}

.comment__pending {
	margin: 0;
	padding: 8px 12px;
	border-left: 3px solid var(--tf-primary);
	border-radius: 0 4px 4px 0;
	background: #F3F4F6;
	color: var(--tf-gray-700);
	font-size: 14px;
}

.comment__content {
	color: #1F2937;
	font-size: 16px;
	line-height: 1.65;
	overflow-wrap: anywhere;
}

.comment__content > * {
	margin: 0;
}

.comment__content > * + * {
	margin-top: .75em;
}

.comment__content a {
	color: var(--tf-primary);
	text-decoration: underline;
	text-underline-offset: 2px;
}

.comment__actions {
	display: flex;
	gap: 16px;
	font-size: 13px;
	font-weight: 600;
}

.comment__actions a,
.comment-reply-title small a {
	color: var(--tf-gray-600);
	transition: color var(--tf-ease);
}

.comment__actions a:hover,
.comment-reply-title small a:hover {
	color: var(--tf-primary);
}

.comment__actions a:focus-visible,
.comment__date:focus-visible,
.comment-reply-title small a:focus-visible {
	outline: 2px solid var(--tf-primary);
	outline-offset: 2px;
}

/* The form; when replying, it moves under the comment, framed. */
.comment-respond {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.comment-list .comment-respond {
	margin-top: 20px;
	padding: 20px;
	border: 1px solid var(--tf-gray-200);
	border-radius: 8px;
}

.comment-list .comment-reply-title {
	font-size: 18px;
}

.comment-reply-title small {
	margin-left: 12px;
	font-size: 14px;
	font-weight: 600;
}

.comment-form {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px;
	margin: 0;
}

.comment-form > * {
	grid-column: 1 / -1;
	margin: 0;
}

.comment-form > .comment-form-author,
.comment-form > .comment-form-email {
	grid-column: auto;
}

.comment-notes,
.logged-in-as {
	color: var(--tf-gray-500);
	font-size: 14px;
}

.logged-in-as a {
	color: var(--tf-gray-700);
	text-decoration: underline;
	text-underline-offset: 2px;
}

.logged-in-as a:hover {
	color: var(--tf-primary);
}

/* Labels and fields, shared with the Submit Article form (assets/css/submit.css). */
:is(.comment-form, .submit-form) .required {
	color: var(--tf-primary);
}

:is(.comment-form, .submit-form) label {
	display: block;
	margin-bottom: 6px;
	color: var(--tf-gray-700);
	font-size: 14px;
	font-weight: 600;
}

:is(.comment-form, .submit-form) :is(input[type="text"], input[type="email"], input[type="url"], textarea) {
	display: block;
	width: 100%;
	padding: 10px 14px;
	border: 1px solid var(--tf-gray-300);
	border-radius: 6px;
	background: #FFFFFF;
	color: var(--tf-ink);
	font: inherit;
	font-size: 16px;
	transition: border-color var(--tf-ease), box-shadow var(--tf-ease);
}

.comment-form textarea {
	min-height: 140px;
	resize: vertical;
}

:is(.comment-form, .submit-form) :is(input[type="text"], input[type="email"], input[type="url"], textarea):focus {
	border-color: var(--tf-primary);
	outline: none;
	box-shadow: 0 0 0 3px rgba(var(--tf-primary-rgb), .15);
}

.comment-form .comment-form-cookies-consent {
	display: flex;
	align-items: flex-start;
	gap: 8px;
}

.comment-form-cookies-consent input {
	flex: none;
	width: 16px;
	height: 16px;
	margin: 2px 0 0;
	accent-color: var(--tf-primary);
}

.comment-form .comment-form-cookies-consent label {
	margin: 0;
	color: var(--tf-gray-600);
	font-weight: 400;
}

.comment-form__submit {
	height: 44px;
	padding: 0 22px;
	font-size: 15px;
}

.comment-navigation .nav-links {
	display: flex;
	justify-content: space-between;
	gap: 16px;
	font-size: 14px;
	font-weight: 600;
}

.comment-navigation a {
	color: var(--tf-primary);
}

@media (max-width: 1023px) {
	.single-layout {
		grid-template-columns: minmax(0, 1fr);
	}
}

@media (max-width: 767px) {
	.single-layout {
		padding-top: 28px;
	}

	.article__title {
		font-size: 32px;
	}

	.article__dek {
		font-size: 18px;
	}

	.article__content {
		font-size: 18px;
	}

	.comment-form {
		grid-template-columns: minmax(0, 1fr);
	}

	.comment-form > .comment-form-author,
	.comment-form > .comment-form-email {
		grid-column: 1 / -1;
	}

	.comment-list .children {
		margin-left: 6px;
		padding-left: 14px;
	}

	.comment__body {
		grid-template-columns: 36px minmax(0, 1fr);
		gap: 12px;
	}

	.comment__avatar {
		width: 36px;
		height: 36px;
	}

	.comment-list .comment-respond {
		padding: 16px;
	}
}

/* ==========================================================================
 * Search results (search.php)
 * ======================================================================== */

.search-page__form {
	max-width: 720px;
}

.search-results {
	display: flex;
	flex-direction: column;
}

/* Photo on the left, the story beside it; a rule between results. */
.search-result {
	display: grid;
	grid-template-columns: 240px minmax(0, 1fr);
	gap: 24px;
	align-items: start;
	padding: 24px 0;
	border-top: 1px solid var(--tf-gray-200);
}

.search-result:first-child {
	padding-top: 0;
	border-top: 0;
}

.search-result__media {
	display: block;
	overflow: hidden;
	border-radius: 8px;
}

.search-result__img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 3 / 2;
	object-fit: cover;
}

.search-result__body {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 8px;
	min-width: 0;
}

.search-result__cat {
	color: var(--tf-primary);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
}

.search-result__cat:hover {
	color: var(--tf-primary-dark);
}

.search-result__title {
	margin: 0;
	font-size: 22px;
	font-weight: 700;
	line-height: 1.3;
}

.search-result__excerpt {
	margin: 0;
	color: var(--tf-gray-600);
	font-size: 16px;
	line-height: 1.6;
}

/* The search words, in a tint of the page's colour. */
.search-result mark {
	padding: 0 .1em;
	border-radius: 2px;
	background: var(--tf-primary-100);
	color: inherit;
}

.search-empty {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.search-empty p {
	margin: 0;
	color: var(--tf-gray-600);
}

.search-empty .search-empty__title {
	color: var(--tf-ink);
	font-size: 22px;
	font-weight: 700;
	line-height: 1.3;
}

.search-empty .search-sections {
	margin-top: 8px;
}

/* Phone: a small photo beside the headline; the summary is left out. */
@media (max-width: 767px) {
	.search-result {
		grid-template-columns: 112px minmax(0, 1fr);
		gap: 16px;
		padding: 20px 0;
	}

	.search-result__media {
		border-radius: 6px;
	}

	.search-result__img {
		aspect-ratio: 4 / 3;
	}

	.search-result__title {
		font-size: 17px;
	}

	.search-result__excerpt {
		display: none;
	}
}

/* ==========================================================================
 * 404 page
 * ======================================================================== */

.error-404 {
	display: flex;
	flex-direction: column;
	gap: 64px;
	padding-top: 56px;
	padding-bottom: 72px;
}

/* The error on the left, search on the right; stacked below desktop. */
.error-404__intro {
	display: grid;
	grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
	gap: 64px;
	align-items: end;
}

.error-404__header {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 16px;
}

.error-404__code {
	margin: 0;
	color: var(--tf-primary);
	font-size: 128px;
	font-weight: 800;
	line-height: 1;
	letter-spacing: -.04em;
}

.error-404__title {
	margin: 0;
	font-size: 40px;
	font-weight: 700;
	line-height: 1.2;
}

.error-404__desc {
	max-width: 560px;
	margin: 0;
	color: var(--tf-gray-600);
	font-size: 18px;
	line-height: 1.625;
}

.error-404__btn {
	height: 48px;
	margin-top: 8px;
	padding: 0 24px;
	font-size: 16px;
	font-weight: 600;
}

.error-404__btn:focus-visible {
	outline: 2px solid var(--tf-primary);
	outline-offset: 3px;
}

.error-404__search {
	display: flex;
	flex-direction: column;
	gap: 20px;
	padding: 28px;
	border-radius: 8px;
	background: #F3F4F6;
}

.error-404__search-title {
	margin: 0;
	font-size: 20px;
	font-weight: 700;
	line-height: 1.25;
}

@media (max-width: 1023px) {
	.error-404__intro {
		grid-template-columns: minmax(0, 1fr);
		gap: 48px;
	}
}

@media (max-width: 767px) {
	.error-404 {
		gap: 48px;
		padding-top: 40px;
		padding-bottom: 56px;
	}

	.error-404__code {
		font-size: 96px;
	}

	.error-404__title {
		font-size: 30px;
	}

	.error-404__desc {
		font-size: 16px;
	}

	/* Full width, so it's easy to reach with a thumb. */
	.error-404__btn {
		align-self: stretch;
		justify-content: center;
	}

	.error-404__search {
		padding: 20px;
	}
}

/* ==========================================================================
 * Hindi (Devanagari) text: taller lines for the matras, and no letter-spacing,
 * which breaks up conjuncts. Applies wherever the page or block is lang="hi".
 * ======================================================================== */

:lang(hi) :is(.lead__title, .secondary__title, .post-card__title, .feature-card__title, .category-header__title, .section-tab__title, .category-latest__title, .article__title, .article-more__title, .trending__title, .insta-feed__title, .trending__link, .newswire__item, .promo__headline, .promo__highlight, .search-sections__link, .promo__eyebrow, .search-suggest__cat, .trending__cat, .article__cat, .search-result__cat, .search-sections__label, .feature-card__label, .share__label) {
	letter-spacing: 0;
}

/* Devanagari has no italics; a slanted tagline would be a fake one. */
:lang(hi) .brand__tagline {
	font-style: normal;
}

:lang(hi) :is(.lead__title, .feature-card__title, .category-header__title, .article__title) {
	line-height: 1.3;
}

:lang(hi) :is(.secondary__title, .post-card__title, .section-tab__title, .category-latest__title, .article-more__title, .trending__link) {
	line-height: 1.4;
}

:lang(hi) :is(.article__content, .lead__excerpt, .feature-card__excerpt, .post-card__excerpt, .secondary__excerpt, .article__dek) {
	line-height: 1.85;
}
