/**
 * Trailwire — main stylesheet
 * Editorial ATV information theme for the United Kingdom.
 */

/* --------------------------------------------------------------------------
   Tokens
   -------------------------------------------------------------------------- */
:root {
	--tw-ink: #0e1116;
	--tw-ink-soft: #2a3038;
	--tw-paper: #fafbfc;
	--tw-surface: #ffffff;
	--tw-forest: #163a2e;
	--tw-forest-deep: #0f2920;
	--tw-signal: #c45c1a;
	--tw-muted: #5c6570;
	--tw-line: #e2e5ea;
	--tw-soft: #eef2ef;
	--tw-focus: #1a5cff;
	--tw-danger: #9b1c1c;
	--tw-radius: 2px;
	--tw-header-h: 4.25rem;
	--tw-container: 1180px;
	--tw-content: 42rem;
	--tw-serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
	--tw-sans: "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
	--tw-mono: ui-monospace, "Cascadia Code", "Segoe UI Mono", Consolas, monospace;
	--tw-shadow-sm: 0 1px 2px rgba(14, 17, 22, 0.06);
	--tw-ease: cubic-bezier(0.22, 1, 0.36, 1);
	color-scheme: light;
}

html[data-theme="dark"] {
	--tw-ink: #f2f4f7;
	--tw-ink-soft: #c8ced6;
	--tw-paper: #0e1116;
	--tw-surface: #161a20;
	--tw-forest: #7dba9f;
	--tw-forest-deep: #5a9a7d;
	--tw-signal: #e8924a;
	--tw-muted: #9aa3ad;
	--tw-line: #2a313a;
	--tw-soft: #1c2229;
	--tw-focus: #6b9bff;
	color-scheme: dark;
}

@media (prefers-color-scheme: dark) {
	html:not([data-theme="light"]) {
		--tw-ink: #f2f4f7;
		--tw-ink-soft: #c8ced6;
		--tw-paper: #0e1116;
		--tw-surface: #161a20;
		--tw-forest: #7dba9f;
		--tw-forest-deep: #5a9a7d;
		--tw-signal: #e8924a;
		--tw-muted: #9aa3ad;
		--tw-line: #2a313a;
		--tw-soft: #1c2229;
		--tw-focus: #6b9bff;
		color-scheme: dark;
	}
}

/* --------------------------------------------------------------------------
   Reset & base
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
	scroll-padding-top: calc(var(--tw-header-h) + 1rem);
}

body {
	margin: 0;
	font-family: var(--tw-sans);
	font-size: 1.0625rem;
	line-height: 1.65;
	color: var(--tw-ink);
	background:
		radial-gradient(1200px 600px at 10% -10%, rgba(22, 58, 46, 0.07), transparent 55%),
		radial-gradient(900px 500px at 100% 0%, rgba(196, 92, 26, 0.05), transparent 50%),
		linear-gradient(180deg, var(--tw-paper) 0%, var(--tw-paper) 100%);
	background-attachment: fixed;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

img,
svg,
video {
	max-width: 100%;
	height: auto;
	display: block;
}

a {
	color: var(--tw-forest);
	text-decoration-thickness: 1px;
	text-underline-offset: 0.18em;
	transition: color 0.2s var(--tw-ease);
}

a:hover {
	color: var(--tw-signal);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
summary:focus-visible,
.select:focus-visible {
	outline: 2px solid var(--tw-focus);
	outline-offset: 3px;
}

h1, h2, h3, h4, h5, h6 {
	font-family: var(--tw-serif);
	font-weight: 600;
	line-height: 1.2;
	color: var(--tw-ink);
	letter-spacing: -0.02em;
	margin: 0 0 0.75rem;
}

p {
	margin: 0 0 1.1rem;
}

ul, ol {
	margin: 0 0 1.1rem;
	padding-left: 1.25rem;
}

.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	width: 1px;
	word-wrap: normal !important;
}

.tw-skip-link {
	position: absolute;
	left: 1rem;
	top: -100px;
	z-index: 10000;
	background: var(--tw-forest);
	color: #fff;
	padding: 0.75rem 1rem;
	font-weight: 600;
	text-decoration: none;
}

.tw-skip-link:focus {
	top: 1rem;
	color: #fff;
}

.tw-container {
	width: min(100% - 2rem, var(--tw-container));
	margin-inline: auto;
}

.tw-main {
	padding-bottom: 4rem;
	min-height: 50vh;
}

/* --------------------------------------------------------------------------
   Buttons & forms
   -------------------------------------------------------------------------- */
.tw-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	padding: 0.7rem 1.25rem;
	border: 1px solid transparent;
	border-radius: var(--tw-radius);
	font-family: var(--tw-sans);
	font-size: 0.875rem;
	font-weight: 600;
	letter-spacing: 0.02em;
	text-decoration: none;
	cursor: pointer;
	transition: background 0.2s var(--tw-ease), color 0.2s var(--tw-ease), border-color 0.2s var(--tw-ease), transform 0.2s var(--tw-ease);
}

.tw-btn--primary {
	background: var(--tw-forest);
	color: #fff;
}

.tw-btn--primary:hover {
	background: var(--tw-forest-deep);
	color: #fff;
}

.tw-icon-btn {
	appearance: none;
	border: 0;
	background: transparent;
	color: var(--tw-ink);
	width: 2.5rem;
	height: 2.5rem;
	display: inline-grid;
	place-items: center;
	cursor: pointer;
	border-radius: var(--tw-radius);
}

.tw-icon-btn:hover {
	background: var(--tw-soft);
}

.tw-text-link {
	font-size: 0.875rem;
	font-weight: 600;
	text-decoration: none;
	color: var(--tw-forest);
	border-bottom: 1px solid currentColor;
}

.tw-badge {
	display: inline-block;
	font-size: 0.7rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	text-decoration: none;
	color: var(--tw-forest);
	background: var(--tw-soft);
	padding: 0.3rem 0.55rem;
	border-radius: var(--tw-radius);
}

.tw-badge:hover {
	color: var(--tw-signal);
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */
.tw-site-header {
	position: sticky;
	top: 0;
	z-index: 1000;
	background: color-mix(in srgb, var(--tw-paper) 88%, transparent);
	backdrop-filter: blur(14px);
	-webkit-backdrop-filter: blur(14px);
	border-bottom: 1px solid transparent;
	transition: border-color 0.25s var(--tw-ease), box-shadow 0.25s var(--tw-ease);
}

.tw-site-header.is-scrolled {
	border-bottom-color: var(--tw-line);
	box-shadow: var(--tw-shadow-sm);
}

.tw-site-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1.25rem;
	min-height: var(--tw-header-h);
}

.tw-brand__text,
.tw-brand .custom-logo-link {
	text-decoration: none;
	color: var(--tw-ink);
	display: inline-flex;
	align-items: center;
}

.tw-brand__mark {
	font-family: var(--tw-serif);
	font-size: 1.55rem;
	font-weight: 700;
	letter-spacing: -0.03em;
	line-height: 1;
}

.tw-brand__mark::after {
	content: "";
	display: inline-block;
	width: 0.45rem;
	height: 0.45rem;
	margin-left: 0.35rem;
	background: var(--tw-signal);
	border-radius: 50%;
	vertical-align: 0.35em;
}

.tw-brand .custom-logo {
	max-height: 2.5rem;
	width: auto;
}

.tw-nav--primary {
	display: none;
	flex: 1;
}

@media (min-width: 960px) {
	.tw-nav--primary {
		display: block;
	}

	.tw-menu-toggle {
		display: none;
	}
}

.tw-nav__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.15rem;
}

.tw-nav__list > .menu-item {
	position: relative;
}

.tw-nav__list > .menu-item > a {
	display: block;
	padding: 0.65rem 0.85rem;
	text-decoration: none;
	color: var(--tw-ink-soft);
	font-size: 0.9rem;
	font-weight: 600;
}

.tw-nav__list > .menu-item > a:hover,
.tw-nav__list > .menu-item.current-menu-item > a {
	color: var(--tw-ink);
}

.tw-nav__list .sub-menu {
	list-style: none;
	margin: 0;
	padding: 0.5rem;
	position: absolute;
	top: calc(100% + 0.35rem);
	left: 0;
	min-width: 14rem;
	background: var(--tw-surface);
	border: 1px solid var(--tw-line);
	border-radius: var(--tw-radius);
	box-shadow: 0 12px 32px rgba(14, 17, 22, 0.12);
	opacity: 0;
	visibility: hidden;
	transform: translateY(6px);
	transition: opacity 0.2s var(--tw-ease), transform 0.2s var(--tw-ease), visibility 0.2s;
	z-index: 50;
}

.tw-nav__list .menu-item-has-children:hover > .sub-menu,
.tw-nav__list .menu-item-has-children:focus-within > .sub-menu {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.tw-nav__list .sub-menu a {
	display: block;
	padding: 0.65rem 0.75rem;
	text-decoration: none;
	color: var(--tw-ink-soft);
	font-size: 0.875rem;
	font-weight: 500;
	border-radius: var(--tw-radius);
}

.tw-nav__list .sub-menu a:hover {
	background: var(--tw-soft);
	color: var(--tw-ink);
}

.tw-site-header__actions {
	display: flex;
	align-items: center;
	gap: 0.15rem;
}

.tw-theme-toggle__moon { display: none; }
html[data-theme="dark"] .tw-theme-toggle__sun { display: none; }
html[data-theme="dark"] .tw-theme-toggle__moon { display: inline; }

.tw-menu-toggle__bars {
	display: flex;
	flex-direction: column;
	gap: 4px;
	width: 18px;
}

.tw-menu-toggle__bars span {
	display: block;
	height: 2px;
	background: currentColor;
	border-radius: 1px;
	transition: transform 0.2s var(--tw-ease), opacity 0.2s;
}

.tw-menu-toggle[aria-expanded="true"] .tw-menu-toggle__bars span:nth-child(1) {
	transform: translateY(6px) rotate(45deg);
}
.tw-menu-toggle[aria-expanded="true"] .tw-menu-toggle__bars span:nth-child(2) {
	opacity: 0;
}
.tw-menu-toggle[aria-expanded="true"] .tw-menu-toggle__bars span:nth-child(3) {
	transform: translateY(-6px) rotate(-45deg);
}

.tw-search-panel,
.tw-mobile-nav {
	border-top: 1px solid var(--tw-line);
	background: var(--tw-surface);
	padding: 1.25rem 0 1.5rem;
}

.tw-search-panel[hidden],
.tw-mobile-nav[hidden] {
	display: none !important;
}

.tw-search-panel .tw-container {
	display: flex;
	gap: 1rem;
	align-items: flex-start;
}

.tw-search-panel__close {
	appearance: none;
	border: 1px solid var(--tw-line);
	background: transparent;
	padding: 0.7rem 1rem;
	cursor: pointer;
	font-weight: 600;
	color: var(--tw-ink);
	border-radius: var(--tw-radius);
}

.tw-mobile-nav__list {
	list-style: none;
	margin: 0 0 1.25rem;
	padding: 0;
}

.tw-mobile-nav__list a {
	display: block;
	padding: 0.85rem 0;
	border-bottom: 1px solid var(--tw-line);
	text-decoration: none;
	color: var(--tw-ink);
	font-weight: 600;
}

.tw-mobile-nav__list .sub-menu {
	list-style: none;
	margin: 0;
	padding: 0 0 0 1rem;
}

/* --------------------------------------------------------------------------
   Search form
   -------------------------------------------------------------------------- */
.tw-search-form {
	width: 100%;
}

.tw-search-form__row {
	display: flex;
	gap: 0.5rem;
}

.tw-search-form__input {
	flex: 1;
	min-width: 0;
	padding: 0.8rem 1rem;
	border: 1px solid var(--tw-line);
	border-radius: var(--tw-radius);
	background: var(--tw-paper);
	color: var(--tw-ink);
	font: inherit;
}

.tw-search-form__submit {
	appearance: none;
	border: 0;
	background: var(--tw-forest);
	color: #fff;
	font-weight: 600;
	padding: 0.8rem 1.15rem;
	border-radius: var(--tw-radius);
	cursor: pointer;
}

.tw-search-form__submit:hover {
	background: var(--tw-forest-deep);
}

/* --------------------------------------------------------------------------
   Breadcrumbs
   -------------------------------------------------------------------------- */
.tw-breadcrumbs {
	margin-bottom: 1.25rem;
}

.tw-breadcrumbs__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 0.35rem 0.5rem;
	font-size: 0.8rem;
	color: var(--tw-muted);
}

.tw-breadcrumbs__item:not(:last-child)::after {
	content: "/";
	margin-left: 0.5rem;
	opacity: 0.5;
}

.tw-breadcrumbs a {
	color: var(--tw-muted);
	text-decoration: none;
}

.tw-breadcrumbs a:hover {
	color: var(--tw-forest);
}

/* --------------------------------------------------------------------------
   Section heads & cards
   -------------------------------------------------------------------------- */
.tw-home-section {
	padding: 3.5rem 0;
}

.tw-section-head {
	margin-bottom: 1.75rem;
	max-width: 40rem;
}

.tw-section-head h2 {
	font-size: clamp(1.75rem, 2.5vw, 2.35rem);
	margin-bottom: 0.4rem;
}

.tw-section-head p {
	color: var(--tw-muted);
	margin: 0;
}

.tw-section-head--row {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 1rem;
	max-width: none;
}

.tw-card-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1.5rem;
	align-items: stretch;
}

@media (min-width: 640px) {
	.tw-card-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 960px) {
	.tw-card-grid,
	.tw-card-grid--3 {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.tw-card-grid--related {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

.tw-card-grid > .tw-card {
	height: 100%;
	min-width: 0;
	width: 100%;
	max-width: none;
	float: none;
	margin: 0;
	box-sizing: border-box;
}

/* Neutralise WP core / plugin leftovers on cards */
.tw-card.post,
.tw-card.sticky,
.tw-card.hentry,
.tw-card.type-post {
	float: none !important;
	position: relative;
	width: 100% !important;
	max-width: none !important;
	clear: none;
}

.tw-card {
	display: flex;
	flex-direction: column;
	background: var(--tw-surface);
	border: 1px solid var(--tw-line);
	border-radius: var(--tw-radius);
	overflow: hidden;
	transition: border-color 0.2s var(--tw-ease), transform 0.25s var(--tw-ease);
}

.tw-card:hover {
	border-color: color-mix(in srgb, var(--tw-forest) 35%, var(--tw-line));
	transform: translateY(-2px);
}

.tw-card__media {
	aspect-ratio: 3 / 2;
	overflow: hidden;
	background: var(--tw-soft);
	flex: 0 0 auto;
	width: 100%;
	display: block;
	line-height: 0;
	position: relative;
}

.tw-card__media img,
.tw-card__media .tw-stock-img {
	position: absolute;
	inset: 0;
	display: block;
	width: 100% !important;
	height: 100% !important;
	max-width: none !important;
	object-fit: cover;
	transition: transform 0.45s var(--tw-ease);
}

.tw-card:hover .tw-card__media img {
	transform: scale(1.03);
}

.tw-home-featured__media img,
.tw-home-featured__media .tw-stock-img {
	display: block;
	width: 100% !important;
	height: 100% !important;
	max-width: none !important;
	object-fit: cover;
}

.tw-card__placeholder,
.tw-home-featured__placeholder {
	display: block;
	width: 100%;
	height: 100%;
	min-height: 12rem;
	background:
		linear-gradient(135deg, var(--tw-soft), var(--tw-line)),
		repeating-linear-gradient(-45deg, transparent, transparent 8px, rgba(22, 58, 46, 0.04) 8px, rgba(22, 58, 46, 0.04) 16px);
}

.tw-card__body {
	padding: 1.15rem 1.2rem 1.35rem;
	display: flex;
	flex-direction: column;
	gap: 0.55rem;
	flex: 1 1 auto;
	min-width: 0;
}

.tw-card__meta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	flex-wrap: wrap;
}

.tw-card__read {
	font-size: 0.75rem;
	color: var(--tw-muted);
	font-weight: 600;
	white-space: nowrap;
}

/**
 * Card title hierarchy on archives uses h2; keep featured consistent.
 */
.tw-card__title {
	font-size: 1.2rem;
	margin: 0;
	line-height: 1.3;
	font-family: var(--tw-serif);
	font-weight: 600;
	letter-spacing: -0.02em;
}

.tw-card__title a {
	text-decoration: none;
	color: var(--tw-ink);
}

.tw-card__title a:hover {
	color: var(--tw-forest);
}

.tw-card__excerpt {
	color: var(--tw-muted);
	font-size: 0.95rem;
	margin: 0;
	flex: 1 1 auto;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.tw-card__footer {
	display: flex;
	justify-content: space-between;
	gap: 0.75rem;
	font-size: 0.78rem;
	color: var(--tw-muted);
	padding-top: 0.35rem;
	border-top: 1px solid var(--tw-line);
	margin-top: auto;
}

.tw-card--featured {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	height: auto;
}

@media (min-width: 800px) {
	.tw-card--featured {
		grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
		align-items: stretch;
	}

	.tw-card--featured .tw-card__media {
		aspect-ratio: auto;
		min-height: 18rem;
		height: 100%;
	}

	.tw-card--featured .tw-card__title {
		font-size: 1.75rem;
	}

	.tw-card--featured .tw-card__excerpt {
		-webkit-line-clamp: 5;
	}
}

.tw-card--compact .tw-card__excerpt {
	display: none;
}

.tw-card--search {
	display: grid;
	grid-template-columns: 7.5rem minmax(0, 1fr);
	align-items: stretch;
	height: auto;
}

.tw-card--search .tw-card__media {
	aspect-ratio: 1;
	height: 100%;
	min-height: 7.5rem;
}

@media (min-width: 640px) {
	.tw-card--search {
		grid-template-columns: 12rem minmax(0, 1fr);
	}

	.tw-card--search .tw-card__media {
		aspect-ratio: 4 / 3;
		min-height: 8.5rem;
	}
}

/* --------------------------------------------------------------------------
   Homepage featured
   -------------------------------------------------------------------------- */
.tw-home-featured {
	padding: 2rem 0 1rem;
}

.tw-home-featured__layout {
	display: grid;
	gap: 1.5rem;
	background: var(--tw-surface);
	border: 1px solid var(--tw-line);
	overflow: hidden;
}

@media (min-width: 900px) {
	.tw-home-featured__layout {
		grid-template-columns: 1.35fr 1fr;
		min-height: 28rem;
	}
}

.tw-home-featured__media {
	display: block;
	background: var(--tw-soft);
	min-height: 16rem;
	overflow: hidden;
}

.tw-home-featured__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	min-height: 16rem;
}

@media (min-width: 900px) {
	.tw-home-featured__media img {
		min-height: 100%;
	}
}

.tw-home-featured__content {
	padding: 1.5rem 1.5rem 2rem;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	justify-content: center;
	gap: 0.85rem;
}

.tw-home-featured__eyebrow {
	margin: 0;
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--tw-signal);
}

.tw-home-featured__title {
	font-size: clamp(1.85rem, 3.5vw, 2.75rem);
	margin: 0;
}

.tw-home-featured__title a {
	text-decoration: none;
	color: inherit;
}

.tw-home-featured__excerpt {
	color: var(--tw-muted);
	margin: 0;
	font-size: 1.05rem;
}

.tw-home-featured__meta {
	display: flex;
	gap: 1rem;
	font-size: 0.8rem;
	color: var(--tw-muted);
	font-weight: 600;
}

/* --------------------------------------------------------------------------
   Trending / topics / makers
   -------------------------------------------------------------------------- */
.tw-trending-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 0;
	border-top: 1px solid var(--tw-line);
}

.tw-trending-list__item {
	display: grid;
	grid-template-columns: 3.5rem 1fr;
	gap: 1rem;
	align-items: start;
	padding: 1.25rem 0;
	border-bottom: 1px solid var(--tw-line);
}

.tw-trending-list__rank {
	font-family: var(--tw-serif);
	font-size: 1.75rem;
	font-weight: 600;
	color: var(--tw-forest);
	line-height: 1;
}

.tw-trending-list__title {
	display: block;
	font-family: var(--tw-serif);
	font-size: 1.25rem;
	font-weight: 600;
	text-decoration: none;
	color: var(--tw-ink);
	margin: 0.35rem 0;
}

.tw-trending-list__meta {
	font-size: 0.78rem;
	color: var(--tw-muted);
}

.tw-topic-grid,
.tw-maker-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 0.85rem;
}

@media (min-width: 640px) {
	.tw-topic-grid,
	.tw-maker-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (min-width: 960px) {
	.tw-topic-grid {
		grid-template-columns: repeat(4, 1fr);
	}

	.tw-maker-grid {
		grid-template-columns: repeat(3, 1fr);
	}
}

.tw-topic-card,
.tw-maker-card {
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
	padding: 1.25rem;
	background: var(--tw-surface);
	border: 1px solid var(--tw-line);
	text-decoration: none;
	color: inherit;
	transition: border-color 0.2s var(--tw-ease), background 0.2s var(--tw-ease);
	position: relative;
	min-height: 8.5rem;
}

.tw-topic-card:hover,
.tw-maker-card:hover {
	border-color: var(--tw-forest);
	background: color-mix(in srgb, var(--tw-soft) 65%, var(--tw-surface));
}

.tw-topic-card__name,
.tw-maker-card__name {
	font-family: var(--tw-serif);
	font-size: 1.25rem;
	font-weight: 600;
}

.tw-topic-card__blurb,
.tw-maker-card__blurb {
	color: var(--tw-muted);
	font-size: 0.9rem;
}

.tw-topic-card__count {
	position: absolute;
	top: 1rem;
	right: 1rem;
	font-size: 0.75rem;
	font-weight: 700;
	color: var(--tw-muted);
}

.tw-maker-card--photo {
	min-height: 10rem;
	justify-content: flex-end;
	color: #fff;
	border: 0;
	background:
		linear-gradient(180deg, rgba(14, 17, 22, 0.2) 0%, rgba(14, 17, 22, 0.85) 100%),
		var(--tw-maker-bg, var(--tw-soft));
	background-size: cover;
	background-position: center;
}

.tw-maker-card--photo .tw-maker-card__name {
	color: #fff;
}

.tw-maker-card--photo .tw-maker-card__blurb {
	color: rgba(255, 255, 255, 0.88);
}

.tw-maker-card--photo:hover {
	border-color: transparent;
	background:
		linear-gradient(180deg, rgba(14, 17, 22, 0.08) 0%, rgba(22, 58, 46, 0.9) 100%),
		var(--tw-maker-bg, var(--tw-soft));
	background-size: cover;
	background-position: center;
}


.tw-rail {
	margin-bottom: 3rem;
}

.tw-rail:last-child {
	margin-bottom: 0;
}

.tw-rail__empty {
	color: var(--tw-muted);
	padding: 1.5rem;
	border: 1px dashed var(--tw-line);
}

.tw-video-grid {
	display: grid;
	gap: 1.25rem;
}

@media (min-width: 800px) {
	.tw-video-grid {
		grid-template-columns: repeat(3, 1fr);
	}
}

.tw-video-card__frame {
	aspect-ratio: 16 / 9;
	background-color: var(--tw-forest-deep);
	background-size: cover;
	background-position: center;
	display: grid;
	place-items: center;
	border-radius: var(--tw-radius);
	position: relative;
	overflow: hidden;
}

.tw-video-card__frame::before {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(160deg, rgba(15, 41, 32, 0.35), rgba(14, 17, 22, 0.45));
}

.tw-video-card__play {
	width: 3rem;
	height: 3rem;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.92);
	position: relative;
	z-index: 1;
}

.tw-video-card__play::after {
	content: "";
	position: absolute;
	left: 55%;
	top: 50%;
	transform: translate(-50%, -50%);
	border-style: solid;
	border-width: 0.45rem 0 0.45rem 0.75rem;
	border-color: transparent transparent transparent var(--tw-forest);
}

.tw-video-card__caption {
	font-size: 0.85rem;
	color: var(--tw-muted);
	margin: 0.75rem 0 0;
}

.tw-home-newsletter {
	margin: 2rem 0;
	padding: 3rem 0;
	background-color: var(--tw-forest);
	background-image:
		linear-gradient(105deg, rgba(15, 41, 32, 0.92) 0%, rgba(22, 58, 46, 0.82) 55%, rgba(14, 17, 22, 0.55) 100%),
		var(--tw-news-bg, none);
	background-size: cover;
	background-position: center;
	color: #f5f7f6;
}

.tw-home-newsletter__inner {
	display: grid;
	gap: 1.5rem;
	align-items: center;
}

@media (min-width: 800px) {
	.tw-home-newsletter__inner {
		grid-template-columns: 1.2fr 1fr;
	}
}

.tw-home-newsletter h2 {
	color: #fff;
	font-size: clamp(1.75rem, 3vw, 2.4rem);
}

.tw-home-newsletter p {
	color: rgba(255, 255, 255, 0.82);
	margin: 0;
}

.tw-home-newsletter .tw-newsletter-form__input {
	background: #fff;
	color: #0e1116;
	border-color: transparent;
}

.tw-home-newsletter .tw-btn--primary {
	background: var(--tw-signal);
}

.tw-home-newsletter .tw-btn--primary:hover {
	background: #a84c14;
}

.tw-home-newsletter .tw-newsletter-form__note {
	color: rgba(255, 255, 255, 0.7);
	font-size: 0.8rem;
}

.tw-home-about {
	padding: 4rem 0;
}

.tw-home-about__grid {
	display: grid;
	gap: 2rem;
	align-items: center;
}

@media (min-width: 900px) {
	.tw-home-about__grid {
		grid-template-columns: 1.1fr 1fr;
	}
}

.tw-home-about__media {
	overflow: hidden;
	border: 1px solid var(--tw-line);
	border-radius: var(--tw-radius);
	aspect-ratio: 4 / 3;
	background: var(--tw-soft);
}

.tw-home-about__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.tw-home-about__inner {
	max-width: 44rem;
}

.tw-topic-card--photo {
	min-height: 11rem;
	justify-content: flex-end;
	color: #fff;
	border: 0;
	background:
		linear-gradient(180deg, rgba(14, 17, 22, 0.15) 0%, rgba(14, 17, 22, 0.82) 100%),
		var(--tw-topic-bg, var(--tw-soft));
	background-size: cover;
	background-position: center;
}

.tw-topic-card--photo .tw-topic-card__name {
	color: #fff;
}

.tw-topic-card--photo .tw-topic-card__blurb,
.tw-topic-card--photo .tw-topic-card__count {
	color: rgba(255, 255, 255, 0.85);
}

.tw-topic-card--photo:hover {
	border-color: transparent;
	background:
		linear-gradient(180deg, rgba(14, 17, 22, 0.05) 0%, rgba(22, 58, 46, 0.88) 100%),
		var(--tw-topic-bg, var(--tw-soft));
	background-size: cover;
	background-position: center;
}

.tw-home-about__eyebrow {
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--tw-signal);
	margin: 0 0 0.75rem;
}

.tw-home-about h2 {
	font-size: clamp(1.9rem, 3vw, 2.6rem);
}

.tw-home-about__text {
	color: var(--tw-muted);
	font-size: 1.1rem;
}

.tw-home-about__pillars {
	list-style: none;
	padding: 0;
	margin: 1.5rem 0 0;
	display: flex;
	flex-wrap: wrap;
	gap: 0.65rem;
}

.tw-home-about__pillars li {
	font-size: 0.8rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	padding: 0.45rem 0.7rem;
	border: 1px solid var(--tw-line);
	background: var(--tw-surface);
}

/* --------------------------------------------------------------------------
   Newsletter form
   -------------------------------------------------------------------------- */
.tw-newsletter-form__row {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.tw-newsletter-form__input {
	flex: 1 1 12rem;
	padding: 0.8rem 1rem;
	border: 1px solid var(--tw-line);
	border-radius: var(--tw-radius);
	font: inherit;
	background: var(--tw-paper);
	color: var(--tw-ink);
}

.tw-newsletter-form__note {
	margin: 0.55rem 0 0;
	font-size: 0.78rem;
	color: var(--tw-muted);
}

/* --------------------------------------------------------------------------
   Article
   -------------------------------------------------------------------------- */
.tw-article__hero {
	padding: 1.5rem 0 0;
}

.tw-article__meta-top {
	display: flex;
	align-items: center;
	gap: 1rem;
	margin-bottom: 1rem;
}

.tw-article__reading {
	font-size: 0.8rem;
	font-weight: 600;
	color: var(--tw-muted);
}

.tw-article__title {
	font-size: clamp(2.1rem, 5vw, 3.35rem);
	max-width: 18ch;
	margin-bottom: 1rem;
	line-height: 1.12;
}

.tw-article__dek {
	font-size: 1.22rem;
	line-height: 1.55;
	color: var(--tw-muted);
	max-width: 40rem;
	margin-bottom: 1.25rem;
}

.tw-article__byline {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem 1.25rem;
	align-items: center;
	font-size: 0.9rem;
	color: var(--tw-muted);
	margin-bottom: 1.25rem;
}

.tw-meta-dates {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem 1rem;
}

.tw-article__figure {
	margin: 2rem 0 0;
}

.tw-article__image {
	width: 100%;
	max-height: 70vh;
	object-fit: cover;
}

.tw-article__figure figcaption {
	width: min(100% - 2rem, var(--tw-container));
	margin: 0.65rem auto 0;
	font-size: 0.85rem;
	color: var(--tw-muted);
}

.tw-article__layout {
	display: grid;
	gap: 2rem;
	padding-top: 2.5rem;
}

@media (min-width: 1100px) {
	.tw-article__layout {
		grid-template-columns: 15rem minmax(0, 1fr);
		align-items: start;
	}
}

.tw-toc {
	position: sticky;
	top: calc(var(--tw-header-h) + 1rem);
	padding: 1rem;
	border: 1px solid var(--tw-line);
	background: var(--tw-surface);
	font-size: 0.875rem;
	max-height: calc(100vh - var(--tw-header-h) - 2rem);
	overflow: auto;
}

@media (max-width: 1099px) {
	.tw-toc {
		position: relative;
		top: 0;
		max-height: none;
	}
}

.tw-toc__heading {
	margin: 0 0 0.75rem;
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--tw-muted);
}

.tw-toc__list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.tw-toc__item {
	margin: 0 0 0.45rem;
}

.tw-toc__item--h3 {
	padding-left: 0.75rem;
}

.tw-toc a {
	text-decoration: none;
	color: var(--tw-ink-soft);
	line-height: 1.35;
	display: inline-block;
}

.tw-toc a:hover,
.tw-toc a.is-active {
	color: var(--tw-forest);
}

.tw-article__content-wrap {
	max-width: calc(var(--tw-content) + 2rem);
}

.tw-entry-content {
	font-size: 1.125rem;
	line-height: 1.85;
	color: var(--tw-ink-soft);
	max-width: 42rem;
}

.tw-entry-content > *:first-child {
	margin-top: 0;
}

.tw-entry-content > * + * {
	margin-top: 1.25rem;
}

.tw-entry-content h2 {
	font-size: clamp(1.45rem, 2.4vw, 1.85rem);
	margin-top: 2.75rem;
	margin-bottom: 0.85rem;
	color: var(--tw-ink);
	scroll-margin-top: calc(var(--tw-header-h) + 1rem);
}

.tw-entry-content h3 {
	font-size: clamp(1.15rem, 1.8vw, 1.35rem);
	margin-top: 2.1rem;
	margin-bottom: 0.65rem;
	color: var(--tw-ink);
	scroll-margin-top: calc(var(--tw-header-h) + 1rem);
}

.tw-entry-content p {
	margin: 0;
}

.tw-entry-content .tw-lede,
.tw-entry-content > p:first-of-type {
	font-size: 1.28rem;
	line-height: 1.7;
	color: var(--tw-ink);
}

.tw-entry-content ul,
.tw-entry-content ol {
	padding-left: 1.35rem;
	margin: 0;
}

.tw-entry-content li + li {
	margin-top: 0.45rem;
}

.tw-entry-content li::marker {
	color: var(--tw-forest);
}

.tw-entry-content figure {
	margin: 2.25rem 0;
}

.tw-entry-content figure img {
	width: 100%;
	height: auto;
	border-radius: var(--tw-radius);
}

.tw-entry-content figcaption {
	margin-top: 0.55rem;
	font-size: 0.85rem;
	color: var(--tw-muted);
	line-height: 1.45;
}

.tw-entry-content blockquote {
	margin: 2.25rem 0;
	padding: 0.35rem 0 0.35rem 1.35rem;
	border-left: 3px solid var(--tw-signal);
	font-family: var(--tw-serif);
	font-size: 1.3rem;
	line-height: 1.55;
	color: var(--tw-ink);
}

.tw-entry-content blockquote p {
	margin: 0;
}

.tw-entry-content table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.95rem;
	margin: 2rem 0;
	display: block;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}

.tw-entry-content thead,
.tw-entry-content tbody,
.tw-entry-content tr {
	width: 100%;
}

.tw-entry-content th,
.tw-entry-content td {
	border: 1px solid var(--tw-line);
	padding: 0.75rem 0.85rem;
	text-align: left;
	vertical-align: top;
}

.tw-entry-content th {
	background: var(--tw-soft);
	font-weight: 700;
	color: var(--tw-ink);
}

.tw-entry-content code {
	font-family: var(--tw-mono);
	font-size: 0.9em;
	background: var(--tw-soft);
	padding: 0.12em 0.35em;
	border-radius: 2px;
}

.tw-entry-content pre {
	background: var(--tw-ink);
	color: #e8edf2;
	padding: 1.15rem 1.25rem;
	overflow-x: auto;
	border-radius: var(--tw-radius);
	font-size: 0.9rem;
	line-height: 1.55;
}

.tw-entry-content pre code {
	background: transparent;
	padding: 0;
	color: inherit;
}

.tw-entry-content hr {
	border: 0;
	border-top: 1px solid var(--tw-line);
	margin: 2.5rem 0;
}

.tw-callout {
	padding: 1.35rem 1.4rem;
	border: 1px solid var(--tw-line);
	background: var(--tw-soft);
	margin: 2rem 0;
	border-radius: var(--tw-radius);
}

.tw-callout--safety {
	border-left: 3px solid var(--tw-danger);
	background: color-mix(in srgb, var(--tw-danger) 6%, var(--tw-surface));
}

.tw-share {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	flex-wrap: wrap;
	margin: 0.5rem 0 1rem;
}

.tw-share__label {
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--tw-muted);
}

.tw-share__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	gap: 0.4rem;
}

.tw-share__btn {
	display: grid;
	place-items: center;
	width: 2.25rem;
	height: 2.25rem;
	border: 1px solid var(--tw-line);
	border-radius: var(--tw-radius);
	text-decoration: none;
	color: var(--tw-ink);
	font-size: 0.75rem;
	font-weight: 700;
	background: var(--tw-surface);
}

.tw-share__btn:hover {
	border-color: var(--tw-forest);
	color: var(--tw-forest);
}

.tw-article__footer {
	margin-top: 3rem;
	padding-top: 2rem;
	border-top: 1px solid var(--tw-line);
	display: grid;
	gap: 1.75rem;
}

.tw-article__tags ul {
	list-style: none;
	margin: 0.5rem 0 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 0.45rem;
}

.tw-article__tags a {
	display: inline-block;
	padding: 0.35rem 0.65rem;
	border: 1px solid var(--tw-line);
	text-decoration: none;
	font-size: 0.8rem;
	color: var(--tw-ink-soft);
}

.tw-author-card {
	display: grid;
	grid-template-columns: 4.5rem 1fr;
	gap: 1rem;
	padding: 1.25rem;
	background: var(--tw-soft);
	border: 1px solid var(--tw-line);
}

.tw-author-card__avatar img {
	border-radius: 50%;
}

.tw-author-card__label {
	margin: 0;
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--tw-muted);
}

.tw-author-card__name {
	font-family: var(--tw-serif);
	font-size: 1.2rem;
	font-weight: 600;
	text-decoration: none;
	color: var(--tw-ink);
}

.tw-author-card__bio {
	margin: 0.35rem 0 0;
	color: var(--tw-muted);
	font-size: 0.95rem;
}

.tw-faq {
	margin-top: 3rem;
}

.tw-faq__item {
	border: 1px solid var(--tw-line);
	background: var(--tw-surface);
	margin-bottom: 0.5rem;
	padding: 0.85rem 1rem;
}

.tw-faq__item summary {
	cursor: pointer;
	font-weight: 600;
	font-family: var(--tw-serif);
	font-size: 1.1rem;
}

.tw-faq__answer {
	margin-top: 0.75rem;
	color: var(--tw-ink-soft);
}

.tw-post-nav {
	display: grid;
	gap: 1rem;
	margin: 3rem 0;
}

@media (min-width: 700px) {
	.tw-post-nav {
		grid-template-columns: 1fr 1fr;
	}
}

.tw-post-nav a {
	display: block;
	padding: 1.15rem;
	border: 1px solid var(--tw-line);
	text-decoration: none;
	background: var(--tw-surface);
	color: inherit;
	transition: border-color 0.2s var(--tw-ease);
}

.tw-post-nav a:hover {
	border-color: var(--tw-forest);
}

.tw-post-nav span {
	display: block;
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--tw-muted);
	margin-bottom: 0.35rem;
}

.tw-post-nav strong {
	font-family: var(--tw-serif);
	font-size: 1.1rem;
	font-weight: 600;
}

.tw-post-nav__next {
	text-align: right;
}

.tw-related {
	margin-top: 3rem;
}

/* --------------------------------------------------------------------------
   Archives / search / 404
   -------------------------------------------------------------------------- */
.tw-archive,
.tw-search-page,
.tw-page,
.tw-404 {
	padding-top: 2rem;
}

.tw-archive__eyebrow {
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--tw-signal);
	margin: 0 0 0.5rem;
}

.tw-archive__title,
.tw-search-page__title,
.tw-page-article__title,
.tw-404__title {
	font-size: clamp(2rem, 4vw, 3rem);
	max-width: 18ch;
}

.tw-archive__intro {
	color: var(--tw-muted);
	max-width: 40rem;
	font-size: 1.1rem;
}

.tw-archive__featured {
	margin: 2rem 0 2.5rem;
}

.tw-archive__featured .tw-card--featured {
	width: 100%;
}

.tw-search-results {
	display: grid;
	gap: 1rem;
}

.tw-search-results > .tw-card {
	width: 100%;
	max-width: none;
}

.tw-search-empty {
	padding: 2rem;
	border: 1px dashed var(--tw-line);
	background: var(--tw-surface);
}

.tw-search-empty__suggestions ul {
	list-style: none;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.tw-search-empty__suggestions a {
	display: inline-block;
	padding: 0.4rem 0.7rem;
	border: 1px solid var(--tw-line);
	text-decoration: none;
	font-size: 0.85rem;
}

.tw-pagination {
	margin-top: 2.5rem;
}

.tw-pagination__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
}

.tw-pagination a,
.tw-pagination span {
	display: inline-flex;
	min-width: 2.5rem;
	height: 2.5rem;
	align-items: center;
	justify-content: center;
	padding: 0 0.65rem;
	border: 1px solid var(--tw-line);
	text-decoration: none;
	color: var(--tw-ink);
	background: var(--tw-surface);
	font-weight: 600;
	font-size: 0.875rem;
}

.tw-pagination .current,
.tw-pagination__item.is-active span {
	background: var(--tw-forest);
	border-color: var(--tw-forest);
	color: #fff;
}

.tw-404 {
	text-align: center;
	padding-bottom: 4rem;
}

.tw-404__code {
	font-family: var(--tw-serif);
	font-size: 5rem;
	font-weight: 600;
	color: var(--tw-forest);
	margin: 1rem 0 0.25rem;
	line-height: 1;
}

.tw-404__title {
	margin-inline: auto;
}

.tw-404__text {
	color: var(--tw-muted);
	max-width: 32rem;
	margin-inline: auto;
}

.tw-404__actions {
	margin: 1.5rem 0;
}

.tw-404__search {
	max-width: 28rem;
	margin-inline: auto;
}

/* --------------------------------------------------------------------------
   Comments
   -------------------------------------------------------------------------- */
.tw-comments {
	margin-top: 3.5rem;
	padding-top: 2rem;
	border-top: 1px solid var(--tw-line);
}

.tw-comments__list {
	list-style: none;
	margin: 0 0 2rem;
	padding: 0;
}

.tw-comments__list .comment {
	padding: 1.25rem 0;
	border-bottom: 1px solid var(--tw-line);
}

.tw-comment-form label {
	display: block;
	font-size: 0.85rem;
	font-weight: 600;
	margin-bottom: 0.35rem;
}

.tw-comment-form input[type="text"],
.tw-comment-form input[type="email"],
.tw-comment-form input[type="url"],
.tw-comment-form textarea {
	width: 100%;
	padding: 0.75rem 0.9rem;
	border: 1px solid var(--tw-line);
	border-radius: var(--tw-radius);
	background: var(--tw-paper);
	color: var(--tw-ink);
	font: inherit;
	margin-bottom: 1rem;
}

.tw-comment-form .form-submit .submit {
	appearance: none;
	border: 0;
	background: var(--tw-forest);
	color: #fff;
	font-weight: 600;
	padding: 0.75rem 1.25rem;
	cursor: pointer;
	border-radius: var(--tw-radius);
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.tw-site-footer {
	background: var(--tw-ink);
	color: #d5dae0;
	margin-top: 2rem;
}

html[data-theme="dark"] .tw-site-footer {
	background: #05070a;
	border-top: 1px solid var(--tw-line);
}

.tw-site-footer a {
	color: #eef1f4;
	text-decoration: none;
}

.tw-site-footer a:hover {
	color: var(--tw-signal);
}

.tw-site-footer__main {
	padding: 3.5rem 0 2.5rem;
}

.tw-site-footer__grid {
	display: grid;
	gap: 2rem;
}

@media (min-width: 800px) {
	.tw-site-footer__grid {
		grid-template-columns: 1.3fr 1fr 1fr 1.2fr;
	}
}

.tw-site-footer .tw-brand__mark {
	color: #fff;
}

.tw-site-footer__blurb,
.tw-site-footer__newsletter p {
	color: #a8b0ba;
	font-size: 0.95rem;
}

.tw-site-footer__heading {
	font-size: 0.78rem;
	font-family: var(--tw-sans);
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: #fff;
	margin-bottom: 1rem;
}

.tw-site-footer__list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.tw-site-footer__list li {
	margin-bottom: 0.55rem;
}

.tw-site-footer__list a {
	font-size: 0.95rem;
	color: #c5ccd4;
}

.tw-social {
	list-style: none;
	margin: 1rem 0 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
}

.tw-social a {
	font-size: 0.85rem;
	font-weight: 600;
}

.tw-site-footer .tw-newsletter-form__input {
	background: #1a1f26;
	border-color: #2d3540;
	color: #fff;
}

.tw-site-footer .tw-btn--primary {
	background: var(--tw-signal);
}

.tw-site-footer .tw-newsletter-form__note {
	color: #8b949e;
}

.tw-site-footer__legal {
	border-top: 1px solid rgba(255, 255, 255, 0.1);
	padding: 1.25rem 0 1.75rem;
}

.tw-site-footer__legal-inner {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
	align-items: center;
	justify-content: space-between;
}

.tw-legal-nav__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem 1.15rem;
}

.tw-legal-nav a,
.tw-legal-nav span {
	font-size: 0.8rem;
	color: #a8b0ba;
}

.tw-copyright {
	margin: 0;
	font-size: 0.8rem;
	color: #8b949e;
}

.tw-back-top {
	appearance: none;
	border: 1px solid rgba(255, 255, 255, 0.2);
	background: transparent;
	color: #eef1f4;
	padding: 0.5rem 0.85rem;
	font-size: 0.8rem;
	font-weight: 600;
	cursor: pointer;
	border-radius: var(--tw-radius);
}

.tw-back-top:hover {
	border-color: var(--tw-signal);
	color: var(--tw-signal);
}

.tw-site-footer__widgets {
	display: grid;
	gap: 1.5rem;
	margin-top: 2.5rem;
	padding-top: 2rem;
	border-top: 1px solid rgba(255, 255, 255, 0.08);
}

@media (min-width: 700px) {
	.tw-site-footer__widgets {
		grid-template-columns: 1fr 1fr;
	}
}

.tw-author-archive {
	display: grid;
	grid-template-columns: 6rem 1fr;
	gap: 1.25rem;
	align-items: start;
}

.tw-author-archive img {
	border-radius: 50%;
}

body.tw-nav-open {
	overflow: hidden;
}

/* --------------------------------------------------------------------------
   Motion
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
	}
}

@keyframes tw-fade-up {
	from {
		opacity: 0;
		transform: translateY(12px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.tw-home-featured,
.tw-home-section,
.tw-home-newsletter,
.tw-home-about {
	animation: tw-fade-up 0.7s var(--tw-ease) both;
}

.tw-home-picks { animation-delay: 0.05s; }
.tw-home-latest { animation-delay: 0.1s; }
.tw-home-trending { animation-delay: 0.12s; }

/* Align WP block content */
.alignwide {
	max-width: var(--tw-container);
}

.alignfull {
	width: 100vw;
	margin-left: calc(50% - 50vw);
	max-width: 100vw;
}

.wp-block-image img {
	height: auto;
}

.tw-author-archive {
	display: grid;
	grid-template-columns: 6rem 1fr;
	gap: 1.25rem;
	align-items: start;
}

.tw-author-archive img {
	border-radius: 50%;
}

body.tw-nav-open {
	overflow: hidden;
}

.tw-search-page__count {
	color: var(--tw-muted);
}

.tw-search-page__form {
	max-width: 36rem;
	margin: 1.5rem 0 2rem;
}

.tw-search-empty {
	padding: 2rem;
	border: 1px dashed var(--tw-line);
	background: var(--tw-surface);
}

.tw-search-empty__suggestions ul {
	list-style: none;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.tw-search-empty__suggestions a {
	display: inline-block;
	padding: 0.4rem 0.7rem;
	border: 1px solid var(--tw-line);
	text-decoration: none;
	font-size: 0.85rem;
}

/* ========== Photography-first homepage & archives (v1.2) ========== */
body {
	background: var(--tw-paper);
}

.tw-btn--ghost {
	background: transparent;
	color: #fff;
	border: 1px solid rgba(255,255,255,0.55);
}
.tw-btn--ghost:hover {
	background: rgba(255,255,255,0.12);
	color: #fff;
}

.tw-home-masthead {
	position: relative;
	min-height: min(78vh, 44rem);
	display: grid;
	margin-bottom: 0;
	overflow: hidden;
}
.tw-home-masthead__media {
	margin: 0;
	grid-area: 1 / 1;
}
.tw-home-masthead__img,
.tw-home-masthead__media img {
	width: 100%;
	height: min(78vh, 44rem);
	object-fit: cover;
	display: block;
	max-width: none !important;
}
.tw-home-masthead__overlay {
	grid-area: 1 / 1;
	display: flex;
	align-items: flex-end;
	background: linear-gradient(180deg, rgba(14,17,22,0.15) 0%, rgba(14,17,22,0.72) 100%);
	z-index: 1;
}
.tw-home-masthead__content {
	padding: 3.5rem 0 3rem;
	color: #fff;
	max-width: 42rem;
}
.tw-home-masthead__brand {
	font-family: var(--tw-serif);
	font-size: 1.35rem;
	font-weight: 700;
	margin: 0 0 0.75rem;
	letter-spacing: -0.02em;
}
.tw-home-masthead__title {
	color: #fff;
	font-size: clamp(2rem, 5vw, 3.4rem);
	margin: 0 0 0.85rem;
	max-width: 16ch;
}
.tw-home-masthead__dek {
	color: rgba(255,255,255,0.88);
	font-size: 1.1rem;
	line-height: 1.55;
	margin: 0 0 1.5rem;
}
.tw-home-masthead__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
}

.tw-home-featured {
	padding: 2.5rem 0 1rem;
}
.tw-home-featured__media {
	display: block;
	position: relative;
	min-height: 16rem;
	overflow: hidden;
}
.tw-home-featured__media img {
	width: 100% !important;
	height: 100% !important;
	min-height: 18rem;
	object-fit: cover;
	max-width: none !important;
}

.tw-topic-card--photo,
.tw-maker-card--photo {
	padding: 0;
	min-height: 14rem;
	overflow: hidden;
	border: 0;
	display: grid;
	background: #111;
}
.tw-topic-card__media,
.tw-maker-card__media {
	grid-area: 1 / 1;
	display: block;
	min-height: 14rem;
}
.tw-topic-card__media img,
.tw-maker-card__media img {
	width: 100% !important;
	height: 100% !important;
	min-height: 14rem;
	object-fit: cover;
	max-width: none !important;
}
.tw-topic-card__shade,
.tw-maker-card__shade {
	grid-area: 1 / 1;
	background: linear-gradient(180deg, rgba(14,17,22,0.05) 20%, rgba(14,17,22,0.82) 100%);
	z-index: 1;
}
.tw-topic-card__copy,
.tw-maker-card__copy {
	grid-area: 1 / 1;
	z-index: 2;
	align-self: end;
	padding: 1.15rem 1.2rem 1.25rem;
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
}
.tw-topic-card--photo .tw-topic-card__name,
.tw-maker-card--photo .tw-maker-card__name {
	color: #fff;
}
.tw-topic-card--photo .tw-topic-card__blurb,
.tw-maker-card--photo .tw-maker-card__blurb {
	color: rgba(255,255,255,0.88);
}
.tw-topic-card--photo .tw-topic-card__count {
	z-index: 2;
	color: rgba(255,255,255,0.85);
}
.tw-topic-card--photo:hover,
.tw-maker-card--photo:hover {
	transform: translateY(-2px);
	background: #111;
}

.tw-photo-gallery {
	display: grid;
	gap: 1rem;
	grid-template-columns: 1fr;
}
@media (min-width: 700px) {
	.tw-photo-gallery {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}
@media (min-width: 1000px) {
	.tw-photo-gallery {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}
.tw-photo-gallery__item {
	margin: 0;
	background: var(--tw-surface);
	border: 1px solid var(--tw-line);
	overflow: hidden;
}
.tw-photo-gallery__item img {
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	max-width: none !important;
	height: auto;
}
.tw-photo-gallery__item figcaption {
	padding: 0.75rem 0.9rem 1rem;
	font-size: 0.88rem;
	color: var(--tw-muted);
	line-height: 1.45;
}

.tw-home-newsletter {
	margin: 2.5rem 0;
	padding: 0;
	background: transparent;
	color: inherit;
}
.tw-home-newsletter__grid {
	display: grid;
	gap: 0;
	background: var(--tw-forest);
	overflow: hidden;
	border: 1px solid var(--tw-line);
}
@media (min-width: 860px) {
	.tw-home-newsletter__grid {
		grid-template-columns: 1.1fr 1fr;
	}
}
.tw-home-newsletter__media {
	margin: 0;
	min-height: 16rem;
}
.tw-home-newsletter__media img {
	width: 100%;
	height: 100%;
	min-height: 16rem;
	object-fit: cover;
	max-width: none !important;
}
.tw-home-newsletter__panel {
	padding: 2rem 1.5rem;
	color: #f5f7f6;
	display: flex;
	flex-direction: column;
	justify-content: center;
}
.tw-home-newsletter__panel h2 {
	color: #fff;
	margin-bottom: 0.65rem;
}
.tw-home-newsletter__panel > p {
	color: rgba(255,255,255,0.82);
}
.tw-home-newsletter .tw-newsletter-form__note {
	color: rgba(255,255,255,0.7);
}
.tw-home-newsletter .tw-newsletter-form__input {
	background: #fff;
	color: #0e1116;
	border-color: transparent;
}
.tw-home-newsletter .tw-btn--primary {
	background: var(--tw-signal);
}

.tw-home-about__media figcaption {
	margin-top: 0.55rem;
	font-size: 0.85rem;
	color: var(--tw-muted);
}

.tw-archive-cover {
	position: relative;
	min-height: 18rem;
	display: grid;
	margin-bottom: 2rem;
	overflow: hidden;
}
.tw-archive-cover__media {
	margin: 0;
	grid-area: 1 / 1;
}
.tw-archive-cover__img,
.tw-archive-cover__media img {
	width: 100%;
	height: min(42vh, 22rem);
	object-fit: cover;
	max-width: none !important;
	display: block;
}
.tw-archive-cover__shade {
	grid-area: 1 / 1;
	background: linear-gradient(180deg, rgba(14,17,22,0.25) 0%, rgba(14,17,22,0.78) 100%);
	z-index: 1;
}
.tw-archive-cover__content {
	grid-area: 1 / 1;
	z-index: 2;
	align-self: end;
	padding: 2rem 0 2.25rem;
	color: #fff;
}
.tw-archive-cover .tw-archive__eyebrow {
	color: var(--tw-signal);
}
.tw-archive-cover .tw-archive__title,
.tw-archive-cover .tw-archive__intro,
.tw-archive-cover .tw-breadcrumbs,
.tw-archive-cover .tw-breadcrumbs a,
.tw-archive-cover .tw-breadcrumbs span {
	color: #fff;
}
.tw-archive-cover .tw-archive__intro {
	opacity: 0.9;
	max-width: 40rem;
}
.tw-archive-cover .tw-breadcrumbs__item:not(:last-child)::after {
	opacity: 0.7;
}

.tw-trending-list--photos .tw-trending-list__item {
	grid-template-columns: 6.5rem 3rem 1fr;
	align-items: center;
}
.tw-trending-list__thumb {
	display: block;
	aspect-ratio: 1;
	overflow: hidden;
	background: var(--tw-soft);
}
.tw-trending-list__thumb img {
	width: 100% !important;
	height: 100% !important;
	object-fit: cover;
	max-width: none !important;
}
.tw-trending-photos {
	display: grid;
	gap: 1rem;
	grid-template-columns: 1fr;
}
@media (min-width: 700px) {
	.tw-trending-photos {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}
.tw-trending-photos__item {
	margin: 0;
	overflow: hidden;
	border: 1px solid var(--tw-line);
}
.tw-trending-photos__item img {
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	max-width: none !important;
}

.tw-latest-banner {
	margin: 0;
	border: 1px solid var(--tw-line);
	overflow: hidden;
	background: var(--tw-surface);
}
.tw-latest-banner img {
	width: 100%;
	max-height: 22rem;
	object-fit: cover;
	max-width: none !important;
}
.tw-latest-banner figcaption {
	padding: 0.85rem 1rem 1.1rem;
	color: var(--tw-muted);
	font-size: 0.9rem;
}

.tw-rail-hero {
	display: block;
	position: relative;
	overflow: hidden;
	border: 1px solid var(--tw-line);
	min-height: 12rem;
	text-decoration: none;
}
.tw-rail-hero img {
	width: 100%;
	height: 14rem;
	object-fit: cover;
	max-width: none !important;
	display: block;
}
.tw-rail-hero__label {
	position: absolute;
	left: 1rem;
	bottom: 1rem;
	color: #fff;
	font-family: var(--tw-serif);
	font-size: 1.35rem;
	font-weight: 600;
	text-shadow: 0 1px 8px rgba(0,0,0,0.45);
}

.tw-photo-figure {
	margin: 2.25rem 0;
}
.tw-photo-figure img {
	width: 100%;
	height: auto;
	border-radius: var(--tw-radius);
}
.tw-photo-figure figcaption {
	margin-top: 0.55rem;
	font-size: 0.85rem;
	color: var(--tw-muted);
}

.tw-card--static {
	pointer-events: none;
}
.tw-html-sitemap ul {
	columns: 1;
}
@media (min-width: 700px) {
	.tw-html-sitemap ul {
		columns: 2;
	}
}

/* ===== FIX: related + prev/next full-width bands ===== */
.tw-article__layout--solo {
	grid-template-columns: minmax(0, 1fr) !important;
	justify-items: center;
}
.tw-article__layout--solo .tw-article__content-wrap {
	width: 100%;
	max-width: 42rem;
}

.tw-post-nav-band {
	margin: 2.5rem 0 0;
	padding: 2rem 0;
	border-top: 1px solid var(--tw-line);
	background: var(--tw-surface);
}
.tw-post-nav {
	display: grid !important;
	grid-template-columns: 1fr;
	gap: 1rem;
	margin: 0 !important;
	width: 100%;
}
@media (min-width: 800px) {
	.tw-post-nav {
		grid-template-columns: 1fr 1fr;
	}
}
.tw-post-nav__link {
	display: grid !important;
	grid-template-columns: 5.5rem minmax(0, 1fr);
	gap: 0.9rem;
	align-items: center;
	padding: 0.85rem;
	border: 1px solid var(--tw-line);
	background: var(--tw-paper);
	text-decoration: none;
	color: inherit;
	min-width: 0;
	width: 100%;
	box-sizing: border-box;
}
.tw-post-nav__next {
	grid-template-columns: minmax(0, 1fr) 5.5rem;
	text-align: right;
}
.tw-post-nav__link.is-empty {
	visibility: hidden;
	pointer-events: none;
	border: 0;
	background: transparent;
}
.tw-post-nav__thumb {
	display: block;
	width: 5.5rem;
	height: 5.5rem;
	overflow: hidden;
	background: var(--tw-soft);
	position: relative;
}
.tw-post-nav__thumb img {
	position: absolute;
	inset: 0;
	width: 100% !important;
	height: 100% !important;
	object-fit: cover;
	max-width: none !important;
}
.tw-post-nav__label {
	display: block;
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--tw-muted);
	margin-bottom: 0.3rem;
}
.tw-post-nav__title {
	display: block;
	font-family: var(--tw-serif);
	font-size: 1.05rem;
	font-weight: 600;
	line-height: 1.3;
	color: var(--tw-ink);
}
.tw-post-nav__link:hover {
	border-color: var(--tw-forest);
}
.tw-post-nav__link:hover .tw-post-nav__title {
	color: var(--tw-forest);
}

.tw-related-band {
	margin: 0 0 3rem;
	padding: 2.5rem 0 1rem;
	background: var(--tw-paper);
	border-top: 1px solid var(--tw-line);
}
.tw-related-grid {
	display: grid !important;
	grid-template-columns: 1fr;
	gap: 1.5rem;
	width: 100%;
	align-items: stretch;
}
@media (min-width: 640px) {
	.tw-related-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}
@media (min-width: 1000px) {
	.tw-related-grid {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}
.tw-related-grid > .tw-card {
	width: 100% !important;
	max-width: none !important;
	float: none !important;
	margin: 0 !important;
	height: 100%;
	min-width: 0;
}

/* Bulletproof card media */
.tw-card__media {
	position: relative;
	aspect-ratio: 3 / 2;
	overflow: hidden;
	background: #1a2420;
	display: block;
	width: 100%;
	flex: 0 0 auto;
}
.tw-card__media img,
.tw-card__img {
	position: absolute !important;
	inset: 0 !important;
	width: 100% !important;
	height: 100% !important;
	max-width: none !important;
	object-fit: cover !important;
	display: block !important;
}
