/* Site header, 2026-09-28 redesign. Markup: template-parts/header/.
   Behaviour: assets/js/header.js. Loaded after every other stylesheet. */

.th,
.th-sheet {
	--th-ink: var(--night-2);
	--th-ink-2: #3d3d42;
	--th-muted: #5c5c60;
	--th-faint: #8a8a8f;
	--th-line: var(--border-dark);
	--th-line-2: var(--border-dark-2);
	--th-sunk: var(--surface-3);
	--th-warm: var(--surface-2);
	--th-olive: var(--acc-deep);
	--th-lime: var(--acc);
	--th-logo-ratio: 3.8337;
	color: var(--th-ink);
	font-family: "Google Sans", "Helvetica Neue", Arial, sans-serif;
	-webkit-font-smoothing: antialiased;
}

.th a,
.th-sheet a {
	color: inherit;
	text-decoration: none;
}

.th ul,
.th-sheet ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

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

/* The header element keeps its old job (fixed, measured and hidden on
   scroll by pages.js); the white bar is painted by .th inside it. */
.ts-home-shell.th-shell {
	border-bottom: 0 !important;
	color: var(--night-2);
}

/* The bar is solid now, so content gets a little air below its border.
   Same selectors as pages.css, later in the cascade. */
.sp-page,
body.home .sdp {
	padding-top: calc(var(--ts-shell-h, 77px) + clamp(12px, 1.5vw, 20px)) !important;
}

.th {
	position: relative;
	background: var(--surface);
	border-bottom: 1px solid var(--th-line);
}

.th a:focus-visible,
.th button:focus-visible,
.th-sheet a:focus-visible,
.th-sheet button:focus-visible,
.th-sheet summary:focus-visible {
	outline: 2px solid var(--th-ink);
	outline-offset: 2px;
}

.th input:focus-visible,
.th-sheet input:focus-visible {
	outline: none;
}

/* ---------- Bar ---------- */

.th-bar {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
	align-items: center;
	column-gap: 32px;
	height: 76px;
	max-width: 1540px;
	margin: 0 auto;
	padding: 0 var(--pad, 24px);
	box-sizing: border-box;
}

.th-icon-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 0;
	border-radius: 12px;
	background: transparent;
	color: var(--th-ink);
	cursor: pointer;
	transition: background-color 0.18s ease;
}

.th-icon-btn:hover {
	background: var(--th-sunk);
}

.th-menu-btn,
.th-search-btn {
	display: none;
}

.th-nav {
	align-self: stretch;
	justify-self: start;
	min-width: 0;
	margin-left: -14px;
}

.th-nav-list {
	display: flex;
	align-items: stretch;
	gap: 2px;
	height: 100%;
}

.th-nav-li {
	display: flex;
}

.th .th-nav-item {
	position: relative;
	display: flex;
	align-items: center;
	padding: 0 14px;
	font-size: var(--fs-body-sm);
	font-weight: 500;
	line-height: 1;
	white-space: nowrap;
	color: var(--th-ink-2);
	transition: color 0.18s ease;
}

.th .th-nav-item:hover,
.th .th-nav-item.is-open {
	color: var(--th-ink);
}

.th .th-nav-item[aria-current="page"] {
	color: var(--th-ink);
	font-weight: 600;
}

.th-nav-item[aria-current="page"]::after {
	content: "";
	position: absolute;
	left: 14px;
	right: 14px;
	bottom: 0;
	height: 3px;
	border-radius: 3px 3px 0 0;
	background: var(--th-olive);
}

.th-nav-label {
	display: flex;
	align-items: center;
	gap: 6px;
	height: 36px;
	margin: 0 -10px;
	padding: 0 10px;
	border-radius: 999px;
	transition: background-color 0.18s ease;
}

.th-nav-item.is-open .th-nav-label {
	background: var(--th-sunk);
}

.th-chev {
	display: flex;
	color: var(--th-faint);
	transition: transform 0.2s ease, color 0.18s ease;
}

.th-nav-item.is-open .th-chev {
	color: var(--th-ink);
	transform: rotate(180deg);
}

.th-logo {
	display: flex;
	align-items: center;
	justify-self: center;
	color: var(--th-ink);
}

.th-logo-svg {
	display: block;
	height: 34px;
	width: calc(34px * var(--th-logo-ratio));
}

.th-actions {
	display: flex;
	align-items: center;
	justify-self: end;
	gap: 12px;
	min-width: 0;
}

.th-search {
	position: relative;
	display: flex;
	align-items: center;
	gap: 8px;
	width: 340px;
	height: 40px;
	margin: 0;
	padding: 0 8px 0 14px;
	box-sizing: border-box;
	border: 1px solid transparent;
	border-radius: 999px;
	background: var(--th-sunk);
	color: var(--th-muted);
	transition: background-color 0.18s ease, border-color 0.18s ease;
}

.th-search:focus-within {
	background: var(--surface);
	border-color: var(--th-ink);
}

.th-search > svg {
	flex: 0 0 auto;
}

.th-search-input,
.th-field input[type="search"] {
	flex: 1 1 auto;
	min-width: 0;
	height: 100%;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	box-shadow: none;
	font: inherit;
	color: var(--th-ink);
	outline: none;
	-webkit-appearance: none;
	appearance: none;
}

.th-search-input {
	font-size: var(--fs-body-sm);
}

.th-search-input::placeholder,
.th-field input[type="search"]::placeholder {
	color: var(--th-muted);
	opacity: 1;
}

.th-search-input::-webkit-search-cancel-button,
.th-field input[type="search"]::-webkit-search-cancel-button {
	-webkit-appearance: none;
	appearance: none;
}

.th-kbd {
	flex: 0 0 auto;
	padding: 4px 7px;
	border: 1px solid var(--th-line-2);
	border-radius: 6px;
	background: var(--surface);
	font-family: var(--mono);
	font-size: var(--fs-label-sm);
	line-height: 1;
	color: var(--th-muted);
}

.th-search:focus-within .th-kbd {
	visibility: hidden;
}

.th-search .ts-typeahead {
	top: calc(100% + 10px);
	left: auto;
	right: -8px;
	width: 560px;
	max-height: min(640px, calc(100vh - var(--ts-shell-h, 77px) - 24px));
}

/* ---------- Menu cards ---------- */

.th-scrim {
	position: absolute;
	top: 100%;
	left: 0;
	right: 0;
	height: 100vh;
	background: rgba(12, 12, 14, 0.32);
}

.th-mega {
	position: absolute;
	top: 100%;
	left: 0;
	right: 0;
	padding: 8px var(--pad, 24px) 0;
	box-sizing: border-box;
	pointer-events: none;
}

.th-scrim[hidden],
.th-mega[hidden],
.th-sheet[hidden] {
	display: none !important;
}

.th-mega-card {
	max-width: 1444px;
	max-height: calc(100vh - var(--ts-shell-h, 77px) - 24px);
	margin: 0 auto;
	box-sizing: border-box;
	overflow-y: auto;
	overscroll-behavior: contain;
	background: var(--surface);
	border: 1px solid rgba(0, 0, 0, 0.06);
	border-radius: 20px;
	box-shadow: 0 30px 80px rgba(12, 12, 14, 0.18), 0 2px 8px rgba(12, 12, 14, 0.06);
	pointer-events: auto;
	animation: th-drop 0.18s ease-out;
}

@keyframes th-drop {
	from {
		opacity: 0;
		transform: translateY(-6px);
	}
	to {
		opacity: 1;
		transform: none;
	}
}

.th-mega-card--split {
	display: grid;
	grid-template-columns: 272px minmax(0, 1fr);
	gap: 40px;
	padding: 28px 32px 32px;
}

.th-mega-side {
	display: flex;
	flex-direction: column;
	gap: 16px;
	min-width: 0;
}

.th-kicker {
	font-family: var(--mono);
	font-size: var(--fs-label-sm);
	font-weight: 500;
	line-height: 1.4;
	letter-spacing: var(--ls-label, 0.14em);
	text-transform: uppercase;
	color: var(--th-olive);
}

.th-mega-title {
	margin: 0;
	font-family: var(--display);
	font-size: var(--fs-h2);
	font-weight: 700;
	line-height: 1.08;
	letter-spacing: var(--ls-heading, -0.02em);
	color: var(--th-ink);
	text-wrap: balance;
}

.th-mega-dek {
	margin: 0;
	font-size: var(--fs-body-sm);
	line-height: 1.5;
	color: var(--th-muted);
}

.th-quick {
	border-top: 1px solid var(--th-line);
}

.th-quick-link {
	display: flex;
	align-items: center;
	gap: 12px;
	min-height: 46px;
	border-bottom: 1px solid var(--th-line);
	font-size: var(--fs-body-sm);
	font-weight: 500;
	color: var(--th-ink);
}

.th-quick-link > svg {
	flex: 0 0 auto;
}

.th-quick-label {
	flex: 1 1 auto;
}

.th-quick-link:hover .th-quick-label {
	text-decoration: underline;
	text-underline-offset: 3px;
}

.th-quick-go {
	display: flex;
	color: var(--th-faint);
}

.th-count {
	flex: 0 0 auto;
	padding: 2px 8px;
	border-radius: 999px;
	background: var(--th-sunk);
	font-family: var(--mono);
	font-size: var(--fs-label-sm);
	font-weight: 500;
	line-height: 1.4;
	color: var(--th-ink-2);
}

.th-count--hot {
	background: var(--th-lime);
	font-weight: 600;
	color: var(--th-ink);
}

.th .th-cta {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 46px;
	padding: 0 18px;
	border-radius: 999px;
	background: var(--th-ink);
	font-size: var(--fs-body-sm);
	font-weight: 600;
	color: var(--surface);
	transition: background-color 0.18s ease;
}

.th .th-cta:hover {
	background: #2a2a30;
}

.th-mega-main {
	display: flex;
	flex-direction: column;
	gap: 14px;
	min-width: 0;
}

.th-sec-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}

.th-sec-head:not(:first-child) {
	margin-top: 8px;
}

.th .th-sec-link {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	font-size: var(--fs-body-sm);
	font-weight: 500;
	color: var(--th-olive);
}

.th .th-sec-link:hover {
	text-decoration: underline;
	text-underline-offset: 3px;
}

/* Brand logo tiles */
.th-brands {
	display: grid;
	grid-template-columns: repeat(6, minmax(0, 1fr));
	gap: 10px;
}

.th-brand {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 8px;
	height: 96px;
	padding: 0 8px;
	box-sizing: border-box;
	border: 1px solid var(--th-line);
	border-radius: 14px;
	background: var(--surface);
	transition: border-color 0.18s ease, background-color 0.18s ease;
}

.th-brand:hover {
	border-color: var(--th-line-2);
	background: var(--th-warm);
}

.th-brand-logo {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	max-width: 104px;
	height: 32px;
}

.th-brand-logo img {
	display: block;
	width: auto;
	height: auto;
	max-width: 100%;
	max-height: 32px;
	object-fit: contain;
}

.th-brand-initial {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background: var(--th-sunk);
	font-weight: 700;
	color: var(--th-ink-2);
}

.th-brand-text {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 1px;
	max-width: 100%;
	min-width: 0;
}

.th-brand-name {
	max-width: 100%;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	font-size: var(--fs-label);
	font-weight: 600;
	color: var(--th-ink);
}

.th-brand-count,
.th-body-count {
	font-size: var(--fs-label-sm);
	color: var(--th-muted);
}

/* Body style tiles */
.th-bodies {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(92px, 1fr));
	gap: 10px;
}

.th-body {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 4px;
	height: 88px;
	padding: 0 4px;
	box-sizing: border-box;
	border-radius: 14px;
	background: var(--th-warm);
	color: var(--th-ink);
	transition: background-color 0.18s ease;
}

.th-body:hover {
	background: var(--th-sunk);
}

.th-body > svg {
	flex: 0 0 auto;
}

.th-body-label {
	font-size: var(--fs-label);
	font-weight: 500;
	line-height: 1.2;
	text-align: center;
}

/* Popular lists (2026-10-01): one quiet row of the biggest list pages */
.th-lists {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.th-list {
	display: inline-flex;
	align-items: center;
	min-height: 32px;
	padding: 0 12px;
	box-sizing: border-box;
	border-radius: 999px;
	background: var(--th-warm);
	font-size: var(--fs-label);
	font-weight: 500;
	color: var(--th-ink);
	white-space: nowrap;
	transition: background-color 0.18s ease;
}

.th-list:hover {
	background: var(--th-sunk);
}

.th-list:focus-visible {
	outline: 2px solid var(--th-olive);
	outline-offset: 2px;
}

.th-row-kicker {
	margin-top: 16px;
}

/* Launch cards */
.th-cards {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 12px;
}

.th-card,
.th-story {
	display: flex;
	flex-direction: column;
	height: 100%;
	overflow: hidden;
	box-sizing: border-box;
	border: 1px solid var(--th-line);
	border-radius: 14px;
	background: var(--surface);
	transition: border-color 0.18s ease;
}

.th-card:hover,
.th-story:hover {
	border-color: var(--th-line-2);
}

.th-card-media {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	height: 104px;
	background: var(--th-warm);
}

.th-card-media > img {
	display: block;
	width: auto;
	height: auto;
	max-width: 88%;
	max-height: 86px;
	object-fit: contain;
}

.th-card-none {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	font-size: var(--fs-label-sm);
	color: var(--th-muted);
}

.th-card-none img {
	display: block;
	width: auto;
	height: auto;
	max-width: 96px;
	max-height: 26px;
	object-fit: contain;
	opacity: 0.55;
}

.th-card-badge {
	position: absolute;
	top: 8px;
	left: 8px;
	padding: 3px 8px;
	border-radius: 999px;
	background: var(--th-lime);
	font-family: var(--mono);
	font-size: var(--fs-label-sm);
	font-weight: 600;
	line-height: 1.3;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--th-ink);
}

.th-card-badge--soon {
	border: 1px solid var(--th-line-2);
	background: var(--surface);
}

.th-card-text,
.th-story-text {
	display: flex;
	flex-direction: column;
	gap: 3px;
	min-width: 0;
	padding: 10px 12px 12px;
}

.th-card-name {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	font-size: var(--fs-body-sm);
	font-weight: 600;
	color: var(--th-ink);
}

.th-card:hover .th-card-name,
.th-story:hover .th-story-title {
	text-decoration: underline;
	text-underline-offset: 3px;
}

.th-card-price {
	font-size: var(--fs-label);
	color: var(--th-ink-2);
}

.th-card-meta,
.th-story-date {
	font-family: var(--mono);
	font-size: var(--fs-label-sm);
	color: var(--th-muted);
}

/* Compare pairs */
.th-pairs {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 10px;
}

.th-pair {
	display: flex;
	flex-direction: column;
	gap: 10px;
	height: 100%;
	padding: 10px 10px 12px;
	box-sizing: border-box;
	border: 1px solid var(--th-line);
	border-radius: 14px;
	background: var(--surface);
	transition: border-color 0.18s ease, background-color 0.18s ease;
}

.th-pair:hover,
.th-tool:hover {
	border-color: var(--th-line-2);
	background: var(--th-warm);
}

.th-tool-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	width: 36px;
	height: 36px;
	border-radius: 10px;
	background: var(--th-warm);
	color: var(--th-ink);
}

.th-tool:hover .th-tool-icon {
	background: var(--surface);
}

/* Two small photos, or the maker logo while a model has none. */
.th-pair-imgs {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 4px;
}

.th-pair-imgs > span {
	position: relative;
	aspect-ratio: 16 / 10;
	overflow: hidden;
	border-radius: 8px;
	background: var(--th-warm);
}

.th-pair:hover .th-pair-imgs > span {
	background: var(--surface);
}

.th-pair-imgs img {
	position: absolute;
	left: 6%;
	top: 8%;
	width: 88%;
	height: 84%;
	object-fit: contain;
}

.th-pair-imgs img.th-pair-logo {
	left: 28%;
	top: 26%;
	width: 44%;
	height: 48%;
}

.th-pair-text {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
	line-height: 1.25;
}

.th-pair-a {
	font-size: var(--fs-body-sm);
	font-weight: 600;
	color: var(--th-ink);
}

.th-pair-b {
	font-size: var(--fs-body-sm);
	color: var(--th-ink-2);
}

/* Calculators */
.th-tools {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 12px;
}

.th-tool {
	display: flex;
	flex-direction: column;
	gap: 6px;
	height: 100%;
	padding: 18px;
	box-sizing: border-box;
	border: 1px solid var(--th-line);
	border-radius: 14px;
	background: var(--surface);
	transition: border-color 0.18s ease, background-color 0.18s ease;
}

.th-tool-icon {
	width: 44px;
	height: 44px;
	margin-bottom: 6px;
	border-radius: 12px;
}

.th-tool-name {
	font-size: var(--fs-body);
	font-weight: 600;
	color: var(--th-ink);
}

.th-tool-dek {
	font-size: var(--fs-body-sm);
	line-height: 1.45;
	color: var(--th-muted);
}

/* Blog */
.th-cats {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	column-gap: 24px;
}

.th-cat {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	min-height: 44px;
	border-bottom: 1px solid var(--th-line);
	font-size: var(--fs-body-sm);
	font-weight: 500;
	color: var(--th-ink);
}

.th-cat:hover > span:first-child {
	text-decoration: underline;
	text-underline-offset: 3px;
}

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

.th-story-media {
	display: block;
	aspect-ratio: 16 / 9;
	background: var(--th-warm);
}

.th-story-media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.th-story-cat {
	font-family: var(--mono);
	font-size: var(--fs-label-sm);
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--th-olive);
}

.th-story-title {
	display: -webkit-box;
	overflow: hidden;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	font-size: var(--fs-body-sm);
	font-weight: 600;
	line-height: 1.3;
	color: var(--th-ink);
}

/* ---------- Narrow desktops: no chevrons, search as an icon ---------- */

@media (max-width: 1239px) {
	.th-bar {
		column-gap: 24px;
	}

	.th-nav {
		margin-left: -12px;
	}

	.th .th-nav-item {
		padding: 0 12px;
	}

	.th-nav-item[aria-current="page"]::after {
		left: 12px;
		right: 12px;
	}

	.th-chev,
	.th-search {
		display: none;
	}

	.th-search-btn {
		display: flex;
	}

	.th-actions {
		gap: 8px;
	}

	.th-brands {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}

	.th-cards,
	.th-pairs {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.th-cats {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.th-mega-card--split {
		grid-template-columns: 240px minmax(0, 1fr);
		gap: 28px;
		padding: 24px;
	}
}

/* ---------- Phones and tablets ---------- */

@media (max-width: 1023px) {
	.th-bar {
		grid-template-columns: 44px minmax(0, 1fr) 44px;
		column-gap: 8px;
		height: 56px;
		padding: 0 8px;
	}

	.th-menu-btn,
	.th-search-btn {
		display: flex;
	}

	.th-nav,
	.th-search {
		display: none;
	}

	.th-actions {
		gap: 0;
	}

	.th-logo-svg {
		height: 26px;
		width: calc(26px * var(--th-logo-ratio));
	}

	.th-sheet--search .th-field .ts-typeahead {
		right: auto;
		width: calc(100vw - 34px);
	}

	.th-mega,
	.th-scrim {
		display: none !important;
	}
}

/* ---------- Sheets: phone menu and search ---------- */

body.sdp-locked {
	overflow: hidden;
}

.th-sheet {
	position: fixed;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	z-index: 1000;
	display: flex;
	flex-direction: column;
	overflow-y: auto;
	overscroll-behavior: contain;
	-webkit-overflow-scrolling: touch;
	background: var(--surface);
	animation: th-fade 0.16s ease-out;
}

.admin-bar .th-sheet {
	top: 32px;
}

@media (max-width: 782px) {
	.admin-bar .th-sheet {
		top: 46px;
	}
}

@keyframes th-fade {
	from {
		opacity: 0;
	}
	to {
		opacity: 1;
	}
}

.th-sheet-bar {
	position: sticky;
	top: 0;
	z-index: 3;
	display: grid;
	grid-template-columns: 44px minmax(0, 1fr) 44px;
	align-items: center;
	flex: 0 0 auto;
	height: 56px;
	padding: 0 8px;
	background: var(--surface);
	border-bottom: 1px solid var(--th-line);
}

.th-sheet-bar .th-logo-svg {
	height: 26px;
	width: calc(26px * var(--th-logo-ratio));
}

.th-sheet-body,
.th-search-panel {
	display: flex;
	flex-direction: column;
	width: 100%;
	max-width: 600px;
	margin: 0 auto;
	padding-bottom: 32px;
	box-sizing: border-box;
}

.th-field {
	position: relative;
	display: flex;
	align-items: center;
	gap: 10px;
	height: 48px;
	margin: 12px 16px 8px;
	padding: 0 16px;
	box-sizing: border-box;
	border: 1px solid transparent;
	border-radius: 999px;
	background: var(--th-sunk);
	color: var(--th-muted);
	transition: background-color 0.18s ease, border-color 0.18s ease;
}

.th-field:focus-within {
	border-color: var(--th-ink);
	background: var(--surface);
}

.th-field > svg {
	flex: 0 0 auto;
}

.th-field input[type="search"] {
	font-size: max(16px, var(--fs-body));
}

.th-field .ts-typeahead {
	top: calc(100% + 8px);
	max-height: min(600px, 72vh);
}

.th-rows {
	margin-top: 4px !important;
}

.th-rows > li {
	border-bottom: 1px solid var(--th-line);
}

.th-row-head {
	display: flex;
	align-items: center;
	gap: 14px;
	min-height: 64px;
	padding: 0 16px;
	cursor: pointer;
	list-style: none;
	-webkit-tap-highlight-color: transparent;
}

.th-row-head::-webkit-details-marker {
	display: none;
}

.th-row-head::marker {
	content: "";
}

.th-row-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	width: 40px;
	height: 40px;
	border-radius: 12px;
	background: var(--th-warm);
	color: var(--th-ink);
}

.th-row-text {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}

.th-row-label {
	font-size: max(16px, var(--fs-body));
	font-weight: 600;
	color: var(--th-ink);
}

.th-row-meta {
	font-size: var(--fs-body-sm);
	color: var(--th-muted);
}

.th-row-chev {
	display: flex;
	color: var(--th-faint);
	transition: transform 0.2s ease;
}

.th-row[open] .th-row-chev {
	transform: rotate(90deg);
}

.th-row-body {
	padding: 0 16px 16px 70px;
}

.th-row-links a {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	min-height: 44px;
	font-size: var(--fs-body-sm);
	font-weight: 500;
	color: var(--th-ink-2);
}

.th-row-links a:hover {
	color: var(--th-ink);
}

.th-row-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 8px;
}

.th-sheet-block {
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 20px 16px 0;
}

.th-pills {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.th-sheet .th-pill {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 40px;
	padding: 0 14px;
	box-sizing: border-box;
	border: 1px solid var(--th-line-2);
	border-radius: 999px;
	background: var(--surface);
	font-size: var(--fs-body-sm);
	font-weight: 500;
	color: var(--th-ink);
	transition: border-color 0.18s ease;
}

.th-sheet .th-pill:hover {
	border-color: var(--th-ink);
}

.th-company {
	display: flex;
	flex-wrap: wrap;
	column-gap: 20px;
	padding: 12px 16px 0;
}

.th-company a {
	display: flex;
	align-items: center;
	min-height: 44px;
	font-size: var(--fs-body-sm);
	color: var(--th-ink-2);
}

/* Phone menu: the social links, a plain row at the end (the newsletter card
   that held them was removed 2026-09-28). */
.th-follow {
	margin: 16px 16px 0;
	padding-top: 12px;
	border-top: 1px solid var(--th-line);
}

.th-brief-social {
	display: flex;
	gap: 4px;
}

.th-brief-social a {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border-radius: 12px;
	color: var(--th-ink);
}

.th-search-row {
	display: flex;
	align-items: center;
	gap: 4px;
	padding: 10px 8px 4px 16px;
}

.th-search-row .th-field {
	flex: 1 1 auto;
	min-width: 0;
	margin: 0;
}

.th-sheet-cancel {
	flex: 0 0 auto;
	height: 44px;
	padding: 0 12px;
	border: 0;
	background: transparent;
	font: inherit;
	font-size: var(--fs-body-sm);
	font-weight: 500;
	color: var(--th-ink);
	cursor: pointer;
}

/* On a desktop the search sheet is a panel under the header, over a scrim. */
@media (min-width: 1024px) {
	.th-sheet--search {
		padding: calc(var(--ts-shell-h, 77px) + 8px) 24px 24px;
		box-sizing: border-box;
		background: rgba(12, 12, 14, 0.32);
	}

	.admin-bar .th-sheet--search {
		padding-top: calc(var(--ts-shell-h, 96px) - 24px);
	}

	.th-sheet--search .th-search-panel {
		max-width: 680px;
		padding: 16px 16px 20px;
		border-radius: 20px;
		background: var(--surface);
		box-shadow: 0 30px 80px rgba(12, 12, 14, 0.18), 0 2px 8px rgba(12, 12, 14, 0.06);
	}

	.th-sheet--search .th-search-row {
		padding: 0;
	}
}

@media (prefers-reduced-motion: reduce) {
	.th-mega-card,
	.th-sheet {
		animation: none;
	}
}

@media print {
	.th-sheet {
		display: none !important;
	}
}
