/*
 * ByteWise Picks — layout and components. Tokens come from theme.json
 * (--wp--preset--*). BUILD-SPEC §4: page 1240px, reading 740px, gaps 24px,
 * radius 14px, header 80/68px, heroes 320/260 (home) and 200/180 (inner).
 */

:root {
	--bwp-page: 1240px;
	--bwp-gutter: 16px;
	--bwp-gap: 24px;
	--bwp-radius: var(--wp--custom--radius, 14px);
	--bwp-shadow: var(--wp--custom--shadow);
	--bwp-navy: var(--wp--preset--color--navy);
	--bwp-ink: var(--wp--preset--color--ink);
	--bwp-blue: var(--wp--preset--color--blue);
	--bwp-cyan: var(--wp--preset--color--cyan);
	--bwp-muted: var(--wp--preset--color--muted);
	--bwp-border: var(--wp--preset--color--border);
	--bwp-surface: var(--wp--preset--color--surface);
}

@media (min-width: 782px) {
	:root {
		--bwp-gutter: 24px;
	}
}

/* Accessibility ---------------------------------------------------------- */

.screen-reader-text {
	border: 0;
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	width: 1px;
	word-wrap: normal !important;
}

:where(a, button, input, select, summary, [tabindex]):focus-visible {
	outline: 3px solid var(--bwp-blue);
	outline-offset: 2px;
	border-radius: 4px;
}

.bwp-hero :where(a, button):focus-visible,
.bwp-panel--dark :where(a, button):focus-visible,
.bwp-footer :where(a, button):focus-visible {
	outline-color: var(--bwp-cyan);
}

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		transition-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}
}

body {
	overflow-x: clip;
}

img {
	max-width: 100%;
	height: auto;
}

/* Shared containers ---------------------------------------------------- */

.bwp-header__inner,
.bwp-hero__inner,
.bwp-section,
.bwp-footer__inner,
.bwp-footer__legal,
.bwp-disclosure-strip {
	box-sizing: border-box;
	margin-inline: auto;
	max-width: var(--bwp-page);
	padding-inline: var(--bwp-gutter);
	width: 100%;
}

.bwp-main > * {
	margin-block: 0;
}

/* The hero sits directly under the header, with no block gap between. */
.wp-site-blocks > .bwp-main {
	margin-block-start: 0;
}

.bwp-section {
	padding-block: 32px;
}

@media (min-width: 782px) {
	.bwp-section {
		padding-block: 48px;
	}
}

.bwp-section > * + * {
	margin-block-start: var(--bwp-gap);
}

.bwp-section__head > * {
	margin-block: 0 8px;
}

.bwp-section__head p {
	color: var(--bwp-muted);
}

.bwp-eyebrow {
	color: var(--bwp-cyan);
	font-size: 0.75rem;
	font-weight: 750;
	letter-spacing: 0.15em;
	margin: 0;
	text-transform: uppercase;
}

.bwp-eyebrow--blue {
	color: var(--bwp-blue);
}

/* Header ---------------------------------------------------------------- */

.bwp-site-header {
	background: var(--bwp-surface);
	border-bottom: 1px solid var(--bwp-border);
}

.bwp-header__inner {
	align-items: center;
	gap: var(--bwp-gap);
	min-height: 68px;
}

@media (min-width: 782px) {
	.bwp-header__inner {
		min-height: 80px;
	}
}

.bwp-logo {
	display: block;
	flex: 0 1 auto;
	line-height: 0;
}

.bwp-logo img {
	width: clamp(200px, 55vw, 230px);
}

@media (min-width: 782px) {
	.bwp-logo img {
		width: 280px;
	}
}

.bwp-nav {
	font-size: 0.875rem;
	font-weight: 650;
	gap: 22px;
}

.bwp-nav a {
	color: var(--bwp-ink);
	text-decoration: none;
}

.bwp-nav a:hover {
	color: var(--bwp-blue);
}

.bwp-nav .wp-block-navigation__responsive-container-open,
.bwp-nav .wp-block-navigation__responsive-container-close {
	min-height: 44px;
	min-width: 44px;
	justify-content: center;
}

.bwp-nav .wp-block-navigation-item__content {
	white-space: nowrap;
}

/* Core switches to the menu dialog below 600px; the header needs it up to
   1023px (logo + four links + search do not fit on a tablet). */
@media (min-width: 600px) and (max-width: 1023px) {
	.bwp-nav .wp-block-navigation__responsive-container-open:not(.always-shown) {
		display: flex;
	}

	.bwp-nav .wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) {
		display: none;
	}
}

.bwp-header-search .wp-block-search__inside-wrapper {
	border: 1px solid #A9B6CB;
	border-radius: 8px;
	padding: 2px;
}

.bwp-header-search .wp-block-search__input {
	border: 0;
	font-size: 0.875rem;
	min-height: 40px;
	min-width: 12rem;
	padding-inline: 10px;
}

.bwp-header-search .wp-block-search__button {
	border-radius: 6px;
	margin-inline-start: 2px;
	min-height: 40px;
	min-width: 44px;
}

/* Hero ------------------------------------------------------------------- */

.bwp-hero {
	--bwp-hero-min: 180px;
	align-items: center;
	background-color: var(--bwp-navy);
	box-sizing: border-box;
	color: var(--bwp-surface);
	display: flex;
	isolation: isolate;
	min-height: var(--bwp-hero-min);
	overflow: hidden;
	padding-block: 28px;
	position: relative;
	width: 100%;
}

.bwp-hero--home {
	--bwp-hero-min: 260px;
}

@media (min-width: 782px) {
	.bwp-hero {
		--bwp-hero-min: 200px;
		padding-block: 36px;
	}

	.bwp-hero--home {
		--bwp-hero-min: 320px;
		padding-block: 42px;
	}
}

.bwp-hero__image {
	height: 100%;
	inset: 0;
	object-fit: cover;
	object-position: var(--bwp-hero-focal, 75% 50%);
	position: absolute;
	width: 100%;
	z-index: -2;
}

/* Overlay keeps live white text above 4.5:1 on any crop. */
.bwp-hero::before {
	background: linear-gradient(90deg, rgba(4, 14, 32, 0.92) 0%, rgba(4, 14, 32, 0.72) 55%, rgba(4, 14, 32, 0.35) 100%);
	content: "";
	inset: 0;
	position: absolute;
	z-index: -1;
}

@media (max-width: 781px) {
	.bwp-hero::before {
		background: rgba(4, 14, 32, 0.8);
	}
}

.bwp-hero__inner > * {
	max-width: 640px;
}

.bwp-hero__inner > * + * {
	margin-block-start: 12px;
}

.bwp-hero h1 {
	color: var(--bwp-surface);
	margin-block: 8px 0;
}

.bwp-hero--inner h1 {
	font-size: clamp(1.75rem, 1.4rem + 1.6vw, 2.5rem);
}

.bwp-hero p {
	color: #DCE3EF;
	margin-block: 0;
}

.bwp-hero a:not(.wp-element-button) {
	color: var(--bwp-surface);
}

.bwp-hero .wp-block-buttons {
	margin-block-start: 20px;
}

.bwp-hero .is-style-outline .wp-block-button__link {
	background: transparent;
	border: 1px solid #8BA6C7;
	color: var(--bwp-surface);
}

.bwp-archive-intro > * + * {
	margin-block-start: 12px;
}

/* Byline (article hero) */
.bwp-byline {
	font-size: 0.875rem;
}

.bwp-byline p {
	margin: 0;
}

.bwp-byline__labels {
	color: var(--bwp-cyan) !important;
	font-weight: 700;
}

/* Disclosure strip ------------------------------------------------------ */

.bwp-disclosure-strip {
	background: var(--bwp-surface);
	border-bottom: 1px solid var(--bwp-border);
	color: var(--bwp-muted);
	font-size: 0.8125rem;
	margin: 0;
	max-width: none;
	padding-block: 12px;
	text-align: center;
}

/* Breadcrumbs ----------------------------------------------------------- */

.bwp-breadcrumbs ol {
	display: flex;
	flex-wrap: wrap;
	font-size: 0.875rem;
	gap: 4px 8px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.bwp-breadcrumbs li + li::before {
	color: var(--bwp-muted);
	content: "›";
	margin-inline-end: 8px;
}

.bwp-breadcrumbs [aria-current] {
	color: var(--bwp-muted);
}

/* Filters --------------------------------------------------------------- */

.bwp-filters {
	align-items: end;
	background: var(--bwp-surface);
	border: 1px solid var(--bwp-border);
	border-radius: var(--bwp-radius);
	display: flex;
	flex-wrap: wrap;
	gap: 12px 16px;
	padding: 16px;
}

.bwp-filters__field {
	display: flex;
	flex: 1 1 10rem;
	flex-direction: column;
	gap: 4px;
}

.bwp-filters label {
	font-size: 0.8125rem;
	font-weight: 700;
}

.bwp-filters select {
	background: var(--bwp-surface);
	border: 1px solid #A9B6CB;
	border-radius: 8px;
	color: var(--bwp-ink);
	font: inherit;
	font-size: 0.9375rem;
	min-height: 44px;
	padding-inline: 10px;
}

.bwp-filters .wp-element-button {
	border: 0;
	cursor: pointer;
	min-height: 44px;
}

.bwp-filters__reset {
	align-self: center;
	font-size: 0.875rem;
}

/* Cards ----------------------------------------------------------------- */

.bwp-card-grid {
	display: grid;
	gap: var(--bwp-gap);
	grid-template-columns: 1fr;
	list-style: none;
	margin: 0;
	padding: 0;
}

@media (min-width: 600px) {
	.bwp-card-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 1024px) {
	.bwp-card-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

.bwp-card-grid > li {
	display: flex;
	margin: 0;
}

.bwp-card {
	background: var(--bwp-surface);
	border: 1px solid var(--bwp-border);
	border-radius: var(--bwp-radius);
	box-shadow: var(--bwp-shadow);
	display: flex;
	flex-direction: column;
	overflow: hidden;
	width: 100%;
}

.bwp-card__image {
	margin: 0;
}

.bwp-card__image img {
	aspect-ratio: 16 / 9;
	display: block;
	height: auto;
	object-fit: cover;
	width: 100%;
}

.bwp-card__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: 8px;
	padding: 20px 22px 22px;
}

.bwp-card__body > * {
	margin: 0;
}

.bwp-eyebrow-meta {
	color: var(--bwp-blue);
	font-size: 0.6875rem;
	font-weight: 800;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.bwp-card__title {
	font-size: 1.25rem;
}

.bwp-card__title a {
	color: var(--bwp-ink);
	text-decoration: none;
}

.bwp-card__title a:hover {
	color: var(--bwp-blue);
	text-decoration: underline;
}

.bwp-card__summary {
	color: var(--bwp-muted);
	font-size: 0.9375rem;
}

.bwp-evidence {
	align-self: flex-start;
	background: #EEF3FC;
	border-radius: 999px;
	color: #1849A9;
	font-size: 0.75rem;
	font-weight: 700;
	margin-block-start: auto !important;
	padding: 2px 10px;
}

/* On page 1 of an archive, the first article leads full-width. */
@media (min-width: 600px) {
	body:not(.paged) .bwp-card-grid--lead > li:first-child {
		grid-column: 1 / -1;
	}

	body:not(.paged) .bwp-card-grid--lead > li:first-child .bwp-card {
		display: grid;
		grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
	}

	body:not(.paged) .bwp-card-grid--lead > li:first-child .bwp-card__image,
	body:not(.paged) .bwp-card-grid--lead > li:first-child .bwp-card__image a,
	body:not(.paged) .bwp-card-grid--lead > li:first-child .bwp-card__image img {
		height: 100%;
	}

	body:not(.paged) .bwp-card-grid--lead > li:first-child .bwp-card__title {
		font-size: 1.625rem;
	}
}

/* News rows ------------------------------------------------------------- */

.bwp-news-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.bwp-news-row {
	background: var(--bwp-surface);
	border-bottom: 1px solid var(--bwp-border);
	padding: 20px 22px;
}

.bwp-news-list > li:first-child .bwp-news-row {
	border-radius: var(--bwp-radius) var(--bwp-radius) 0 0;
}

.bwp-news-list > li:last-child .bwp-news-row {
	border-bottom: 0;
	border-radius: 0 0 var(--bwp-radius) var(--bwp-radius);
}

.bwp-news-row > * {
	margin: 0;
}

.bwp-news-row__date {
	color: var(--bwp-muted);
	font-size: 0.8125rem;
}

.bwp-news-row__title {
	font-size: 1.125rem;
	margin-block: 4px !important;
}

.bwp-news-row__title a {
	color: var(--bwp-ink);
	text-decoration: none;
}

.bwp-news-row__summary {
	color: var(--bwp-muted);
	font-size: 0.9375rem;
}

/* Topic links ----------------------------------------------------------- */

.bwp-topic-links {
	display: grid;
	gap: 12px;
	grid-template-columns: 1fr;
	list-style: none;
	margin: 0;
	padding: 0;
}

@media (min-width: 600px) {
	.bwp-topic-links {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 1024px) {
	.bwp-topic-links {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

.bwp-topic-links a {
	align-items: center;
	background: var(--bwp-surface);
	border: 1px solid var(--bwp-border);
	border-radius: 10px;
	color: var(--bwp-ink);
	display: flex;
	font-weight: 650;
	justify-content: space-between;
	min-height: 44px;
	padding: 16px 22px;
	text-decoration: none;
}

.bwp-topic-links a::after {
	color: var(--bwp-blue);
	content: "→";
}

.bwp-topic-links a:hover {
	border-color: var(--bwp-blue);
}

.bwp-topic-links .is-highlighted a {
	border-color: var(--bwp-blue);
	box-shadow: inset 4px 0 0 var(--bwp-blue);
}

/* Panels ---------------------------------------------------------------- */

.bwp-panel {
	border-radius: var(--bwp-radius);
	padding: 32px;
}

.bwp-panel > * {
	margin-block: 0;
}

.bwp-panel > * + * {
	margin-block-start: 12px;
}

.bwp-panel--dark,
.bwp-panel--software {
	background: var(--bwp-navy);
	color: var(--bwp-surface);
}

.bwp-panel--software {
	background:
		linear-gradient(90deg, rgba(11, 21, 48, 0.96) 40%, rgba(11, 21, 48, 0.55)),
		var(--bwp-navy) url(../images/editorial-software.webp) right center / cover no-repeat;
}

.bwp-panel--dark h2,
.bwp-panel--software h2 {
	color: var(--bwp-surface);
}

.bwp-panel--dark p:not(.bwp-eyebrow),
.bwp-panel--software p:not(.bwp-eyebrow) {
	color: #DCE3EF;
	max-width: 640px;
}

/* Article --------------------------------------------------------------- */

.bwp-article {
	padding-block: 24px 48px;
	padding-inline: var(--bwp-gutter);
}

.bwp-article__image img {
	border-radius: var(--bwp-radius);
}

.bwp-article .wp-block-post-content {
	font-size: var(--wp--preset--font-size--medium);
}

/* Article body components ----------------------------------------------
 * Produced by the AIWisemind importer (bytewise-affiliates
 * Import\AIWisemind) so every imported article has the same look.
 */

.bwp-article .wp-block-post-content h2 {
	font-size: var(--wp--preset--font-size--x-large);
	line-height: 1.25;
	margin-block-start: 48px;
}

.bwp-article .wp-block-post-content h2,
.bwp-article .wp-block-post-content h3 {
	scroll-margin-top: 96px;
}

.bwp-article .wp-block-post-content p,
.bwp-article .wp-block-post-content li {
	line-height: 1.7;
}

/* Disclosure, above the first affiliate link. */
.bwp-notice {
	background: var(--bwp-surface);
	border: 1px solid var(--bwp-border);
	border-radius: 10px;
	color: var(--bwp-muted);
	font-size: var(--wp--preset--font-size--small);
	padding: 10px 14px;
}

.bwp-notice em {
	font-style: normal;
}

/* Numbered source links: small, quiet, still clickable. */
.bwp-cite {
	font-size: 0.65em;
	line-height: 1;
	margin-inline-start: 2px;
	vertical-align: super;
}

.bwp-cite a {
	background: #EAF1FD;
	border-radius: 999px;
	color: var(--bwp-blue);
	display: inline-block;
	font-weight: 700;
	line-height: 1.5;
	min-width: 1.6em;
	padding: 0 4px;
	text-align: center;
	text-decoration: none;
}

.bwp-cite a:hover,
.bwp-cite a:focus-visible {
	background: var(--bwp-blue);
	color: var(--bwp-surface);
}

/* Product article layout (owner-chosen 2026-11-05): product card, then the
 * review card holding the body, then a closing price box. The three cards are
 * wider than the 740px reading column on large screens; the review card's
 * padding brings its text back to reading width. */
.bwp-product,
.bwp-review,
.bwp-closing {
	background: var(--bwp-surface);
	border: 1px solid var(--bwp-border);
	border-radius: var(--bwp-radius);
	box-shadow: var(--bwp-shadow);
}

.bwp-article .wp-block-post-content > .bwp-product,
.bwp-article .wp-block-post-content > .bwp-review,
.bwp-article .wp-block-post-content > .bwp-closing {
	margin-block: 24px 0;
}

@media (min-width: 1000px) {
	.bwp-article .wp-block-post-content > .bwp-product,
	.bwp-article .wp-block-post-content > .bwp-review,
	.bwp-article .wp-block-post-content > .bwp-closing {
		/* Core centres layout children with !important margins. */
		margin-inline: -80px !important;
		max-width: none;
	}
}

.bwp-product__label,
.bwp-review__label,
.bwp-keyfacts__label {
	color: var(--bwp-blue);
	font-size: 0.8125rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

/* Product card: the featured product photo beside where-to-buy. */
.bwp-product {
	border-top: 4px solid var(--bwp-blue);
	display: grid;
	overflow: clip; /* rounds the photo panel to the card corners */
}

.bwp-product > *,
.bwp-product__body > *,
.bwp-product__media > * {
	margin-block: 0 !important;
}

.bwp-product__media {
	align-items: center;
	background: #FFF;
	border-bottom: 1px solid var(--bwp-border);
	display: flex;
	justify-content: center;
	padding: 24px;
}

.bwp-product__image {
	margin: 0;
	text-align: center;
	width: 100%;
}

.bwp-product__image img {
	height: auto;
	max-height: 320px;
	max-width: 100%;
	object-fit: contain;
	width: auto;
}

.bwp-product__body {
	align-self: center;
	padding: 24px;
}

.bwp-product__body > * + * {
	margin-block-start: 12px !important;
}

.bwp-product__note {
	color: var(--bwp-muted);
}

.bwp-product__body .bwp-cta {
	margin-block-start: 20px !important;
}

@media (min-width: 782px) {
	.bwp-product {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	}

	.bwp-product--text {
		grid-template-columns: 1fr;
	}

	.bwp-product__media {
		border-bottom: 0;
		border-inline-end: 1px solid var(--bwp-border);
		padding: 32px;
	}

	.bwp-product__image img {
		max-height: 400px;
	}

	.bwp-product__body {
		padding: 32px 40px;
	}
}

/* Review card: the body of the article. */
.bwp-review {
	padding: 24px;
}

.bwp-review > :first-child {
	margin-block-start: 0;
}

.bwp-review__lead {
	color: var(--bwp-ink);
	font-size: var(--wp--preset--font-size--medium);
	font-weight: 500;
	line-height: 1.6 !important;
	margin-block-start: 8px;
}

@media (min-width: 782px) {
	.bwp-review {
		padding: 40px;
	}

	.bwp-review__lead {
		font-size: var(--wp--preset--font-size--large);
	}
}

@media (min-width: 1000px) {
	.bwp-review {
		padding: 48px 80px;
	}
}

/* Key facts box inside the review. */
.bwp-keyfacts {
	background: #EEF3FB;
	border: 1px solid var(--bwp-border);
	border-radius: var(--bwp-radius);
	padding: 20px 24px;
}

.bwp-keyfacts > * {
	margin-block: 0;
}

.bwp-keyfacts > * + * {
	margin-block-start: 12px;
}

/* Closing "check today's price" box. */
.bwp-closing {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	gap: 16px 24px;
	justify-content: space-between;
	padding: 24px;
}

.bwp-closing > * {
	margin: 0 !important;
}

.bwp-closing__text {
	color: var(--bwp-ink);
	font-size: var(--wp--preset--font-size--medium);
	font-weight: 600;
}

/* Boxes inside the review: shared padding and spacing. */
.bwp-proscons__col,
.bwp-takeaways,
.bwp-verdict {
	border-radius: var(--bwp-radius);
	padding: 24px;
}

.bwp-proscons__col > *,
.bwp-takeaways > *,
.bwp-verdict > * {
	margin-block: 0;
}

.bwp-proscons__col > * + *,
.bwp-takeaways > * + *,
.bwp-verdict > * + * {
	margin-block-start: 12px;
}

/* Featured image from the product photo (cards, listings): a product shot
 * on white, shown whole rather than cropped. */
.bwp-featured--product {
	background: #FFF;
}

.bwp-featured--product img {
	object-fit: contain !important;
	padding: 12px;
}

/* On the article itself (only when its product card has no photo, e.g. a
   source file without listing images): a modest, centred photo instead of
   a full-column one. */
.bwp-article__image.bwp-featured--product {
	border: 1px solid var(--bwp-border);
	border-radius: var(--bwp-radius);
	display: flex;
	justify-content: center;
	margin-block: 16px;
}

.bwp-article__image.bwp-featured--product img {
	aspect-ratio: auto !important;
	height: auto !important;
	max-height: 340px;
	max-width: 100%;
	width: auto !important;
}

/* Buying guides (Markdown importer) ----------------------------------- */

/* Tables: scroll sideways when wide (BUILD-SPEC §5); below 600px each row
 * becomes a labelled card, the non-table reading option. */
.bwp-table {
	border: 1px solid var(--bwp-border);
	border-radius: var(--bwp-radius);
	margin-block: 24px;
	overflow-x: auto;
}

.bwp-table:focus-visible {
	outline: 3px solid var(--bwp-blue);
	outline-offset: 2px;
}

.bwp-table table {
	border-collapse: collapse;
	font-size: var(--wp--preset--font-size--small);
	min-width: 100%;
}

.bwp-table th,
.bwp-table td {
	border-bottom: 1px solid var(--bwp-border);
	line-height: 1.5;
	padding: 12px 16px;
	text-align: start;
	vertical-align: top;
}

.bwp-table thead th {
	background: #EEF3FB;
	color: var(--bwp-ink);
	font-weight: 700;
	white-space: nowrap;
}

.bwp-table tbody th {
	color: var(--bwp-ink);
	font-weight: 600;
}

.bwp-table tbody tr:last-child > * {
	border-bottom: 0;
}

@media (max-width: 599px) {
	.bwp-table {
		border: 0;
		overflow: visible;
	}

	.bwp-table thead {
		block-size: 1px;
		clip-path: inset(50%);
		inline-size: 1px;
		overflow: hidden;
		position: absolute;
	}

	.bwp-table table,
	.bwp-table tbody,
	.bwp-table tr,
	.bwp-table th,
	.bwp-table td {
		display: block;
	}

	.bwp-table tr {
		border: 1px solid var(--bwp-border);
		border-radius: var(--bwp-radius);
		margin-block-end: 12px;
		overflow: clip;
	}

	.bwp-table tbody th {
		background: #EEF3FB;
	}

	.bwp-table td::before {
		color: var(--bwp-muted);
		content: attr(data-label);
		display: block;
		font-size: 0.75rem;
		font-weight: 700;
		letter-spacing: 0.04em;
		text-transform: uppercase;
	}

	.bwp-table td[data-label=""]::before {
		content: none;
	}

	.bwp-table tr > :last-child {
		border-bottom: 0;
	}
}

/* Printable checklist (Markdown "- [ ]" items). */
ul.bwp-tasklist {
	list-style: none;
	padding-inline-start: 0;
}

ul.bwp-tasklist > li {
	padding-inline-start: 32px;
	position: relative;
}

ul.bwp-tasklist > li + li {
	margin-block-start: 10px;
}

ul.bwp-tasklist > li::before {
	border: 2px solid var(--bwp-blue);
	border-radius: 4px;
	content: "";
	height: 18px;
	inset-block-start: 0.35em;
	inset-inline-start: 0;
	position: absolute;
	width: 18px;
}

/* "Our picks" (block bytewise-picks/category-picks): minimal cards of the
   product articles in a category, used in buying guides. Inside an article
   the post-content type styles are reset to the card styles. */
.bwp-category-picks {
	margin-block: 40px;
}

.bwp-article .wp-block-post-content .bwp-category-picks__grid {
	list-style: none;
	margin: 20px 0 0;
	padding: 0;
}

.bwp-article .wp-block-post-content .bwp-category-picks__grid > li {
	margin: 0;
}

.bwp-pick-card__image {
	background: #FFF;
	border-bottom: 1px solid var(--bwp-border);
	padding: 12px;
}

.bwp-pick-card__image img {
	aspect-ratio: 4 / 3;
	object-fit: contain;
}

.bwp-article .wp-block-post-content .bwp-pick-card .bwp-card__body {
	gap: 10px;
	padding: 16px 18px 18px;
}

.bwp-article .wp-block-post-content .bwp-pick-card h3 {
	font-size: 1.0625rem;
	line-height: 1.3;
	margin: 0;
}

.bwp-article .wp-block-post-content .bwp-pick-card p {
	margin: 0;
}

.bwp-article .wp-block-post-content .bwp-pick-card .bwp-card__summary {
	font-size: 0.875rem;
	line-height: 1.5;
}

.bwp-article .wp-block-post-content .bwp-pick-card .bwp-evidence {
	font-size: 0.75rem;
	margin-block-start: auto;
}

.bwp-pick-card__cta {
	margin: 4px 0 0 !important;
}

.bwp-pick-card__cta .wp-block-button,
.bwp-pick-card__cta .wp-block-button__link {
	text-align: center;
	width: 100%;
}

.bwp-article .wp-block-post-content .bwp-category-picks__all {
	font-weight: 700;
	margin-block-start: 20px;
	text-align: end;
}

/* Guide images (illustrations and diagrams placed from IMAGE comments). */
.bwp-guide-image {
	margin-block: 28px;
}

.bwp-guide-image img {
	border: 1px solid var(--bwp-border);
	border-radius: var(--bwp-radius);
	display: block;
	height: auto;
	width: 100%;
}

.bwp-guide-image figcaption {
	color: var(--bwp-muted);
	font-size: 0.875rem;
	margin-top: 8px;
	text-align: center;
}

.bwp-guide-image--portrait {
	margin-inline: auto;
	max-width: 420px;
}

/* Product videos (YouTube), 16:9. */
.bwp-video {
	aspect-ratio: 16 / 9;
	background: var(--bwp-navy);
	border-radius: var(--bwp-radius);
	margin-block: 32px;
	overflow: hidden;
}

.bwp-video iframe {
	border: 0;
	display: block;
	height: 100%;
	width: 100%;
}

/* Check-mark lists (key facts, takeaways). */
ul.bwp-checklist {
	list-style: none;
	padding-inline-start: 0;
}

ul.bwp-checklist > li {
	padding-inline-start: 30px;
	position: relative;
}

ul.bwp-checklist > li + li {
	margin-block-start: 8px;
}

ul.bwp-checklist > li::before {
	background: var(--bwp-blue);
	border-radius: 50%;
	color: var(--bwp-surface);
	content: "✓";
	font-size: 0.75rem;
	font-weight: 700;
	height: 20px;
	inset-block-start: 0.3em;
	inset-inline-start: 0;
	line-height: 20px;
	position: absolute;
	text-align: center;
	width: 20px;
}

/* Call to action. */
.bwp-cta {
	margin-block: 24px;
}

.bwp-cta .wp-block-button__link::after {
	content: " →";
}

/*
 * "View on Amazon" buttons: bright orange (owner request 2026-11-06). Dark
 * ink text, not white: white on this orange is about 2:1 and fails WCAG AA;
 * ink on it is about 9:1. Other vendors' buttons keep the house blue.
 */
.bwp-cta .wp-block-button__link[href*="amazon."],
.bwp-cta .wp-block-button__link[href*="amzn.to"] {
	background-color: #FF9500;
	color: var(--bwp-ink);
}

.bwp-cta .wp-block-button__link[href*="amazon."]:hover,
.bwp-cta .wp-block-button__link[href*="amazon."]:focus-visible,
.bwp-cta .wp-block-button__link[href*="amzn.to"]:hover,
.bwp-cta .wp-block-button__link[href*="amzn.to"]:focus-visible {
	background-color: #FFAD33;
	color: var(--bwp-ink);
}

/* Product listing photos (tall, white background): framed, kept in proportion. */
.bwp-listing-image {
	background: #FFF;
	border: 1px solid var(--bwp-border);
	border-radius: var(--bwp-radius);
	margin-block: 32px;
	padding: 16px;
	text-align: center;
}

.bwp-listing-image img {
	height: auto;
	max-height: 380px;
	max-width: 100%;
	object-fit: contain;
	width: auto;
}

/* Pros and cons. */
.bwp-proscons__grid {
	display: grid;
	gap: 16px;
	margin-block-start: 16px;
}

@media (min-width: 640px) {
	.bwp-proscons__grid {
		grid-template-columns: 1fr 1fr;
	}
}

.bwp-proscons__grid > * {
	margin-block: 0 !important;
}

.bwp-proscons__col--pros {
	background: #ECFDF3;
	border: 1px solid #ABEFC6;
}

.bwp-proscons__col--cons {
	background: #FEF3F2;
	border: 1px solid #FECDCA;
}

.bwp-proscons__col h3,
.bwp-proscons__col h4 {
	font-size: var(--wp--preset--font-size--medium);
}

.bwp-proscons__col--pros h3,
.bwp-proscons__col--pros h4 {
	color: #067647;
}

.bwp-proscons__col--cons h3,
.bwp-proscons__col--cons h4 {
	color: #B42318;
}

.bwp-proscons__col ul {
	list-style: none;
	padding-inline-start: 0;
}

.bwp-proscons__col li {
	font-size: var(--wp--preset--font-size--small);
	padding-inline-start: 24px;
	position: relative;
}

.bwp-proscons__col li + li {
	margin-block-start: 8px;
}

.bwp-proscons__col li::before {
	font-weight: 700;
	inset-inline-start: 0;
	position: absolute;
}

.bwp-proscons__col--pros li::before {
	color: #067647;
	content: "+";
}

.bwp-proscons__col--cons li::before {
	color: #B42318;
	content: "–";
}

/* Final verdict. */
.bwp-verdict {
	background: var(--bwp-navy);
	color: #DCE3EF;
	margin-block-start: 48px;
}

.bwp-article .wp-block-post-content .bwp-verdict h2 {
	color: var(--bwp-surface);
	margin-block-start: 0;
}

.bwp-verdict a {
	color: var(--bwp-cyan);
}

.bwp-verdict .bwp-cite a {
	background: rgba(255, 255, 255, 0.14);
	color: var(--bwp-surface);
}

/* Key takeaways. */
.bwp-takeaways {
	background: #EEF3FB;
	border-inline-start: 4px solid var(--bwp-blue);
	border-radius: 0 var(--bwp-radius) var(--bwp-radius) 0;
}

.bwp-article .wp-block-post-content .bwp-takeaways h2 {
	font-size: var(--wp--preset--font-size--large);
	margin-block-start: 0;
}

/* FAQ. */
.bwp-faq .wp-block-details {
	border-bottom: 1px solid var(--bwp-border);
	margin-block: 0;
	padding-block: 16px;
}

.bwp-faq .wp-block-details:first-of-type {
	border-top: 1px solid var(--bwp-border);
	margin-block-start: 16px;
}

.bwp-faq summary {
	color: var(--bwp-ink);
	cursor: pointer;
	font-weight: 700;
	list-style: none;
	padding-inline-end: 32px;
	position: relative;
}

.bwp-faq summary::-webkit-details-marker {
	display: none;
}

.bwp-faq summary::after {
	color: var(--bwp-blue);
	content: "+";
	font-size: 1.5rem;
	inset-block-start: 50%;
	inset-inline-end: 4px;
	line-height: 1;
	position: absolute;
	transform: translateY(-50%);
}

.bwp-faq details[open] summary::after {
	content: "–";
}

.bwp-faq details > p {
	margin-block: 12px 0;
}

/* Sources. */
.bwp-sources {
	border-top: 1px solid var(--bwp-border);
	color: var(--bwp-muted);
	font-size: var(--wp--preset--font-size--small);
	margin-block-start: 48px;
	padding-block-start: 8px;
}

.bwp-article .wp-block-post-content .bwp-sources h2 {
	font-size: var(--wp--preset--font-size--medium);
	margin-block-start: 16px;
}

.bwp-sources li {
	overflow-wrap: anywhere;
}

/* Listings -------------------------------------------------------------- */

.bwp-empty {
	background: var(--bwp-surface);
	border: 1px dashed var(--bwp-border);
	border-radius: var(--bwp-radius);
	color: var(--bwp-muted);
	padding: 24px;
}

.bwp-pagination {
	font-weight: 650;
	gap: 12px;
	margin-block-start: 32px !important;
}

.bwp-pagination a,
.bwp-pagination .current {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	min-width: 44px;
}

.bwp-page-search {
	max-width: 640px;
}

.bwp-page-search .wp-block-search__input {
	border: 1px solid #A9B6CB;
	border-radius: 8px;
	min-height: 44px;
}

/* Footer ---------------------------------------------------------------- */

.bwp-site-footer {
	background: var(--bwp-navy);
	color: #DCE3EF;
	font-size: 0.875rem;
	margin-block-start: 32px;
}

.bwp-footer__inner {
	display: grid;
	gap: 32px;
	grid-template-columns: 1fr;
	padding-block: 48px 24px;
}

@media (min-width: 782px) {
	.bwp-footer__inner {
		grid-template-columns: 2fr repeat(3, 1fr);
	}
}

.bwp-footer p {
	margin: 0 0 8px;
}

.bwp-footer__name {
	color: var(--bwp-surface);
	font-size: 1.125rem;
	font-weight: 700;
}

.bwp-footer__heading {
	color: var(--bwp-surface);
	font-size: 0.875rem;
	letter-spacing: 0.08em;
	margin: 0 0 12px;
	text-transform: uppercase;
}

.bwp-footer ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.bwp-footer li + li {
	margin-block-start: 8px;
}

.bwp-footer a {
	color: var(--bwp-surface);
}

/* Footer topic list is plain links, not the card style. */
.bwp-footer .bwp-topic-links {
	display: block;
}

.bwp-footer .bwp-topic-links a {
	background: none;
	border: 0;
	box-shadow: none;
	color: var(--bwp-surface);
	display: inline;
	font-weight: 400;
	padding: 0;
	text-decoration: underline;
}

.bwp-footer .bwp-topic-links a::after {
	content: none;
}

.bwp-footer__legal {
	border-top: 1px solid rgba(220, 227, 239, 0.2);
	padding-block: 20px 32px;
}

.bwp-footer__amazon {
	color: var(--bwp-surface);
	font-weight: 650;
}

/* Floating buttons: back to top, with the page's buy button above it
   (inc/FloatingActions.php, assets/js/floating.js; owner request 2026-11-06). */
.bwp-float {
	align-items: flex-end;
	bottom: max(16px, env(safe-area-inset-bottom));
	display: flex;
	flex-direction: column;
	gap: 10px;
	pointer-events: none;
	position: fixed;
	right: max(16px, env(safe-area-inset-right));
	z-index: 50;
}

.bwp-float > a {
	box-shadow: 0 6px 18px rgba(11, 18, 32, 0.22);
	pointer-events: auto;
	transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
}

.bwp-float__top {
	align-items: center;
	background: var(--bwp-navy);
	border: 2px solid var(--bwp-surface);
	border-radius: 50%;
	color: var(--bwp-surface);
	display: flex;
	height: 48px;
	justify-content: center;
	width: 48px;
}

.bwp-float__top:hover {
	background: var(--bwp-blue);
	color: var(--bwp-surface);
}

.bwp-float__buy {
	background: var(--bwp-blue);
	border-radius: 999px;
	color: var(--bwp-surface);
	font-size: var(--wp--preset--font-size--small);
	font-weight: 700;
	line-height: 1.2;
	padding: 12px 18px;
	text-decoration: none;
	white-space: nowrap;
}

.bwp-float__buy::after {
	content: " →";
}

.bwp-float__buy:hover {
	background: #124BB0;
	color: var(--bwp-surface);
}

/* Amazon: the same bright orange and ink text as the inline buttons. */
.bwp-float__buy[href*="amazon."],
.bwp-float__buy[href*="amzn.to"] {
	background: #FF9500;
	color: var(--bwp-ink);
}

.bwp-float__buy[href*="amazon."]:hover,
.bwp-float__buy[href*="amazon."]:focus-visible,
.bwp-float__buy[href*="amzn.to"]:hover,
.bwp-float__buy[href*="amzn.to"]:focus-visible {
	background: #FFAD33;
	color: var(--bwp-ink);
}

/* With the script: hidden until the reader scrolls (not focusable while hidden). */
.bwp-float--js > a:not(.is-visible) {
	opacity: 0;
	transform: translateY(12px);
	visibility: hidden;
}

.bwp-float__buy[hidden] {
	display: none;
}

@media (max-width: 599px) {
	.bwp-float__buy {
		padding: 10px 14px;
	}

	.bwp-float__top {
		height: 44px;
		width: 44px;
	}
}

@media print {
	.bwp-float {
		display: none;
	}
}
