/* ==========================================================================
   Air Purifier First - design system
   Tokens, header, navigation, disclosure, search, footer, home page.
   Loaded after style.css (legacy rules are removed step by step).
   ========================================================================== */

/* Tokens
   -------------------------------------------------------------------------- */
:root {
	--apf-navy-900: #0f2a40;
	--apf-navy-800: #133550;
	--apf-navy: #173d5c;
	--apf-navy-600: #22517a;
	--apf-blue: #1f64a3;
	--apf-blue-700: #18548a;
	--apf-blue-50: #eaf2f9;
	--apf-ink: #16212c;
	--apf-text: #34424f;
	--apf-muted: #5f6c79;
	--apf-line: #dbe3ea;
	--apf-line-soft: #e8edf2;
	--apf-bg-soft: #f4f7fa;
	--apf-bg-tint: #eef2f6;
	--apf-white: #fff;
	--apf-brand: #3498db;
	--apf-brand-green: #91d92d;
	--apf-coral: #ff6465;
	--apf-amazon: #ff7033;
	--apf-amazon-hover: #e85d22;
	--apf-deal: #ffc857;
	--apf-green: #79c143;
	--apf-orange: #f2913d;
	--apf-red: #e2553f;

	--apf-font: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--apf-radius: 4px;
	--apf-radius-lg: 6px;
	--apf-shadow: 0 1px 2px rgba(15, 42, 64, .06), 0 2px 8px rgba(15, 42, 64, .05);
	--apf-container: 1200px;
	--apf-gutter: 20px;
	--apf-sticky-h: 76px;
	--apf-focus: 0 0 0 3px rgba(31, 100, 163, .35);
}

html {
	scroll-padding-top: calc(var(--apf-sticky-h) + 12px);
}

/* Legacy page wrapper uses the same width as the new header and footer. */
.main-container { width: calc(var(--apf-container) + 2 * var(--apf-gutter)); max-width: 100%; padding-right: var(--apf-gutter); padding-left: var(--apf-gutter); }
.main-container.w-100 { width: 100%; padding: 0; }

body.main {
	background: var(--apf-white);
	color: var(--apf-text);
	font-family: var(--apf-font);
}

.apf-container {
	width: 100%;
	max-width: calc(var(--apf-container) + 2 * var(--apf-gutter));
	margin: 0 auto;
	padding: 0 var(--apf-gutter);
}

.apf-icon {
	flex: none;
	display: inline-block;
	vertical-align: middle;
}

/* Focus that is always visible for keyboard users. */
.apf-header a:focus-visible,
.apf-sticky a:focus-visible,
.apf-sticky button:focus-visible,
.apf-search :focus-visible,
.apf-home a:focus-visible,
.apf-home button:focus-visible,
.apf-home input:focus-visible,
.apf-footer a:focus-visible,
.apf-header button:focus-visible {
	outline: 2px solid var(--apf-blue);
	outline-offset: 2px;
}

.apf-skip-link {
	position: absolute;
	top: -100px;
	left: 12px;
	z-index: 1000;
	padding: 10px 14px;
	background: var(--apf-white);
	color: var(--apf-ink);
	font-weight: 700;
}
.apf-skip-link:focus { top: 12px; }

/* Shared: text styles, buttons, chips
   -------------------------------------------------------------------------- */
.apf-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin: 0 0 8px;
	color: var(--apf-blue);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .12em;
	line-height: 1.3;
	text-transform: uppercase;
}
.apf-eyebrow .apf-icon { width: 14px; height: 14px; }

.apf-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 40px;
	padding: 0 16px;
	border: 1px solid transparent;
	border-radius: var(--apf-radius);
	font-family: var(--apf-font);
	font-size: 14px;
	font-weight: 700;
	line-height: 1.2;
	text-decoration: none;
	cursor: pointer;
	transition: background-color .15s, border-color .15s, color .15s;
}
.apf-button--primary,
.apf-button--primary:visited {
	background: var(--apf-navy);
	border-color: var(--apf-navy);
	color: var(--apf-white);
}
.apf-button--primary:hover { background: var(--apf-navy-900); border-color: var(--apf-navy-900); color: var(--apf-white); }
.apf-button--outline,
.apf-button--outline:visited {
	background: var(--apf-white);
	border-color: var(--apf-line);
	color: var(--apf-navy);
}
.apf-button--outline:hover { border-color: var(--apf-blue); color: var(--apf-blue); }
.apf-button--ghost,
.apf-button--ghost:visited {
	background: transparent;
	border-color: rgba(255, 255, 255, .45);
	color: var(--apf-white);
}
.apf-button--ghost:hover { background: rgba(255, 255, 255, .1); border-color: var(--apf-white); color: var(--apf-white); }

.apf-icon-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	padding: 0;
	border: 1px solid var(--apf-line);
	border-radius: var(--apf-radius);
	background: var(--apf-white);
	color: var(--apf-navy);
	cursor: pointer;
}
.apf-icon-btn .apf-icon { width: 18px; height: 18px; }

.apf-pill {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-height: 32px;
	padding: 0 12px;
	border: 1px solid var(--apf-line);
	border-radius: var(--apf-radius);
	background: var(--apf-white);
	color: var(--apf-navy);
	font-family: var(--apf-font);
	font-size: 13px;
	font-weight: 500;
	line-height: 1.2;
	text-decoration: none;
	cursor: pointer;
}
.apf-pill:hover { border-color: var(--apf-blue); color: var(--apf-blue); }
.apf-pill[aria-pressed="true"] { background: var(--apf-navy); border-color: var(--apf-navy); color: var(--apf-white); }
.apf-pill .apf-icon { width: 15px; height: 15px; }

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

/* Header (logo row)
   -------------------------------------------------------------------------- */
.apf-header {
	display: block;
	position: relative;
	background: var(--apf-white);
}
.apf-header__inner {
	display: flex;
	align-items: center;
	gap: 20px;
	min-height: 130px;
	padding-top: 22px;
	padding-bottom: 22px;
}
.apf-header__logo { flex: 0 1 auto; min-width: 0; margin: 0 auto 0 0; line-height: 0; }
.apf-header__logo a,
.apf-header__logo picture { display: inline-block; line-height: 0; }
/* Fixed logo height (also wins over image-optimisation markup and legacy rules). */
.apf-header .apf-header__logo img { width: auto !important; height: 95px !important; max-width: 100%; object-fit: contain; }
.apf-header__cta,
.apf-header__cta:visited {
	min-height: 48px;
	padding: 0 18px;
	background: #f1f6fb;
	border-color: #c8dbee;
	color: var(--apf-blue-700);
	font-size: 15px;
}
.apf-header__cta:hover { background: #e6f0f9; border-color: var(--apf-blue); color: var(--apf-navy); }
.apf-header__cta .apf-icon { width: 18px; height: 18px; }
.apf-header__ad { line-height: 0; }
.apf-header__mobile-actions { display: none; gap: 8px; }

/* Sticky bar: navigation + disclosure
   -------------------------------------------------------------------------- */
.apf-sticky {
	position: sticky;
	top: 0;
	z-index: 50;
}
.admin-bar .apf-sticky { top: 32px; }
@media (max-width: 782px) {
	.admin-bar .apf-sticky { top: 46px; }
}

.apf-navbar { background: var(--apf-navy); }
.apf-navbar__inner {
	display: flex;
	align-items: stretch;
	justify-content: space-between;
	gap: 16px;
}

.apf-nav { flex: 1 1 auto; min-width: 0; }
.apf-menu {
	display: flex;
	flex-wrap: wrap;
	margin: 0;
	padding: 0;
	list-style: none;
}
.apf-menu > li {
	position: relative;
	display: flex;
	align-items: center;
}
.apf-menu > li > a {
	display: flex;
	align-items: center;
	min-height: 54px;
	padding: 0 17px;
	color: #fff;
	font-family: var(--apf-font);
	font-size: 16px;
	font-weight: 700;
	line-height: 1.2;
	text-decoration: none;
	text-transform: none;
	white-space: nowrap;
	transition: background-color .15s;
}
/* Stuck state: shadow only. Changing the height here makes the bar jump between stuck and not stuck near the top. */
.apf-sticky.is-stuck { box-shadow: 0 4px 14px rgba(15, 42, 64, .16); }
/* Hover paints the whole item (link + arrow) as one block. */
.apf-menu > li { transition: background-color .15s; }
.apf-menu > li:hover,
.apf-menu > li.is-open,
.apf-menu > li:focus-within { background: var(--apf-navy-600); }
.apf-menu > li > a:hover,
.apf-menu > li:hover > a,
.apf-menu > li.is-open > a { background: transparent; color: #fff; }
.apf-menu > .current-menu-item,
.apf-menu > .current-menu-ancestor,
.apf-menu > .current-menu-parent,
.apf-menu > .current-post-ancestor { background: var(--apf-navy-900); box-shadow: inset 0 -3px 0 var(--apf-brand); }
.apf-menu > .current-menu-item > a,
.apf-menu > .current-menu-ancestor > a,
.apf-menu > .current-menu-parent > a,
.apf-menu > .current-post-ancestor > a { color: #fff; }

/* Deals stands out (by URL, or add the class "apf-highlight" to a menu item). */
.apf-menu > li > a[href*="/deals"],
.apf-menu > li.apf-highlight > a { color: var(--apf-deal); }

.apf-menu > li.menu-item-has-children > a { padding-right: 4px; }
.apf-submenu-toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	align-self: stretch;
	width: 34px;
	margin: 0;
	padding: 0 8px 0 0;
	border: 0;
	background: transparent;
	color: #fff;
	cursor: pointer;
}
.apf-submenu-toggle svg { width: 16px; height: 16px; stroke-width: 2.6; }
.apf-menu > li.is-open > .apf-submenu-toggle svg { transform: rotate(180deg); }

.apf-menu .sub-menu {
	position: absolute;
	top: 100%;
	left: 0;
	z-index: 60;
	display: none;
	min-width: 240px;
	margin: 0;
	padding: 6px 0;
	list-style: none;
	background: var(--apf-white);
	border: 1px solid var(--apf-line);
	border-radius: 0 0 var(--apf-radius-lg) var(--apf-radius-lg);
	box-shadow: 0 10px 24px rgba(15, 42, 64, .14);
}
.apf-menu > li:hover > .sub-menu,
.apf-menu > li:focus-within > .sub-menu,
.apf-menu > li.is-open > .sub-menu { display: block; }
.apf-menu .sub-menu a {
	display: block;
	padding: 10px 18px;
	color: var(--apf-ink);
	font-family: var(--apf-font);
	font-size: 15px;
	font-weight: 500;
	line-height: 1.35;
	text-decoration: none;
	text-transform: none;
}
.apf-menu .sub-menu a:hover,
.apf-menu .sub-menu .current-menu-item > a { background: var(--apf-bg-soft); color: var(--apf-blue); }

.apf-navbar__search,
.apf-navbar__search:visited {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 0 20px;
	background: var(--apf-navy-900);
	border-left: 1px solid rgba(255, 255, 255, .12);
	color: #fff;
	font-family: var(--apf-font);
	font-size: 16px;
	font-weight: 700;
	text-decoration: none;
}
.apf-navbar__search:hover { color: #fff; background: #0a2133; }
.apf-navbar__search .apf-icon { width: 18px; height: 18px; stroke-width: 2.2; }

/* Disclosure bar */
.apf-disclosure {
	padding: 8px 0;
	background: #f6f8fa;
	border-bottom: 1px solid var(--apf-line);
	color: var(--apf-text);
	font-family: var(--apf-font);
	font-size: 14px;
	line-height: 1.45;
	text-align: left;
}
.apf-disclosure a,
.apf-disclosure a:visited { color: var(--apf-blue-700); font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }
.apf-disclosure a:hover { color: var(--apf-navy); }

/* Mobile navigation */
@media (max-width: 1000px) {
	.apf-header__inner { min-height: 76px; padding-top: 12px; padding-bottom: 12px; }
	.apf-header .apf-header__logo img { height: 52px !important; }
	.apf-header__cta,
	.apf-header__ad { display: none; }
	.apf-header__mobile-actions { display: flex; }
	.apf-menu-toggle .apf-icon { width: 18px; height: 18px; }

	/* The logo row with the Menu button stays visible; the disclosure sticks right below it. */
	html { scroll-padding-top: calc(var(--apf-header-h, 72px) + var(--apf-sticky-h) + 12px); }
	.apf-header { position: sticky; top: 0; z-index: 51; }
	.apf-sticky { top: var(--apf-header-h, 72px); }
	.admin-bar .apf-header { top: 46px; }
	.admin-bar .apf-sticky { top: calc(46px + var(--apf-header-h, 72px)); }
	.apf-navbar { display: none; }
	.apf-nav-open .apf-navbar { display: block; }
	.apf-navbar__inner { display: block; padding: 0; }
	.apf-navbar__search { display: none; }
	.apf-nav { max-height: calc(100vh - 160px); overflow-y: auto; }
	.apf-menu { display: block; padding: 6px 0 10px; }
	.apf-menu > li { flex-wrap: wrap; border-bottom: 1px solid rgba(255, 255, 255, .08); }
	.apf-menu > li > a { flex: 1; min-height: 46px; padding: 0 var(--apf-gutter); font-size: 15px; }
	.apf-menu > li:hover,
	.apf-menu > li.is-open,
	.apf-menu > li:focus-within { background: transparent; }
	.apf-menu > li > a:hover { background: var(--apf-navy-600); }
	.apf-submenu-toggle { width: 52px; margin: 0; padding: 0; border-left: 1px solid rgba(255, 255, 255, .08); }
	.apf-menu .sub-menu,
	.apf-menu > li:hover > .sub-menu,
	.apf-menu > li:focus-within > .sub-menu { position: static; display: none; flex-basis: 100%; min-width: 0; border: 0; border-radius: 0; box-shadow: none; background: var(--apf-navy-800); padding: 4px 0; }
	.apf-menu > li.is-open > .sub-menu { display: block; }
	.apf-menu .sub-menu a { padding: 11px calc(var(--apf-gutter) + 14px); color: #fff; }
	.apf-menu .sub-menu a:hover { background: var(--apf-navy-600); color: #fff; }
	.apf-menu > .current-menu-item > a,
	.apf-menu > .current-menu-ancestor > a { box-shadow: inset 3px 0 0 var(--apf-white); }
	.apf-disclosure { font-size: 12px; padding: 6px 0; }
}

/* Below 600px the WordPress admin bar is not fixed. */
@media (max-width: 600px) {
	.admin-bar .apf-header { top: 0; }
	.admin-bar .apf-sticky { top: var(--apf-header-h, 72px); }
}

/* Search window
   -------------------------------------------------------------------------- */
.apf-search-open { overflow: hidden; }
.apf-search {
	width: min(800px, calc(100vw - 32px));
	max-height: min(680px, calc(100vh - 64px));
	margin: 8vh auto auto;
	padding: 0;
	border: 1px solid var(--apf-line);
	border-radius: 8px;
	background: var(--apf-white);
	color: var(--apf-text);
	box-shadow: 0 24px 64px rgba(15, 42, 64, .28);
	overflow: hidden;
}
.apf-search::backdrop { background: rgba(15, 42, 64, .55); }
.apf-search[open] { display: flex; }
.apf-search__form { display: flex; flex-direction: column; width: 100%; max-height: inherit; margin: 0; }
.apf-search__head { padding: 24px 28px 22px; background: var(--apf-bg-soft); border-bottom: 1px solid var(--apf-line); }
.apf-search__titlebar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.apf-search__title { margin: 0; color: var(--apf-navy); font-size: 22px; font-weight: 700; letter-spacing: -.02em; line-height: 1.2; text-transform: none; }
.apf-search__close {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: none;
	width: 40px;
	height: 40px;
	padding: 0;
	border: 1px solid var(--apf-line);
	border-radius: var(--apf-radius);
	background: var(--apf-white);
	color: var(--apf-navy);
	cursor: pointer;
}
.apf-search__close:hover { border-color: var(--apf-blue); }
.apf-search__close .apf-icon { width: 18px; height: 18px; }
.apf-search__field {
	display: flex;
	align-items: center;
	gap: 12px;
	height: 52px;
	padding: 0 18px;
	border: 1px solid var(--apf-line);
	border-radius: 6px;
	background: var(--apf-white);
	color: var(--apf-navy);
}
.apf-search__field:focus-within { border-color: #7fb0dc; box-shadow: 0 0 0 3px rgba(31, 100, 163, .18); }
.apf-search__field > .apf-icon { width: 20px; height: 20px; }
.apf-search__field input {
	flex: 1;
	min-width: 0;
	height: 100%;
	padding: 0;
	border: 0;
	background: transparent;
	color: var(--apf-ink);
	font-family: var(--apf-font);
	font-size: 17px;
	outline: none;
}
.apf-search .apf-search__field input:focus-visible { outline: none; }
.apf-search__field input::-webkit-search-cancel-button { display: none; }
.apf-search__esc { flex: none; color: var(--apf-muted); font-size: 13px; }
.apf-search__tabs { display: flex; gap: 8px; margin-top: 14px; overflow-x: auto; }
.apf-search__tab {
	flex: none;
	min-height: 36px;
	padding: 0 14px;
	border: 1px solid var(--apf-line);
	border-radius: var(--apf-radius);
	background: var(--apf-white);
	color: var(--apf-navy);
	font-family: var(--apf-font);
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
}
.apf-search__tab:hover { border-color: var(--apf-blue); }
.apf-search__tab[aria-pressed="true"] { background: var(--apf-navy); border-color: var(--apf-navy); color: #fff; }
.apf-search__body { flex: 1 1 auto; min-height: 120px; padding: 12px 20px; overflow-y: auto; overscroll-behavior: contain; }
.apf-search__status { margin: 0 8px 6px; color: var(--apf-muted); font-size: 13px; }
.apf-search__status.is-centered { padding: 24px 0; font-size: 15px; text-align: center; }
.apf-search__status:empty { display: none; }
.apf-search__results { margin: 0; padding: 0; list-style: none; }
.apf-search__result {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 10px 8px;
	border-radius: var(--apf-radius);
	color: var(--apf-ink);
	text-decoration: none;
}
.apf-search__result:hover,
.apf-search__result:focus { background: var(--apf-bg-soft); color: var(--apf-ink); }
.apf-search__result img { flex: none; width: 80px; height: 52px; object-fit: cover; border-radius: 3px; background: var(--apf-bg-tint); }
.apf-search__result-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.apf-search__result-type { color: var(--apf-blue); font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.apf-search__result-title { font-size: 15px; font-weight: 600; line-height: 1.35; }
.apf-search__result-date { color: var(--apf-muted); font-size: 12px; }
.apf-search__footer { padding: 16px 28px; border-top: 1px solid var(--apf-line); background: var(--apf-bg-soft); }
.apf-search__all {
	padding: 0;
	border: 0;
	background: none;
	color: var(--apf-navy);
	font-family: var(--apf-font);
	font-size: 16px;
	font-weight: 700;
	cursor: pointer;
}
.apf-search__all:hover { color: var(--apf-blue); text-decoration: underline; }
@media (max-width: 600px) {
	.apf-search { width: 100vw; max-width: 100vw; max-height: 100dvh; height: 100dvh; margin: 0; border: 0; border-radius: 0; }
	.apf-search__head { padding: 16px; }
	.apf-search__esc { display: none; }
	.apf-search__footer { padding: 14px 16px; }
}

/* Intro block (dark) of archives and tool pages
   -------------------------------------------------------------------------- */
.apf-page-intro {
	padding: 32px 0 40px;
	background: linear-gradient(110deg, #18405f 0%, #1c5379 55%, #1e5f88 100%);
	color: #fff;
	font-family: var(--apf-font);
}
.apf-breadcrumb ol { display: flex; flex-wrap: wrap; gap: 4px; margin: 0 0 18px; padding: 0; list-style: none; font-size: 13px; }
.apf-breadcrumb li { display: inline-flex; align-items: center; color: rgba(255, 255, 255, .9); }
.apf-breadcrumb li + li::before { content: "\203a "; margin-right: 6px; color: rgba(255, 255, 255, .7); }
.apf-breadcrumb a,
.apf-breadcrumb a:visited { color: rgba(255, 255, 255, .9); text-decoration: none; }
.apf-breadcrumb a:hover { color: #fff; text-decoration: underline; }
.apf-breadcrumb [aria-current] { font-weight: 600; }
.apf-page-intro h1 {
	position: relative;
	margin: 0 0 12px;
	padding: 0;
	color: #fff;
	font-family: var(--apf-font);
	font-size: 38px;
	font-weight: 800;
	letter-spacing: -.025em;
	line-height: 1.15;
	text-transform: none;
}
.apf-page-intro__text { max-width: 780px; margin: 0; color: rgba(255, 255, 255, .92); font-size: 17px; line-height: 1.6; }
@media (max-width: 640px) {
	.apf-page-intro { padding: 24px 0 30px; }
	.apf-page-intro h1 { font-size: 30px; }
	.apf-page-intro__text { font-size: 16px; }
}

/* Archive list
   -------------------------------------------------------------------------- */
.apf-archive { padding: 24px 0 56px; font-family: var(--apf-font); }
.apf-archive p { margin: 0; }
.apf-archive h2,
.apf-postcard__title { font-family: var(--apf-font); text-transform: none; }
.apf-device-tabs {
	display: grid;
	grid-auto-columns: minmax(0, 1fr);
	grid-auto-flow: column;
	margin-bottom: 24px;
	border: 1px solid var(--apf-line);
	border-radius: var(--apf-radius-lg);
	background: var(--apf-white);
	overflow: hidden;
}
.apf-device-tabs__tab,
.apf-device-tabs__tab:visited {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 54px;
	padding: 0 12px;
	border-bottom: 3px solid transparent;
	color: var(--apf-navy);
	font-size: 16px;
	font-weight: 600;
	text-decoration: none;
}
.apf-device-tabs__tab + .apf-device-tabs__tab { border-left: 1px solid var(--apf-line); }
.apf-device-tabs__tab:hover { background: var(--apf-bg-soft); color: var(--apf-blue); }
.apf-device-tabs__tab.is-active { background: #e8f1fa; border-bottom-color: #2f7fc1; color: var(--apf-blue-700); }
.apf-device-tabs__tab .apf-icon { width: 18px; height: 18px; }
.apf-device-tabs__count { padding: 1px 7px; border-radius: 3px; background: var(--apf-bg-tint); color: var(--apf-text); font-size: 13px; font-weight: 600; }
.apf-archive__summary { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 20px; margin-bottom: 18px; }
.apf-archive__count { color: var(--apf-ink); font-size: 17px; font-weight: 700; }
.apf-archive__showing { color: var(--apf-muted); font-size: 14px; }
.apf-archive__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px 20px; }
.apf-archive__empty { padding: 40px 0; color: var(--apf-muted); text-align: center; }
.apf-postcard--archive .apf-postcard__body { padding: 16px 16px 12px; border-bottom: 1px solid var(--apf-line); }
.apf-postcard--archive .apf-postcard__title { font-size: 20px; }
.apf-postcard--archive .apf-meta { margin-bottom: 0; }
.apf-postcard__summary { padding: 14px 16px 18px; }
.apf-postcard--archive .apf-postcard__excerpt { -webkit-line-clamp: 4; font-size: 15.5px; }

.apf-pagination { margin-top: 28px; text-align: center; }
.apf-pagination__links { display: inline-flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.apf-pagination__links a,
.apf-pagination__links span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 42px;
	height: 42px;
	padding: 0 14px;
	border: 1px solid var(--apf-line);
	border-radius: var(--apf-radius);
	background: var(--apf-white);
	color: var(--apf-navy);
	font-size: 15px;
	font-weight: 700;
	text-decoration: none;
}
.apf-pagination__links a:hover { border-color: var(--apf-blue); color: var(--apf-blue); }
.apf-pagination__links .current { background: var(--apf-navy); border-color: var(--apf-navy); color: #fff; }
.apf-pagination__links .is-disabled { color: #9aa7b4; font-weight: 600; }
.apf-pagination__links .dots { border: 0; min-width: 20px; padding: 0; }
.apf-pagination__info { margin-top: 12px !important; color: var(--apf-muted); font-size: 13.5px; }

.apf-cta-box {
	display: flex;
	align-items: center;
	gap: 18px;
	margin-top: 32px;
	padding: 20px 20px 20px 22px;
	border: 1px solid var(--apf-line);
	border-radius: var(--apf-radius-lg);
	background: var(--apf-bg-soft);
}
.apf-cta-box__icon { width: 30px; height: 30px; color: var(--apf-navy); }
.apf-cta-box__text { flex: 1; color: var(--apf-muted); font-size: 14.5px; }
.apf-cta-box__title { color: var(--apf-ink); font-size: 18px; font-weight: 700; }
.apf-cta-box .apf-button { min-height: 44px; }

@media (max-width: 1000px) {
	.apf-archive__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.apf-device-tabs { grid-auto-flow: row; grid-template-columns: 1fr 1fr; }
	.apf-device-tabs__tab + .apf-device-tabs__tab { border-left: 0; }
	.apf-device-tabs__tab { border-top: 1px solid var(--apf-line); }
}
@media (max-width: 640px) {
	.apf-archive__grid { grid-template-columns: 1fr; }
	.apf-device-tabs__tab { justify-content: flex-start; font-size: 15px; }
	.apf-cta-box { flex-direction: column; align-items: flex-start; }
}

/* Footer
   -------------------------------------------------------------------------- */
.apf-footer {
	clear: both;
	background: var(--apf-navy);
	border-top: 5px solid #2f7fc1;
	color: rgba(255, 255, 255, .82);
	font-family: var(--apf-font);
	font-size: 15px;
}
.apf-footer__main {
	display: grid;
	grid-template-columns: 1.45fr 1fr 1fr 1fr;
	gap: 40px;
	padding: 48px 0 40px;
}
.apf-footer__logo { display: inline-block; line-height: 0; }
.apf-footer .apf-footer__logo img { width: auto !important; height: 66px !important; max-width: 100%; }
.apf-footer__mission { max-width: 370px; margin: 16px 0 0; color: rgba(255, 255, 255, .82); font-size: 15.5px; line-height: 1.55; }
.apf-footer__title { margin: 0 0 12px; color: #fff; font-size: 22px; font-weight: 700; letter-spacing: -.01em; line-height: 1.2; }
.apf-footer__links { margin: 0; padding: 0; list-style: none; }
.apf-footer__links li { margin: 0 0 9px; }
.apf-footer__links a,
.apf-footer__links a:visited { color: rgba(255, 255, 255, .9); font-size: 15.5px; text-decoration: none; }
.apf-footer__links a:hover { color: #fff; text-decoration: underline; }
.apf-footer__bottom {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 8px 24px;
	padding: 20px 0 24px;
	border-top: 1px solid rgba(255, 255, 255, .16);
	font-size: 13px;
}
.apf-footer__copy { margin: 0; color: rgba(255, 255, 255, .7); }
.apf-footer__legal { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; color: rgba(255, 255, 255, .7); }
.apf-footer__legal-links { display: flex; margin: 0; padding: 0; list-style: none; }
.apf-footer__legal-links li + li::before { content: "\b7 "; margin: 0 6px; color: rgba(255, 255, 255, .6); }
.apf-footer__legal-links a,
.apf-footer__legal-links a:visited { color: #fff; font-size: 14.5px; text-decoration: none; }
.apf-footer__legal-links a:hover { text-decoration: underline; }
.apf-footer__widgets { padding-top: 40px; }
@media (max-width: 900px) {
	.apf-footer__main { grid-template-columns: repeat(3, 1fr); gap: 32px 24px; }
	.apf-footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
	.apf-footer__main { grid-template-columns: 1fr 1fr; padding-top: 36px; }
	.apf-footer__title { font-size: 19px; }
	.apf-footer__bottom { flex-direction: column; align-items: flex-start; }
}

/* Home page
   -------------------------------------------------------------------------- */
.apf-main { width: 100%; }
.apf-home h1,
.apf-home h2,
.apf-home h3 { font-family: var(--apf-font); text-transform: none; }
.apf-home p { margin: 0; }
.apf-home img { display: block; max-width: 100%; height: auto; }

/* Hero */
.apf-hero {
	padding: 48px 0 52px;
	background: var(--apf-bg-soft);
	border-bottom: 1px solid var(--apf-line-soft);
}
.apf-hero__inner {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: 48px;
	align-items: center;
}
.apf-hero__title {
	margin: 4px 0 16px;
	color: var(--apf-ink);
	font-size: 44px;
	font-weight: 700;
	letter-spacing: -.025em;
	line-height: 1.1;
}
.apf-hero__title span { display: block; color: var(--apf-blue); }
.apf-hero__text { max-width: 520px; color: var(--apf-text); font-size: 16.5px; line-height: 1.65; }
.apf-hero__search {
	display: flex;
	max-width: 520px;
	margin-top: 24px;
	border: 1px solid var(--apf-line);
	border-radius: var(--apf-radius);
	background: var(--apf-white);
	box-shadow: var(--apf-shadow);
}
.apf-hero__search:focus-within { border-color: var(--apf-blue); box-shadow: var(--apf-focus); }
.apf-hero__search-field { display: flex; flex: 1; min-width: 0; align-items: center; gap: 8px; padding-left: 14px; color: var(--apf-muted); }
.apf-hero__search input {
	flex: 1;
	min-width: 0;
	height: 46px;
	padding: 0;
	border: 0;
	background: transparent;
	color: var(--apf-ink);
	font-size: 15px;
	outline: none;
}
.apf-hero__search { overflow: hidden; }
.apf-hero__search .apf-button { min-height: 46px; margin: 0; border-radius: 0; }
.apf-hero__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.apf-hero__author { display: flex; align-items: center; gap: 10px; margin-top: 24px; color: var(--apf-muted); font-size: 13px; line-height: 1.35; }
.apf-hero__author img { width: 40px; height: 40px; border-radius: 50%; }
.apf-hero__author strong { display: block; color: var(--apf-ink); font-weight: 700; }

.apf-hero__photo {
	margin: 0;
	overflow: hidden;
	border: 1px solid var(--apf-line);
	border-radius: var(--apf-radius-lg);
	background: var(--apf-white);
	box-shadow: var(--apf-shadow);
}
.apf-hero__photo img { width: 100%; aspect-ratio: 1200 / 770; object-fit: cover; }
.apf-hero__photo figcaption {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 6px 16px;
	padding: 11px 14px;
	color: var(--apf-muted);
	font-size: 13px;
}
.apf-hero__photo figcaption span { display: inline-flex; align-items: center; gap: 6px; }
.apf-hero__photo figcaption a,
.apf-hero__photo figcaption a:visited { color: var(--apf-blue); font-weight: 700; text-decoration: none; }
.apf-hero__photo figcaption a:hover { text-decoration: underline; }

/* Test results strip */
.apf-proof { padding: 28px 0; background: var(--apf-navy); color: #fff; }
.apf-proof__inner { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 32px; align-items: center; }
.apf-proof__intro { display: flex; gap: 14px; padding-right: 28px; border-right: 1px solid rgba(255, 255, 255, .16); }
.apf-proof__icon { width: 26px; height: 26px; color: #fff; }
.apf-proof__title { margin: 0 0 4px !important; font-size: 16px; font-weight: 700; }
.apf-proof__text { color: rgba(255, 255, 255, .78); font-size: 13.5px; line-height: 1.5; }
a.apf-proof__link,
a.apf-proof__link:visited { display: inline-block; margin-top: 8px; color: #fff; font-size: 13.5px; text-decoration: underline; text-underline-offset: 3px; }
.apf-proof__link:hover { color: #fff; text-decoration-thickness: 2px; }
.apf-proof__product-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 12px; }
.apf-home .apf-proof .apf-eyebrow { color: rgba(255, 255, 255, .75); margin-bottom: 4px; }
.apf-eyebrow--live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--apf-green); }
.apf-proof__product-name { font-size: 18px; font-weight: 700; }
.apf-proof__metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 0; padding: 0; list-style: none; }
.apf-metric {
	position: relative;
	display: flex;
	flex-direction: column;
	padding: 12px 14px;
	border: 1px solid rgba(255, 255, 255, .16);
	border-radius: var(--apf-radius);
	background: rgba(255, 255, 255, .06);
}
.apf-metric__icon { position: absolute; top: 12px; right: 12px; width: 16px; height: 16px; color: rgba(255, 255, 255, .6); }
.apf-metric__value { color: #fff; font-size: 30px; font-weight: 700; letter-spacing: -.02em; line-height: 1.1; }
.apf-metric__value small { margin-left: 3px; font-size: 14px; font-weight: 500; letter-spacing: 0; }
.apf-metric.is-empty .apf-metric__value { color: rgba(255, 255, 255, .7); font-size: 16px; line-height: 33px; }
.apf-metric__label { margin-top: 4px; color: #fff; font-size: 13px; font-weight: 500; }
.apf-metric__note { color: rgba(255, 255, 255, .65); font-size: 12px; }

/* Sections */
.apf-section { padding: 56px 0; }
.apf-section--tint { background: var(--apf-bg-tint); }
.apf-section--soft { background: var(--apf-bg-soft); }
.apf-section__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.apf-home .apf-eyebrow { font-size: 12px; letter-spacing: .14em; color: var(--apf-blue-700); }
.apf-section__title { margin: 0; color: var(--apf-ink); font-size: 32px; font-weight: 800; letter-spacing: -.025em; line-height: 1.15; }
.apf-section__lead { margin-top: 8px !important; color: var(--apf-muted); font-size: 16px; }
.apf-section__link,
.apf-section__link:visited { flex: none; color: var(--apf-blue-700); font-size: 15px; font-weight: 700; text-decoration: none; }
.apf-section__link:hover { color: var(--apf-navy); text-decoration: underline; }

/* Meta line + excerpt */
.apf-meta { display: flex; flex-wrap: wrap; gap: 4px 12px; margin: 8px 0; color: var(--apf-muted); font-size: 13px; }
.apf-meta span { display: inline-flex; align-items: center; gap: 4px; }
.apf-meta .apf-icon { width: 13px; height: 13px; }
.apf-postcard__excerpt {
	display: -webkit-box;
	overflow: hidden;
	color: var(--apf-text);
	font-size: 15px;
	line-height: 1.55;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
}

/* Buying guides */
.apf-device-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: -8px 0 24px; }
.apf-device-nav__label { margin-right: 4px; color: var(--apf-muted); font-size: 14px; font-weight: 600; }
.apf-device-nav__item,
.apf-device-nav__item:visited {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 40px;
	padding: 0 16px;
	border: 1px solid var(--apf-line);
	border-radius: var(--apf-radius);
	background: var(--apf-bg-soft);
	color: var(--apf-navy);
	font-size: 15px;
	font-weight: 600;
	text-decoration: none;
}
.apf-device-nav__item:hover { border-color: var(--apf-blue); color: var(--apf-blue); }
.apf-device-nav__item .apf-icon { width: 18px; height: 18px; }
.apf-guides__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 20px; align-items: stretch; }
.apf-feature {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	border: 1px solid var(--apf-line);
	border-bottom: 4px solid #2f7fc1;
	border-radius: var(--apf-radius-lg);
	background: #edf4fb;
	box-shadow: var(--apf-shadow);
}
.apf-feature__media img { width: 100%; aspect-ratio: 1200 / 770; object-fit: cover; }
.apf-feature__body { flex: 1; padding: 20px 20px 22px; }
.apf-feature__title { margin: 0; font-size: 26px; font-weight: 800; letter-spacing: -.02em; line-height: 1.2; }
.apf-feature__title a,
.apf-row-card__title a,
.apf-postcard__title a,
.apf-tool__title a { color: var(--apf-ink); text-decoration: none; }
.apf-feature__title a:hover,
.apf-row-card__title a:hover,
.apf-postcard__title a:hover,
.apf-tool__title a:hover { color: var(--apf-blue); }
.apf-feature .apf-meta span + span::before { content: none; }
.apf-feature .apf-postcard__excerpt { -webkit-line-clamp: 3; margin: 6px 0 16px !important; font-size: 16px; }
.apf-feature .apf-button .apf-icon { width: 15px; height: 15px; }
.apf-guides__list { display: grid; grid-auto-rows: 1fr; gap: 16px; }
.apf-row-card {
	display: grid;
	grid-template-columns: 36% minmax(0, 1fr);
	align-items: center;
	overflow: hidden;
	border: 1px solid var(--apf-line);
	border-bottom: 3px solid #cfe0ef;
	border-radius: var(--apf-radius-lg);
	background: var(--apf-white);
	box-shadow: var(--apf-shadow);
}
.apf-row-card__media { align-self: center; line-height: 0; }
.apf-row-card__media img { width: 100%; aspect-ratio: 1200 / 770; object-fit: cover; }
.apf-row-card__body { padding: 16px 20px; }
.apf-row-card__title { margin: 0; font-size: 19px; font-weight: 800; letter-spacing: -.015em; line-height: 1.25; }
.apf-row-card .apf-meta { margin: 8px 0 6px; }

/* Tools */
.apf-tools__grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr); gap: 18px; }
.apf-tool {
	position: relative;
	display: flex;
	flex-direction: column;
	padding: 26px 26px 24px;
	border: 1px solid var(--apf-line);
	border-radius: 8px;
	background: var(--apf-white);
	box-shadow: var(--apf-shadow);
	transition: border-color .15s, box-shadow .15s, transform .15s;
}
.apf-tool:hover { border-color: #b9d2ea; box-shadow: 0 8px 24px rgba(15, 42, 64, .1); transform: translateY(-2px); }
.apf-tool--primary { border-top: 4px solid var(--apf-navy); background: linear-gradient(180deg, #f5f9fd 0, #fff 120px); }
.apf-tool__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 46px;
	height: 46px;
	border-radius: 10px;
	background: #e6f0fa;
	color: var(--apf-navy);
}
.apf-tool__icon .apf-icon { width: 24px; height: 24px; stroke-width: 1.9; }
.apf-tool__title { margin: 16px 0 6px; color: var(--apf-ink); font-size: 20px; font-weight: 800; letter-spacing: -.015em; line-height: 1.25; }
.apf-tool__title a::after { content: ""; position: absolute; inset: 0; border-radius: 8px; }
.apf-tool__text { color: var(--apf-muted); font-size: 15.5px; line-height: 1.55; }
.apf-tool__link,
.apf-tool__link:visited { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; margin-top: auto; padding-top: 22px; color: var(--apf-blue-700); font-size: 15px; font-weight: 700; text-decoration: none; }
.apf-tool__link .apf-icon { display: inline-block; width: 16px; height: 16px; transition: transform .15s; }
.apf-tool:hover .apf-tool__link .apf-icon { transform: translateX(3px); }
.apf-leaderboard { position: relative; z-index: 1; margin-top: 18px; padding: 14px 16px 10px; border: 1px solid var(--apf-line-soft); border-radius: 6px; background: var(--apf-white); }
.apf-leaderboard__caption { color: var(--apf-muted); font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.apf-leaderboard ol { margin: 8px 0 0; padding: 0; list-style: none; }
.apf-leaderboard li { display: flex; align-items: center; gap: 12px; padding: 7px 0; font-size: 15px; }
.apf-leaderboard li + li { border-top: 1px solid var(--apf-line-soft); }
.apf-leaderboard__rank { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 50%; background: var(--apf-navy); color: #fff; font-size: 12px; font-weight: 700; }
.apf-leaderboard li + li .apf-leaderboard__rank { background: #dbe7f3; color: var(--apf-navy); }
.apf-leaderboard__name { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.apf-leaderboard__name a,
.apf-leaderboard__name a:visited,
.apf-leaderboard__name > span:first-child { overflow: hidden; color: var(--apf-ink); font-weight: 600; text-decoration: none; text-overflow: ellipsis; white-space: nowrap; }
.apf-leaderboard__name a:hover { color: var(--apf-blue); }
.apf-leaderboard__bar { display: block; height: 5px; border-radius: 3px; background: var(--apf-bg-tint); overflow: hidden; }
.apf-leaderboard__bar span { display: block; height: 100%; border-radius: 3px; background: linear-gradient(90deg, #2f7fc1, #5aa4e6); }
.apf-leaderboard strong { flex: none; color: var(--apf-blue-700); font-weight: 800; white-space: nowrap; }

/* Reviews + comparisons: one white panel each */
.apf-panel {
	padding: 32px 32px 34px;
	border: 1px solid var(--apf-line);
	border-radius: var(--apf-radius-lg);
	background: var(--apf-white);
	box-shadow: var(--apf-shadow);
}
.apf-panel + .apf-panel { margin-top: 28px; }
.apf-panel .apf-section__head { align-items: center; margin-bottom: 24px; padding-bottom: 18px; border-bottom: 1px solid var(--apf-line); }
.apf-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.apf-postcard {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	border: 1px solid var(--apf-line);
	border-bottom: 3px solid #cfe0ef;
	border-radius: var(--apf-radius-lg);
	background: var(--apf-white);
}
.apf-postcard__media { position: relative; display: block; line-height: 0; }
.apf-postcard__media img { width: 100%; aspect-ratio: 1200 / 770; object-fit: cover; }
.apf-postcard__body { padding: 16px 18px 18px; }
.apf-postcard__title { margin: 0; font-size: 18px; font-weight: 800; letter-spacing: -.015em; line-height: 1.3; }

/* Review score on the photo (top left), same colour logic as before. */
.apf-score {
	position: absolute;
	top: 12px;
	left: 12px;
	padding: 7px 10px 6px;
	border-radius: 5px;
	color: #fff;
	text-shadow: 0 1px 1px rgba(0, 0, 0, .18);
	box-shadow: 0 2px 6px rgba(0, 0, 0, .18);
	font-size: 20px;
	font-weight: 800;
	line-height: 1;
}
.apf-score small { font-size: 12px; font-weight: 600; }
.apf-score--green { background: #5aab18; }
.apf-score--orange { background: #f07a2e; }
.apf-score--red { background: var(--apf-red); color: #fff; }

/* Blog */
.apf-blog .apf-section__head { align-items: center; padding-bottom: 14px; border-bottom: 1px solid var(--apf-line); }
.apf-blog .apf-section__title { font-size: 26px; color: var(--apf-navy); }
.apf-blog__list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; margin: 0; padding: 0; list-style: none; }
.apf-blog__list a,
.apf-blog__list a:visited { display: block; color: var(--apf-blue-700); font-size: 17px; font-weight: 700; line-height: 1.4; text-decoration: none; }
.apf-blog__list a:hover { color: var(--apf-navy); text-decoration: underline; }
.apf-blog__list time { display: block; margin-top: 6px; color: var(--apf-muted); font-size: 13px; }

/* Home responsive */
@media (max-width: 1000px) {
	.apf-hero__inner { grid-template-columns: minmax(0, 1fr); gap: 32px; }
	.apf-hero__title { font-size: 38px; }
	.apf-proof__inner { grid-template-columns: 1fr; gap: 20px; }
	.apf-proof__intro { padding: 0 0 18px; border-right: 0; border-bottom: 1px solid rgba(255, 255, 255, .16); }
	.apf-guides__grid { grid-template-columns: 1fr; }
	.apf-guides__list { grid-auto-rows: auto; }
	.apf-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.apf-tools__grid { grid-template-columns: 1fr 1fr; }
	.apf-tool--primary { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
	:root { --apf-gutter: 16px; }
	.apf-hero { padding: 32px 0 36px; }
	.apf-hero__title { font-size: 31px; }
	.apf-hero__text { font-size: 15.5px; }
	.apf-hero__actions .apf-button { flex: 1 1 auto; }
	.apf-section { padding: 40px 0; }
	.apf-section__head { align-items: flex-start; flex-direction: column; gap: 8px; }
	.apf-section__title { font-size: 26px; }
	.apf-feature__title { font-size: 22px; }
	.apf-proof__product-head { flex-direction: column; }
	.apf-proof__metrics { grid-template-columns: 1fr; }
	.apf-metric { display: grid; grid-template-columns: auto 1fr; column-gap: 12px; align-items: baseline; }
	.apf-metric__value { grid-row: span 2; font-size: 26px; }
	.apf-row-card { grid-template-columns: 120px minmax(0, 1fr); }
	.apf-row-card__body { padding: 12px 14px; }
	.apf-row-card__title { font-size: 16px; }
	.apf-row-card .apf-postcard__excerpt { display: none; }
	.apf-panel { padding: 20px 16px; margin: 0 calc(-1 * var(--apf-gutter) + 6px); }
	.apf-panel .apf-section__head { flex-direction: row; align-items: center; }
	.apf-cards,
	.apf-tools__grid,
	.apf-blog__list { grid-template-columns: 1fr; }
}

/* Tool pages (light hero) + Test Results Database
   -------------------------------------------------------------------------- */
.apf-tool-page { font-family: var(--apf-font); }
.apf-tool-page h1,
.apf-tool-page h2 { font-family: var(--apf-font); text-transform: none; }
.apf-tool-page p { margin: 0; }
.apf-breadcrumb--light ol { margin-bottom: 26px; font-size: 12.5px; }
.apf-breadcrumb--light li,
.apf-breadcrumb--light a,
.apf-breadcrumb--light a:visited { color: var(--apf-muted); }
.apf-breadcrumb--light li + li::before { color: var(--apf-muted); }
.apf-breadcrumb--light a:hover { color: var(--apf-blue); }
.apf-breadcrumb--light [aria-current] { color: var(--apf-ink); }
.apf-tool-page .apf-eyebrow { color: var(--apf-blue-700); font-size: 12px; letter-spacing: .12em; }

.apf-tool-page__body { padding-top: 24px; padding-bottom: 56px; }
.apf-tool-switch { display: grid; grid-template-columns: 1fr 1fr; margin-bottom: 18px; border: 1px solid var(--apf-line); border-radius: 6px; overflow: hidden; background: var(--apf-white); }
.apf-tool-switch__item,
.apf-tool-switch__item:visited { display: flex; align-items: center; gap: 14px; padding: 14px 18px; border-bottom: 3px solid transparent; color: var(--apf-muted); font-size: 13px; text-decoration: none; }
.apf-tool-switch__item + .apf-tool-switch__item { border-left: 1px solid var(--apf-line); }
.apf-tool-switch__item strong { display: block; color: var(--apf-navy); font-size: 15px; }
.apf-tool-switch__item .apf-icon { width: 22px; height: 22px; color: var(--apf-navy); }
.apf-tool-switch__item.is-active { background: #edf4fb; border-bottom-color: #2f7fc1; }
a.apf-tool-switch__item:hover { background: var(--apf-bg-soft); }

.apf-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-bottom: 18px; border-radius: 6px; background: var(--apf-navy); color: #fff; overflow: hidden; }
.apf-stats__item { display: flex; flex-direction: column; gap: 2px; padding: 16px 18px; }
.apf-stats__item + .apf-stats__item { border-left: 1px solid rgba(255, 255, 255, .14); }
.apf-stats__label { color: rgba(255, 255, 255, .75); font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.apf-stats__value { font-size: 30px; font-weight: 800; line-height: 1.15; }
.apf-stats__value small { margin-left: 6px; font-size: 15px; font-weight: 600; }
.apf-stats__note { color: rgba(255, 255, 255, .72); font-size: 12.5px; }
.apf-stats__item--note { flex-direction: row; align-items: center; gap: 12px; font-size: 12.5px; color: rgba(255, 255, 255, .78); }
.apf-stats__item--note strong { display: block; color: #fff; font-size: 15px; }
.apf-stats__item--note .apf-icon { flex: none; width: 26px; height: 26px; }

.apf-trdb__types { display: grid; grid-auto-columns: minmax(0, 1fr); grid-auto-flow: column; border: 1px solid var(--apf-line); border-bottom: 0; border-radius: 6px 6px 0 0; overflow: hidden; }
.apf-trdb__type { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 10px; border: 0; border-bottom: 3px solid transparent; background: var(--apf-white); color: var(--apf-navy); font-family: var(--apf-font); font-size: 14.5px; font-weight: 600; cursor: pointer; }
.apf-trdb__type + .apf-trdb__type { border-left: 1px solid var(--apf-line); }
.apf-trdb__type[aria-selected="true"] { background: #e8f1fa; border-bottom-color: #2f7fc1; color: var(--apf-blue-700); }
.apf-trdb__type .apf-icon { width: 17px; height: 17px; }
.apf-trdb__filters { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 12px 14px; padding: 16px; border: 1px solid var(--apf-line); border-radius: 0 0 6px 6px; background: var(--apf-bg-soft); }
.apf-field { display: flex; flex-direction: column; gap: 6px; margin: 0; color: var(--apf-ink); font-size: 13px; font-weight: 600; }
.apf-field[hidden] { display: none; }
.apf-field input,
.apf-field select { width: 100%; height: 40px; padding: 0 12px; border: 1px solid var(--apf-line); border-radius: 4px; background: var(--apf-white); color: var(--apf-ink); font-family: var(--apf-font); font-size: 14px; }
.apf-field input:focus,
.apf-field select:focus { border-color: var(--apf-blue); outline: 2px solid rgba(31, 100, 163, .2); }
.apf-trdb__hint { grid-column: 1 / -1; display: flex; justify-content: space-between; gap: 12px; color: var(--apf-muted); font-size: 12.5px; }
.apf-linkbutton { padding: 0; border: 0; background: none; color: var(--apf-blue-700); font-family: var(--apf-font); font-size: 13px; font-weight: 700; text-decoration: underline; cursor: pointer; }

.apf-trdb__bar { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px; margin: 24px 0 12px; }
.apf-trdb__count { color: var(--apf-ink); font-size: 16px; font-weight: 700; }
.apf-trdb__showing { color: var(--apf-muted); font-size: 12.5px; }
.apf-trdb__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.apf-trdb__rows { display: inline-flex; align-items: center; gap: 8px; color: var(--apf-muted); font-size: 13px; }
.apf-trdb__rows select { height: 38px; padding: 0 8px; border: 1px solid var(--apf-line); border-radius: 4px; background: var(--apf-white); }
.apf-trdb__actions .apf-button { min-height: 38px; font-size: 13.5px; }
.apf-trdb__columns { position: relative; }
.apf-trdb__columns summary { list-style: none; cursor: pointer; }
.apf-trdb__columns summary::-webkit-details-marker { display: none; }
.apf-trdb__columns-list { position: absolute; right: 0; z-index: 20; display: grid; gap: 8px; min-width: 220px; margin-top: 6px; padding: 12px 14px; border: 1px solid var(--apf-line); border-radius: 6px; background: var(--apf-white); box-shadow: 0 10px 24px rgba(15, 42, 64, .14); font-size: 14px; }
.apf-trdb__columns-list { max-height: 360px; overflow-y: auto; min-width: 260px; }
.apf-trdb__columns-list label { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 8px; cursor: pointer; }
.apf-kind { padding: 1px 6px; border-radius: 3px; background: var(--apf-bg-tint); color: var(--apf-muted); font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.apf-kind--measured { background: #e6f0fa; color: var(--apf-blue-700); }
.apf-kind--calc { background: #fff0e8; color: #a14a16; }
.apf-kind--rating,
.apf-kind--rating-sub { background: #eef8e7; color: #2f6f1a; }

/* Shortlist (max 4 devices of the same type) */
.apf-shortlist { position: sticky; bottom: 12px; z-index: 30; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-top: 16px; padding: 12px 16px; border: 1px solid #c8dbee; border-radius: 10px; background: rgba(255, 255, 255, .97); box-shadow: 0 14px 34px rgba(15, 42, 64, .18); backdrop-filter: blur(6px); }
.apf-shortlist[hidden] { display: none; }
.apf-shortlist__icon { display: grid; place-items: center; flex: none; width: 38px; height: 38px; border-radius: 50%; background: var(--apf-brand); color: #fff; }
.apf-shortlist__icon .apf-icon { width: 18px; height: 18px; }
.apf-shortlist__text { display: flex; flex-direction: column; line-height: 1.3; }
.apf-shortlist__text strong { color: var(--apf-ink); font-size: 14.5px; }
.apf-shortlist__text span { color: var(--apf-muted); font-size: 12.5px; }
.apf-shortlist__chips { display: flex; flex: 1 1 260px; flex-wrap: wrap; gap: 6px; margin: 0 !important; padding: 0; list-style: none; }
.apf-chip { display: inline-flex; align-items: center; gap: 4px; max-width: 240px; padding: 4px 4px 4px 10px; border: 1px solid #c8dbee; border-radius: 999px; background: #edf4fb; color: var(--apf-navy); font-size: 13px; font-weight: 600; }
.apf-chip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.apf-chip button { display: grid; place-items: center; width: 22px; height: 22px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--apf-muted); font-size: 16px; line-height: 1; cursor: pointer; }
.apf-chip button:hover { background: #d6e6f5; color: var(--apf-ink); }
.apf-shortlist__only { display: inline-flex; align-items: center; gap: 6px; color: var(--apf-text); font-size: 13.5px; font-weight: 600; cursor: pointer; }
.apf-shortlist .apf-button { min-height: 40px; white-space: nowrap; }
.apf-table tbody tr.is-selected { background: #eef6fd; box-shadow: inset 3px 0 0 var(--apf-brand); }

/* Chart popover */
.apf-chart__plot { position: relative; }
.apf-chart__plot .dot.is-selected { fill: var(--apf-coral); }
.apf-chart__plot .dot.is-active { fill: var(--apf-brand); stroke: var(--apf-navy); stroke-width: 2; }
.apf-chart__pop { position: absolute; z-index: 5; width: 260px; max-width: 100%; padding: 12px 14px; border: 1px solid var(--apf-line); border-radius: 8px; background: var(--apf-white); box-shadow: 0 14px 30px rgba(15, 42, 64, .2); font-size: 13px; }
.apf-chart__pop-head { display: flex; align-items: flex-start; gap: 10px; }
.apf-chart__pop-head img { flex: none; width: 44px; height: 44px; border-radius: 4px; object-fit: cover; }
.apf-chart__pop-head div { flex: 1; min-width: 0; }
.apf-chart__pop-head strong { display: block; color: var(--apf-ink); font-size: 14px; line-height: 1.3; }
.apf-chart__pop-head small { color: var(--apf-muted); font-size: 12px; }
.apf-chart__pop-close { flex: none; width: 24px; height: 24px; padding: 0; border: 0; border-radius: 50%; background: var(--apf-bg-tint); color: var(--apf-muted); font-size: 16px; line-height: 1; cursor: pointer; }
.apf-chart__pop dl { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; margin: 10px 0 0 !important; padding-top: 8px; border-top: 1px solid var(--apf-line-soft); }
.apf-chart__pop dt { color: var(--apf-muted); }
.apf-chart__pop dd { margin: 0; color: var(--apf-ink); font-weight: 700; text-align: right; }
.apf-chart__pop-actions { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; margin-top: 10px; }
.apf-chart__pop-actions a { color: var(--apf-blue-700); font-weight: 700; text-decoration: none; }
.apf-button.is-disabled { opacity: .5; pointer-events: none; }

.apf-table-wrap { overflow-x: auto; border: 1px solid var(--apf-line); border-radius: 6px; background: var(--apf-white); }
.apf-table { width: 100%; min-width: 880px; margin: 0; border-collapse: collapse; font-size: 14px; }
.apf-table th,
.apf-table td { padding: 10px 12px; border-bottom: 1px solid var(--apf-line-soft); text-align: right; vertical-align: middle; white-space: nowrap; }
.apf-table thead th { position: sticky; top: 0; background: #eef3f8; color: var(--apf-navy); font-size: 12.5px; font-weight: 700; border-bottom: 1px solid var(--apf-line); }
.apf-table .apf-table__device { text-align: left; }
.apf-table .apf-table__select { width: 36px; text-align: center; }
.apf-table__sort { padding: 0; border: 0; background: none; color: inherit; font: inherit; cursor: pointer; }
.apf-table__sort::after { content: " \2195 "; color: #9fb0c1; }
[aria-sort="ascending"] .apf-table__sort::after { content: " \2191 "; color: var(--apf-blue); }
[aria-sort="descending"] .apf-table__sort::after { content: " \2193 "; color: var(--apf-blue); }
.apf-table tbody tr:hover { background: #f7fafd; }
.apf-table td.is-measured { color: var(--apf-blue-700); font-weight: 500; }
.apf-table td.is-spec { color: var(--apf-muted); }
.apf-table td.is-empty { color: #9aa7b4; font-weight: 400; }
.apf-table__empty { padding: 32px !important; color: var(--apf-muted); text-align: center !important; }
.apf-device { display: flex; align-items: center; gap: 10px; }
.apf-device img,
.apf-device__placeholder { flex: none; width: 40px; height: 40px; border-radius: 4px; object-fit: cover; background: var(--apf-bg-tint); }
.apf-device__text { display: flex; flex-direction: column; line-height: 1.3; }
.apf-device__text a,
.apf-device__text strong { color: var(--apf-ink); font-weight: 600; text-decoration: none; }
.apf-device__text a:hover { color: var(--apf-blue); }
.apf-device__text small { color: var(--apf-muted); font-size: 11.5px; }
.apf-device__text small.is-measured { color: #2c8a3e; font-weight: 600; }
.apf-rating { display: inline-block; padding: 3px 7px; border: 1px solid; border-radius: 4px; font-weight: 800; }
.apf-rating small { font-size: 10px; font-weight: 600; }
.apf-rating--green { border-color: #a7d98a; background: #eef8e7; color: #2f6f1a; }
.apf-rating--orange { border-color: #f4c08f; background: #fff4e8; color: #9a4b0b; }
.apf-rating--red { border-color: #efa99c; background: #fdeeeb; color: #a22d1a; }
.apf-trdb__footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-top: 10px; }
.apf-trdb__legend { display: flex; flex-wrap: wrap; gap: 6px 14px; color: var(--apf-muted); font-size: 12px; }
.apf-legend::before { content: ""; display: inline-block; width: 10px; height: 10px; margin-right: 5px; border-radius: 2px; vertical-align: -1px; }
.apf-legend--measured::before { background: var(--apf-blue-700); }
.apf-legend--spec::before { background: #b5c2cf; }
.apf-legend--rating::before { background: #7fd03c; }
.apf-legend--calc::before { background: var(--apf-amazon); }
.apf-table td.is-calc { color: #a14a16; font-weight: 500; }
.apf-table__sub { display: block; margin-top: 2px; color: var(--apf-muted); font-size: 11px; font-weight: 500; }
.apf-trdb__note { margin: 10px 0 0; padding: 10px 14px; border-left: 3px solid var(--apf-amazon); border-radius: 0 6px 6px 0; background: #fff7f1; color: var(--apf-ink); font-size: 13px; line-height: 1.5; }
.apf-trdb__note strong { font-weight: 600; }
a.apf-trdb__type { text-decoration: none; }
.apf-trdb__type.is-active { background: #e8f1fa; border-bottom-color: var(--apf-brand); color: var(--apf-blue-700); }
.apf-stats__value--date { font-size: 22px; }
.apf-trdb__pager { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--apf-muted); }
.apf-pager__btn { min-height: 32px; padding: 0 12px; border: 1px solid var(--apf-line); border-radius: 4px; background: var(--apf-white); color: var(--apf-navy); font-family: var(--apf-font); font-weight: 600; cursor: pointer; }
.apf-pager__btn:disabled { color: #9aa7b4; cursor: default; }
.apf-trdb__conditions { margin-top: 12px !important; color: var(--apf-muted); font-size: 12.5px; line-height: 1.5; }

.apf-trdb__charts { margin-top: 48px; }
.apf-trdb__charts[hidden] { display: none; }
.apf-trdb__chart-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 18px; }
.apf-chart { margin: 0; padding: 16px; border: 1px solid var(--apf-line); border-radius: 6px; background: var(--apf-white); }
.apf-chart figcaption strong { display: block; color: var(--apf-ink); font-size: 16px; }
.apf-chart figcaption span { color: var(--apf-muted); font-size: 12.5px; }
.apf-chart__plot svg { display: block; width: 100%; height: auto; margin-top: 10px; font-family: var(--apf-font); font-size: 11px; fill: var(--apf-muted); }
.apf-chart__plot .grid { stroke: #e3e9ef; }
.apf-chart__plot .axis { fill: var(--apf-text); font-size: 11.5px; }
.apf-chart__plot .dot { fill: var(--apf-navy); stroke: #fff; stroke-width: 1.5; cursor: pointer; }
.apf-chart__plot .dot:hover,
.apf-chart__plot .dot:focus { fill: #2f7fc1; outline: none; }
.apf-chart__note { margin-top: 6px !important; padding-top: 8px; border-top: 1px solid var(--apf-line-soft); color: var(--apf-muted); font-size: 12px; }

.apf-trdb__about { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 24px; align-items: start; margin-top: 48px; }
.apf-trdb__about > div > p { margin-top: 10px !important; color: var(--apf-text); font-size: 15px; line-height: 1.6; }
.apf-accordion { margin-top: 16px; border: 1px solid var(--apf-line); border-radius: 6px; background: var(--apf-white); }
.apf-accordion summary { padding: 14px 16px; color: var(--apf-ink); font-weight: 700; cursor: pointer; }
.apf-accordion ul,
.apf-accordion p { margin: 0 16px 14px !important; padding-left: 18px; color: var(--apf-text); font-size: 14px; line-height: 1.6; }
.apf-accordion p { padding-left: 0; }
.apf-cite { padding: 18px; border: 1px solid var(--apf-line); border-radius: 6px; background: var(--apf-bg-soft); }
.apf-cite__title { color: var(--apf-ink); font-size: 18px; font-weight: 800; }
.apf-cite__text { margin: 10px 0 12px !important; color: var(--apf-text); font-size: 13.5px; font-style: italic; line-height: 1.5; word-break: break-word; }

@media (max-width: 1000px) {
	.apf-stats { grid-template-columns: 1fr 1fr; }
	.apf-stats__item:nth-child(3) { border-left: 0; }
	.apf-stats__item:nth-child(n+3) { border-top: 1px solid rgba(255, 255, 255, .14); }
	.apf-stats__item--note { grid-column: 1 / -1; }
	.apf-trdb__filters { grid-template-columns: 1fr 1fr; }
	.apf-trdb__chart-grid,
	.apf-trdb__about { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
	.apf-tool-switch { grid-template-columns: 1fr; }
	.apf-tool-switch__item + .apf-tool-switch__item { border-left: 0; border-top: 1px solid var(--apf-line); }
	.apf-trdb__types { grid-auto-flow: row; grid-template-columns: 1fr 1fr; }
	.apf-trdb__filters { grid-template-columns: 1fr; }
	.apf-stats__value { font-size: 24px; }
}

/* Neutralise legacy global table rules (td min-width 200px, grey tbody th). */
.apf-table { table-layout: auto; }
.apf-table td,
.apf-table th { min-width: 0 !important; }
.apf-table tbody th { background: transparent; font-weight: 400; }
.apf-table .apf-table__device { min-width: 220px !important; }
.apf-device img { height: 40px !important; aspect-ratio: 1 / 1; }

/* ==========================================================================
   Round 3 refinements
   ========================================================================== */

/* Brand accents */
.apf-proof__icon { color: var(--apf-brand-green); }
.apf-eyebrow--live::before { background: var(--apf-brand-green); }
.apf-feature { border-bottom-color: var(--apf-brand); }
.apf-leaderboard__bar span { background: linear-gradient(90deg, #2f7fc1, var(--apf-brand)); }
.apf-device-tabs__tab.is-active,
.apf-trdb__type[aria-selected="true"],
.apf-tool-switch__item.is-active { border-bottom-color: var(--apf-brand); }
.apf-footer { border-top-color: var(--apf-brand); }

/* Card meta links */
.apf-meta a,
.apf-meta a:visited { display: inline-flex; align-items: center; gap: 4px; color: inherit; text-decoration: none; }
.apf-meta a:hover { color: var(--apf-blue); text-decoration: underline; }

/* Hero photo: framed, with an offset tinted block behind it */
.apf-hero__photo { position: relative; padding: 10px 10px 0; border-radius: 10px; }
.apf-hero__photo::before {
	content: "";
	position: absolute;
	z-index: -1;
	inset: 18px -14px -14px 18px;
	border-radius: 12px;
	background: linear-gradient(135deg, rgba(52, 152, 219, .22), rgba(52, 152, 219, .06));
}
.apf-hero__inner { isolation: isolate; }
.apf-hero__photo img { border-radius: 6px; }
.apf-hero__photo figcaption { padding: 12px 6px 12px; }
.apf-hero { padding-bottom: 64px; }

/* Lines between home sections */
.apf-home .apf-section + .apf-section { border-top: 1px solid var(--apf-line); }
.apf-home .apf-proof + .apf-section { border-top: 0; }

/* Buying guides list: inset, centred photos */
.apf-row-card { align-items: stretch; }
.apf-row-card { align-items: stretch; transition: border-color .15s, box-shadow .15s; }
.apf-row-card:hover { border-color: #b9d2ea; box-shadow: 0 8px 24px rgba(15, 42, 64, .1); }
.apf-row-card__media { position: relative; display: block; align-self: stretch; min-height: 0; aspect-ratio: 1200 / 770; overflow: hidden; background: var(--apf-bg-soft); }
.apf-row-card__media img { position: absolute; inset: 0; width: 100%; height: 100% !important; /* beats the legacy img { height: auto !important } */ aspect-ratio: auto; object-fit: cover; border-radius: 0; box-shadow: none; transition: transform .3s; }
.apf-row-card:hover .apf-row-card__media img { transform: scale(1.03); }
.apf-row-card__body { align-self: center; }
.apf-row-card__body { display: flex; flex-direction: column; justify-content: center; padding: 18px 22px; }
/* Buying guides on the home page: bigger photo, shown whole (same ratio as the featured images). */
.apf-guides__list .apf-row-card { grid-template-columns: 46% minmax(0, 1fr); }
.apf-guides__list .apf-row-card__title { font-size: 20px; }
@media (max-width: 640px) {
	.apf-guides__list .apf-row-card { grid-template-columns: 42% minmax(0, 1fr); }
	.apf-guides__list .apf-row-card__title { font-size: 16px; }
}

/* Footer social */
.apf-footer__social { display: flex; gap: 8px; margin: 18px 0 0; padding: 0; list-style: none; }
.apf-footer__social a { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border: 1px solid rgba(255, 255, 255, .22); border-radius: 6px; color: #fff; }
.apf-footer__social a:hover { background: var(--apf-brand); border-color: var(--apf-brand); color: #fff; }
.apf-footer__social .apf-icon { width: 17px; height: 17px; }

/* Category / page intro: subtle light accents */
.apf-page-intro {
	position: relative;
	overflow: hidden;
	background:
		radial-gradient(circle at 88% 15%, rgba(52, 152, 219, .28), transparent 42%),
		radial-gradient(circle at 70% 120%, rgba(145, 217, 45, .10), transparent 40%),
		linear-gradient(110deg, #17405f 0%, #1b5279 55%, #1d5e88 100%);
}
.apf-page-intro::after {
	content: "";
	position: absolute;
	right: -60px;
	bottom: -80px;
	width: 320px;
	height: 320px;
	border: 1px solid rgba(255, 255, 255, .08);
	border-radius: 50%;
	box-shadow: 0 0 0 40px rgba(255, 255, 255, .03), 0 0 0 80px rgba(255, 255, 255, .02);
	pointer-events: none;
}
.apf-page-intro .apf-container { position: relative; z-index: 1; }
.apf-author-intro { display: flex; align-items: flex-start; gap: 24px; }
.apf-author-intro__photo { flex: none; width: 96px !important; height: 96px !important; border: 3px solid rgba(255, 255, 255, .8); border-radius: 50%; }
.apf-author-intro h1 { margin-bottom: 14px; }

/* Plain pages: content directly under the intro */
.page-template-default #page,
.page-template-page-nosidebar #page { padding-top: 28px; }

/* Search page / empty states */
.apf-search-page__form { display: flex; max-width: 640px; margin: 4px 0 24px; border: 1px solid var(--apf-line); border-radius: var(--apf-radius); background: var(--apf-white); box-shadow: var(--apf-shadow); overflow: hidden; }
.apf-search-page__form .apf-hero__search-field input { flex: 1; min-width: 0; height: 48px; padding: 0; border: 0; background: transparent; color: var(--apf-ink); font-size: 16px; outline: none; }
.apf-search-page__form .apf-button { min-height: 48px; border-radius: 0; }
.apf-empty { max-width: 640px; margin: 24px auto; padding: 36px 28px; border: 1px solid var(--apf-line); border-radius: 8px; background: var(--apf-bg-soft); text-align: center; }
.apf-empty__icon { width: 36px; height: 36px; color: var(--apf-brand); }
.apf-empty__title { margin: 12px 0 6px !important; color: var(--apf-ink); font-size: 20px; font-weight: 800; }
.apf-empty .apf-search-page__form { margin: 18px auto; text-align: left; }
.apf-empty__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 18px; margin-top: 14px !important; }
.apf-empty__links a { color: var(--apf-blue-700); font-weight: 700; }

/* Test Results Database table depth */
.apf-table-wrap { border-color: #d5dfe8; box-shadow: 0 2px 4px rgba(15, 42, 64, .05), 0 8px 24px rgba(15, 42, 64, .07); }
.apf-table tbody tr:nth-child(even) { background: #fafcfe; }
.apf-table .apf-table__device { position: sticky; left: 0; z-index: 1; background: inherit; box-shadow: 1px 0 0 var(--apf-line); }
.apf-table tbody tr { background: #fff; }
.apf-table tbody tr.is-selected { background: #eef8e7; }
.apf-table thead .apf-table__device { z-index: 2; background: #eef3f8; }

/* ==========================================================================
   Amazon button (prices only from AAWP)
   ========================================================================== */
.apf-amazon { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 42px; padding: 0 16px; border-radius: 6px; background: var(--apf-amazon); color: #fff !important; font-size: 14.5px; font-weight: 800; text-decoration: none !important; box-shadow: 0 2px 0 rgba(0, 0, 0, .08); transition: background .15s ease, transform .15s ease; }
.apf-amazon:hover { background: var(--apf-amazon-hover); transform: translateY(-1px); }
.apf-amazon del { color: rgba(255, 255, 255, .8); font-weight: 600; }
.apf-amazon--block { display: flex; width: 100%; }
.apf-amazon__time { display: block; margin-top: 4px; color: var(--apf-muted); font-size: 11px; text-align: center; }

/* ==========================================================================
   Compare devices
   ========================================================================== */
.apf-cmp-c0 { --apf-c: var(--apf-brand); }
.apf-cmp-c1 { --apf-c: var(--apf-coral); }
.apf-cmp-c2 { --apf-c: #5fae1f; }
.apf-cmp-c3 { --apf-c: #8a5cd6; }

.apf-cmp-picker { margin-bottom: 28px; }
.apf-cmp-picker__body { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)) auto; gap: 12px; align-items: end; padding: 16px; border: 1px solid var(--apf-line); border-radius: 0 0 6px 6px; background: var(--apf-bg-soft); }
.apf-cmp-picker__slot > span { display: flex; align-items: center; gap: 6px; }
.apf-cmp-picker__slot > span::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--apf-c); }
.apf-cmp-picker__slot small { color: var(--apf-muted); font-weight: 500; }
.apf-cmp-picker__slot select { width: 100%; }
.apf-cmp-picker .apf-button { min-height: 44px; }

.apf-cmp-empty .apf-icon { width: 36px; height: 36px; color: var(--apf-brand); }
.apf-cmp-empty h2 { margin: 12px 0 6px !important; font-size: 22px; }

.apf-cmp-heads { display: grid; gap: 12px; margin-bottom: 32px; }
.apf-cmp-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.apf-cmp-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.apf-cmp-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.apf-cmp-head { position: relative; display: flex; flex-direction: column; padding: 16px; border: 1px solid var(--apf-line); border-top: 4px solid var(--apf-c); border-radius: 8px; background: var(--apf-white); box-shadow: 0 6px 18px rgba(15, 42, 64, .06); text-align: center; }
.apf-cmp-head__remove { position: absolute; top: 8px; right: 10px; color: var(--apf-muted); font-size: 20px; line-height: 1; text-decoration: none; }
.apf-cmp-head__img { display: grid; place-items: center; height: 130px; margin-bottom: 10px; }
.apf-cmp-head__img img { max-width: 130px; max-height: 130px; object-fit: contain; }
.apf-cmp-head__brand { margin: 0 !important; color: var(--apf-muted); font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.apf-cmp-head__name { margin: 2px 0 8px !important; color: var(--apf-ink); font-size: 18px; line-height: 1.25; }
.apf-cmp-head__rating { margin: 0 0 10px !important; color: var(--apf-muted); font-size: 12.5px; }
.apf-cmp-head__actions { display: grid; gap: 8px; margin-top: auto; }

.apf-cmp-section { margin-top: 44px; padding-top: 32px; border-top: 1px solid var(--apf-line); }
.apf-cmp-section:first-of-type { margin-top: 0; }

.apf-cmp-tally { display: grid; gap: 10px; margin: 18px 0 22px !important; padding: 0; list-style: none; }
.apf-cmp-tally li { display: grid; grid-template-columns: minmax(140px, 260px) 1fr auto; gap: 14px; align-items: center; }
.apf-cmp-tally__name { color: var(--apf-ink); font-weight: 700; }
.apf-cmp-tally__bar { height: 12px; border-radius: 99px; background: var(--apf-bg-tint); overflow: hidden; }
.apf-cmp-tally__bar span { display: block; height: 100%; border-radius: inherit; background: var(--apf-c); }
.apf-cmp-tally__n { color: var(--apf-muted); font-size: 13px; font-weight: 600; }
.apf-cmp-tally li.is-leader .apf-cmp-tally__name::after { content: "Leader"; margin-left: 8px; padding: 2px 7px; border-radius: 4px; background: var(--apf-c); color: #fff; font-size: 11px; vertical-align: 2px; }

.apf-cmp-winners { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; }
.apf-cmp-winner { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; border: 1px solid var(--apf-line); border-left: 4px solid var(--apf-c); border-radius: 6px; background: var(--apf-white); }
.apf-cmp-winner__label { color: var(--apf-muted); font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.apf-cmp-winner strong { color: var(--apf-ink); font-size: 15.5px; line-height: 1.3; }
.apf-cmp-winner__value { display: inline-flex; align-items: center; gap: 6px; color: var(--apf-c); font-weight: 800; }
.apf-cmp-winner__value small { color: var(--apf-muted); font-weight: 500; font-size: 11.5px; }
.apf-cmp-winner .apf-icon,
.apf-cmp-bar__value .apf-icon { width: 15px; height: 15px; }

.apf-cmp-legend { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 14px 0 !important; padding: 0; list-style: none; font-size: 13.5px; font-weight: 600; color: var(--apf-ink); }
.apf-cmp-legend li::before { content: ""; display: inline-block; width: 12px; height: 12px; margin-right: 6px; border-radius: 3px; background: var(--apf-c); vertical-align: -1px; }

.apf-cmp-bars { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.apf-cmp-bar { padding: 14px 16px; border: 1px solid var(--apf-line); border-radius: 8px; background: var(--apf-white); }
.apf-cmp-bar h3 { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 10px !important; color: var(--apf-ink); font-size: 15px; }
.apf-cmp-bar__hint { margin-left: auto; color: var(--apf-muted); font-size: 11.5px; font-weight: 500; }
.apf-cmp-bar__row { display: grid; grid-template-columns: minmax(90px, 140px) 1fr minmax(70px, auto); gap: 10px; align-items: center; padding: 3px 0; font-size: 13px; }
.apf-cmp-bar__name { overflow: hidden; color: var(--apf-text); text-overflow: ellipsis; white-space: nowrap; }
.apf-cmp-bar__track { height: 10px; border-radius: 99px; background: var(--apf-bg-tint); overflow: hidden; }
.apf-cmp-bar__track span { display: block; height: 100%; border-radius: inherit; background: var(--apf-c); opacity: .55; }
.apf-cmp-bar__row.is-winner .apf-cmp-bar__track span { opacity: 1; }
.apf-cmp-bar__value { display: inline-flex; align-items: center; justify-content: flex-end; gap: 4px; color: var(--apf-ink); font-weight: 700; text-align: right; white-space: nowrap; }
.apf-cmp-bar__row.is-winner .apf-cmp-bar__value { color: var(--apf-c); }

.apf-cmp-chart .apf-chart__plot svg { margin-top: 0; }
.apf-cmp-line { fill: none; stroke: var(--apf-c); stroke-width: 2.5; stroke-linejoin: round; }
.apf-cmp-end { fill: var(--apf-c); stroke: #fff; stroke-width: 2; }

.apf-cmp-table { min-width: 560px; }
.apf-cmp-table th,
.apf-cmp-table td { text-align: left; white-space: normal; }
.apf-cmp-table thead th { border-bottom: 3px solid var(--apf-c, var(--apf-line)); }
.apf-cmp-table tbody th { width: 22%; color: var(--apf-navy); font-weight: 700; }
.apf-cmp-table td.is-best { color: #2f6f1a; font-weight: 800; }
.apf-cmp-table td.is-best::after { content: " \2605 "; color: var(--apf-brand-green); }
.apf-cmp-table__buy td { vertical-align: top; }

@media (max-width: 900px) {
	.apf-cmp-picker__body { grid-template-columns: 1fr 1fr; }
	.apf-cmp-picker .apf-button { grid-column: 1 / -1; }
	.apf-cmp-cols-3,
	.apf-cmp-cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.apf-cmp-bars { grid-template-columns: 1fr; }
	.apf-cmp-tally li { grid-template-columns: 1fr auto; }
	.apf-cmp-tally__bar { grid-column: 1 / -1; grid-row: 2; }
}
@media (max-width: 560px) {
	.apf-cmp-picker__body { grid-template-columns: 1fr; }
	.apf-cmp-head { padding: 12px; }
	.apf-cmp-head__img { height: 90px; }
	.apf-cmp-head__img img { max-width: 90px; max-height: 90px; }
	.apf-cmp-head__name { font-size: 15px; }
	.apf-amazon { padding: 0 10px; font-size: 13px; }
}

/* ==========================================================================
   Calculators (Room size, ACH, Power): one design.
   Left: a card with numbered steps. Right: dark result header, stat grid,
   charts, a tip and the share button.
   ========================================================================== */
.apf-calc-modes { display: grid; grid-template-columns: 1fr 1fr; margin-bottom: 24px; border: 1px solid var(--apf-line); border-radius: 8px; overflow: hidden; background: var(--apf-white); }
.apf-calc-modes__tab { display: flex; align-items: center; justify-content: center; gap: 14px; padding: 16px 20px; border: 0; border-bottom: 3px solid transparent; background: none; color: var(--apf-muted); font-family: var(--apf-font); font-size: 14px; text-align: left; cursor: pointer; transition: background-color .15s; }
.apf-calc-modes__tab + .apf-calc-modes__tab { border-left: 1px solid var(--apf-line); }
.apf-calc-modes__tab strong { display: block; margin-bottom: 2px; color: var(--apf-navy); font-size: 17px; font-weight: 700; }
.apf-calc-modes__tab .apf-icon { flex: none; width: 28px; height: 28px; color: var(--apf-blue-700); }
.apf-calc-modes__tab:hover { background: #f5f9fd; }
.apf-calc-modes__tab[aria-selected="true"] { background: #eaf3fb; border-bottom-color: var(--apf-blue-700); }

.apf-calc { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: 28px; align-items: start; font-family: var(--apf-font); }
.apf-calc [hidden] { display: none !important; }

/* Input card */
.apf-calc__card { display: grid; gap: 0; padding: 26px 28px 28px; border: 1px solid var(--apf-line); border-radius: 8px; background: var(--apf-white); box-shadow: 0 1px 2px rgba(15, 42, 64, .04); }
.apf-calc__step { display: grid; gap: 14px; padding: 0 0 24px; }
.apf-calc__step + .apf-calc__step { padding-top: 24px; border-top: 1px solid var(--apf-line-soft); }
.apf-calc__step-head { display: flex; align-items: center; gap: 12px; }
.apf-calc__num { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 32px; height: 32px; border-radius: 6px; background: #eaf3fb; color: var(--apf-blue-700); font-size: 13px; font-weight: 800; letter-spacing: .02em; }
.apf-calc .apf-calc__step-title { flex: 1; margin: 0 !important; padding: 0 !important; border: 0 !important; color: var(--apf-ink); font-size: 23px; font-weight: 800; letter-spacing: -.02em; line-height: 1.2; text-transform: none; }
.apf-calc .apf-calc__step-title::before,
.apf-calc .apf-calc__step-title::after { content: none; }
.apf-calc__units { display: inline-flex; border: 1px solid var(--apf-line); border-radius: 6px; overflow: hidden; }
.apf-calc__units label { margin: 0; cursor: pointer; }
.apf-calc__units input { position: absolute; opacity: 0; pointer-events: none; }
.apf-calc__units span { display: block; min-width: 46px; padding: 9px 14px; color: var(--apf-navy); font-size: 15px; font-weight: 700; text-align: center; }
.apf-calc__units input:checked + span { background: var(--apf-navy); color: #fff; }
.apf-calc__units input:focus-visible + span { outline: 2px solid var(--apf-brand); outline-offset: -2px; }

.apf-calc__field { display: grid; gap: 8px; margin: 0; }
.apf-calc__label { color: var(--apf-ink); font-size: 15px; font-weight: 700; }
.apf-calc__label em { font-style: normal; }
.apf-calc__field input,
.apf-calc__field select { width: 100%; height: 50px; margin: 0; padding: 0 16px; border: 1px solid #cbd6e1; border-radius: 6px; background-color: var(--apf-white); color: var(--apf-ink); font-family: var(--apf-font); font-size: 17px; box-shadow: none; }
.apf-calc__field input:focus,
.apf-calc__field select:focus { border-color: var(--apf-brand); outline: 0; box-shadow: 0 0 0 3px rgba(52, 152, 219, .2); }
.apf-calc__row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.apf-calc__help { margin: -4px 0 0 !important; color: var(--apf-muted); font-size: 13.5px; line-height: 1.55; }
.apf-calc__chips { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-top: 10px; }
.apf-calc__chips button { min-height: 38px; padding: 0 6px; border: 1px solid var(--apf-line); border-radius: 4px; background: #f4f7fa; color: var(--apf-navy); font-family: var(--apf-font); font-size: 13.5px; font-weight: 600; cursor: pointer; transition: border-color .15s, background-color .15s; }
.apf-calc__chips button:hover { border-color: #a9c6e1; background: #eaf3fb; }
.apf-calc__chips button[aria-pressed="true"] { border-color: var(--apf-blue-700); background: #eaf3fb; color: var(--apf-blue-700); }
.apf-calc__options { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 10px; }
.apf-calc__options label { margin: 0; cursor: pointer; }
.apf-calc__options input { position: absolute; opacity: 0; pointer-events: none; }
.apf-calc__options span { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; height: 100%; min-height: 84px; padding: 12px 8px; border: 1px solid var(--apf-line); border-radius: 6px; background: var(--apf-white); text-align: center; transition: border-color .15s, background-color .15s; }
.apf-calc__options strong { color: var(--apf-navy); font-size: 20px; font-weight: 700; line-height: 1.15; }
.apf-calc__options small { color: var(--apf-muted); font-size: 13px; }
.apf-calc__options label:hover span { border-color: #a9c6e1; }
.apf-calc__options input:checked + span { border-color: var(--apf-blue-700); background: #eaf3fb; box-shadow: inset 0 -3px 0 var(--apf-blue-700); }
.apf-calc__options input:focus-visible + span { outline: 2px solid var(--apf-brand); outline-offset: 2px; }
.apf-calc__actions { display: flex; gap: 12px; padding-top: 4px; }
.apf-calc__actions .apf-calc__go { flex: 1; min-height: 54px; font-size: 18px; }
.apf-calc__actions .apf-button--outline { min-height: 54px; }
/* Results update while typing. On wide screens they are next to the form, so no button is needed;
   on phones the button only scrolls down to the result. */
.apf-calc__actions .apf-calc__go::after { content: "\2193"; margin-left: 8px; font-weight: 700; }
@media (min-width: 901px) {
	.apf-calc__actions .apf-calc__go { display: none; }
}

/* Result panel */
.apf-calc__panel { position: sticky; top: calc(var(--apf-sticky-h, 0px) + 16px); overflow: hidden; border: 1px solid var(--apf-line); border-radius: 8px; background: #f7fafc; outline: 0; }
.apf-calc__hero { padding: 26px 30px 28px; border-bottom: 4px solid var(--apf-brand); background: linear-gradient(135deg, var(--apf-navy) 0%, #1f5a86 100%); color: #fff; }
.apf-calc__hero.is-good { border-bottom-color: var(--apf-brand-green); }
.apf-calc__hero.is-bad { border-bottom-color: var(--apf-coral); }
.apf-calc__hero-label { margin: 0 0 6px !important; color: rgba(255, 255, 255, .85); font-size: 14px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.apf-calc__hero-value { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px; margin: 0 !important; line-height: 1; }
.apf-calc__hero-num { color: #fff; font-size: 76px; font-weight: 800; letter-spacing: -.04em; }
.apf-calc__hero-unit { color: #fff; font-size: 30px; font-weight: 700; }
.apf-calc__hero-sub { margin: 12px 0 0 !important; color: rgba(255, 255, 255, .88); font-size: 17px; }
.apf-calc__body { display: grid; gap: 26px; padding: 28px 28px 30px; }
.apf-calc__stats { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--apf-line); border-radius: 4px; background: var(--apf-white); }
.apf-calc__stat { display: flex; flex-direction: column; gap: 6px; padding: 18px 16px; border-bottom: 1px solid var(--apf-line); }
.apf-calc__stat:nth-child(odd) { border-right: 1px solid var(--apf-line); }
.apf-calc__stat:nth-last-child(-n+2):nth-child(odd),
.apf-calc__stat:last-child { border-bottom: 0; }
.apf-calc__stat-label { color: var(--apf-muted); font-size: 14px; }
.apf-calc__stat-value { color: var(--apf-ink); font-size: 23px; font-weight: 700; line-height: 1.2; }
.apf-calc__stat small { color: var(--apf-muted); font-size: 12.5px; }
.apf-calc__charts { display: grid; gap: 24px; }
.apf-calc .apf-calc__bars-title { margin: 0 !important; padding: 0 !important; border: 0 !important; color: var(--apf-ink); font-size: 21px; font-weight: 800; letter-spacing: -.015em; text-transform: none; }
.apf-calc .apf-calc__bars-title::before,
.apf-calc .apf-calc__bars-title::after { content: none; }
.apf-calc__bars-sub { margin: 6px 0 14px !important; color: var(--apf-muted); font-size: 14px; }
.apf-calc__bar { display: grid; grid-template-columns: 72px 1fr minmax(86px, auto); gap: 12px; align-items: center; padding: 6px 0; font-size: 15px; }
.apf-calc__bar-label { color: var(--apf-text); }
.apf-calc__bar-track { height: 14px; background: #e3ebf2; overflow: hidden; }
.apf-calc__bar-track span { display: block; height: 100%; background: #8fb3cf; }
.apf-calc__bar.is-active .apf-calc__bar-track span { background: #1f6fa8; }
.apf-calc__bar-value { color: var(--apf-ink); font-weight: 700; text-align: right; white-space: nowrap; }
.apf-calc__bar.is-active .apf-calc__bar-label { color: var(--apf-ink); font-weight: 700; }
.apf-calc__scale { position: relative; height: 16px; margin: 4px 0 24px; background: #e3ebf2; }
.apf-calc__scale-fill { position: absolute; inset: 0 auto 0 0; }
.apf-calc__scale-fill.is-good { background: var(--apf-brand-green); }
.apf-calc__scale-fill.is-ok { background: #f2b33d; }
.apf-calc__scale-fill.is-low { background: var(--apf-coral); }
.apf-calc__scale-mark { position: absolute; top: -4px; bottom: -4px; width: 2px; background: var(--apf-navy); }
.apf-calc__scale-mark small { position: absolute; top: 26px; left: 50%; transform: translateX(-50%); color: var(--apf-muted); font-size: 12px; font-weight: 700; }
.apf-calc__tip { display: flex; gap: 14px; padding: 20px 22px; border-left: 4px solid #1f6fa8; background: #e8f1f9; }
.apf-calc__tip .apf-icon { flex: none; width: 26px; height: 26px; margin-top: 1px; color: #1f6fa8; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.apf-calc__tip strong { display: block; margin-bottom: 6px; color: var(--apf-ink); font-size: 19px; font-weight: 700; }
.apf-calc__tip p { margin: 0 !important; color: var(--apf-text); font-size: 16px; line-height: 1.6; }
.apf-calc__tip.is-good { border-left-color: var(--apf-brand-green); background: #f0f9e8; }
.apf-calc__tip.is-good .apf-icon { color: #3f8a1c; }
.apf-calc__tip.is-bad { border-left-color: var(--apf-coral); background: #fff1f1; }
.apf-calc__tip.is-bad .apf-icon { color: #c2353b; }
.apf-calc__formula { margin: 0 !important; padding: 10px 14px; border-radius: 4px; background: var(--apf-white); border: 1px solid var(--apf-line-soft); color: var(--apf-text); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; }
.apf-calc__formula:empty { display: none; }
.apf-calc__note { margin: 0 !important; padding-top: 20px; border-top: 1px solid var(--apf-line); color: var(--apf-muted); font-size: 14px; line-height: 1.65; }
.apf-calc__share { width: 100%; min-height: 52px; justify-content: center; gap: 10px; background: var(--apf-white); font-size: 16px; }
.apf-calc__share .apf-icon { width: 18px; height: 18px; }

/* Content under the calculators (explanations, formula tables) */
.apf-calc-info { max-width: none; margin-top: 48px; padding-top: 36px; border-top: 1px solid var(--apf-line); }
.apf-calc-info h2 { margin: 0 0 12px !important; color: var(--apf-ink); font-size: 26px; font-weight: 800; letter-spacing: -.02em; }
.apf-calc-info p { margin: 0 0 14px !important; color: var(--apf-text); font-size: 17px; line-height: 1.7; }
.apf-calc-info .apf-calc__tip p { margin: 0 !important; }
.apf-calc-info .apf-calc__tip { margin: 20px 0; }
.apf-calc-info table { table-layout: fixed; width: 100%; margin: 8px 0 0; border-collapse: collapse; border: 1px solid var(--apf-line); background: var(--apf-white); font-size: 15px; }
.apf-calc-info th,
.apf-calc-info td { white-space: normal; word-break: normal; padding: 12px 16px; border-bottom: 1px solid var(--apf-line-soft); text-align: left; }
.apf-calc-info th { background: #eef3f8; color: var(--apf-navy); font-size: 13px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.apf-calc-info td:last-child,
.apf-calc-info th:last-child { text-align: right; font-weight: 700; }

/* Section head used below the calculators */
.apf-calc-section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px; }
.apf-calc-section-head .apf-section__title { margin-bottom: 0 !important; }
.apf-calc-section-head__link { color: var(--apf-navy); font-size: 17px; font-weight: 700; text-decoration: underline; text-underline-offset: 4px; }
.apf-calc-section-head__link:hover { color: var(--apf-brand); }

.apf-room__matches { margin-top: 44px; padding-top: 32px; border-top: 1px solid var(--apf-line); }
.apf-room__matches[hidden] { display: none; }
.apf-room__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 16px 0 !important; padding: 0; list-style: none; }
.apf-room__match { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--apf-line); border-radius: 8px; background: var(--apf-white); }
.apf-room__match img { flex: none; width: 56px; height: 56px; border-radius: 6px; object-fit: contain; }
.apf-room__match div { flex: 1; min-width: 0; }
.apf-room__match a,
.apf-room__match strong { display: block; color: var(--apf-ink); font-weight: 800; text-decoration: none; }
.apf-room__match a:hover { color: var(--apf-brand); }
.apf-room__match small { display: block; margin-top: 3px; color: var(--apf-muted); font-size: 12.5px; line-height: 1.45; }

@media (max-width: 900px) {
	.apf-calc { grid-template-columns: 1fr; }
	.apf-calc__panel { position: static; }
	.apf-room__list { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
	.apf-calc-modes { grid-template-columns: 1fr; }
	.apf-calc-modes__tab { justify-content: flex-start; }
	.apf-calc-modes__tab + .apf-calc-modes__tab { border-left: 0; border-top: 1px solid var(--apf-line); }
	.apf-calc__card { padding: 20px 18px 22px; }
	.apf-calc .apf-calc__step-title { font-size: 20px; }
	.apf-calc__chips { grid-template-columns: 1fr 1fr; }
	.apf-calc__options { grid-template-columns: 1fr 1fr; }
	.apf-calc__hero { padding: 22px 20px 24px; }
	.apf-calc__hero-num { font-size: 56px; }
	.apf-calc__hero-unit { font-size: 24px; }
	.apf-calc__body { padding: 20px 18px 22px; }
	.apf-calc__stat-value { font-size: 19px; }
	.apf-calc__bar { grid-template-columns: 58px 1fr auto; gap: 8px; font-size: 14px; }
}

/* ==========================================================================
   Sidebar widgets (WordPress widgets get the same card look as the theme boxes)
   ========================================================================== */
.apf-sidebar .apf-trust-badge { display: inline-flex; align-items: center; gap: 6px; }
.apf-sidebar .apf-trust-badge .apf-icon { width: 14px; height: 14px; color: #3f9a1f; }
.apf-sidebar > .widget:not(#sidebar-search) { margin-bottom: 24px; padding: 18px 20px; border: 1px solid var(--apf-line); border-radius: 10px; background: var(--apf-white); }
.apf-sidebar > .widget:not(#sidebar-search) .widget-title,
.apf-sidebar > .widget:not(#sidebar-search) h2,
.apf-sidebar > .widget:not(#sidebar-search) .wp-block-heading { margin: 0 0 12px !important; padding: 0 0 10px; border-bottom: 2px solid var(--apf-brand); color: var(--apf-ink); font-size: 17px; font-weight: 800; letter-spacing: 0; text-transform: none; }
.apf-sidebar > .widget ul { margin: 0 !important; padding: 0 !important; list-style: none !important; }
.apf-sidebar > .widget li { margin: 0 !important; padding: 8px 0 !important; border-bottom: 1px solid var(--apf-line-soft); font-size: 14.5px; line-height: 1.4; list-style: none !important; }
.apf-sidebar > .widget li:last-child { border-bottom: 0; }
.apf-sidebar > .widget li::before,
.apf-sidebar > .widget li::marker { content: none; display: none; }
.apf-sidebar > .widget li a { color: var(--apf-ink); font-weight: 600; text-decoration: none; }
.apf-sidebar > .widget li a:hover { color: var(--apf-brand); }
.apf-sidebar > .widget .wp-block-search__label { display: none; }
.apf-sidebar > .widget .wp-block-search__inside-wrapper { display: flex; gap: 6px; }
.apf-sidebar > .widget .wp-block-search__input { flex: 1; height: 40px; padding: 0 12px; border: 1px solid var(--apf-line); border-radius: 6px; }
.apf-sidebar > .widget .wp-block-search__button { padding: 0 14px; border: 0; border-radius: 6px; background: var(--apf-navy); color: #fff; font-weight: 700; }
.apf-sidebar > .widget form { display: flex; gap: 6px; }
.apf-sidebar > .widget form input[type="search"],
.apf-sidebar > .widget form input[type="text"] { flex: 1; min-width: 0; }

/* ==========================================================================
   Articles: tables, author box
   ========================================================================== */

.post-single-content .wp-block-table table,
.post-single-content table:not([class]) { width: 100%; border-collapse: collapse; overflow: hidden; border: 1px solid var(--apf-line); border-radius: 8px; box-shadow: 0 4px 14px rgba(15, 42, 64, .05); font-size: 15px; }
.post-single-content .wp-block-table th,
.post-single-content table:not([class]) th { background: #eef3f8; color: var(--apf-navy); font-weight: 800; text-align: left; }
.post-single-content .wp-block-table td,
.post-single-content .wp-block-table th,
.post-single-content table:not([class]) td,
.post-single-content table:not([class]) th { padding: 10px 14px; border: 0; border-bottom: 1px solid var(--apf-line-soft); }
.post-single-content .wp-block-table tbody tr:nth-child(even),
.post-single-content table:not([class]) tbody tr:nth-child(even) { background: #f8fafc; }

.apf-author-box .author-box { display: flex; gap: 20px; align-items: flex-start; padding: 22px 24px; border: 1px solid var(--apf-line); border-left: 4px solid var(--apf-brand); border-radius: 10px; background: linear-gradient(135deg, #f5f9fd, #fff); }
.apf-author-box .apf-author-box__avatar { flex: none; width: 88px !important; height: 88px !important; margin: 0 !important; border: 3px solid #fff; border-radius: 50%; box-shadow: 0 4px 14px rgba(15, 42, 64, .15); }
.apf-author-box .author-box-content { flex: 1; min-width: 0; margin: 0 !important; padding: 0 !important; }
.apf-author-box__eyebrow { margin: 0 !important; color: var(--apf-brand); font-size: 11.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.apf-author-box .apf-author-box__name { margin: 2px 0 6px !important; padding: 0 !important; font-size: 21px; }
.apf-author-box .apf-author-box__name a { color: var(--apf-ink); text-decoration: none; }
.apf-author-box__bio { margin: 0 0 10px !important; color: var(--apf-text); font-size: 15px; line-height: 1.6; }
.apf-author-box__links { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; }
.apf-author-box__links a { display: inline-flex; align-items: center; gap: 4px; color: var(--apf-blue-700); font-size: 14px; font-weight: 700; text-decoration: none; }
.apf-author-box__links a .apf-icon { width: 18px; height: 18px; }
.apf-author-box__links a:hover { color: var(--apf-brand); }
@media (max-width: 560px) {
	.apf-author-box .author-box { flex-direction: column; padding: 18px; }
}

/* Deal / price boxes from the comparison plugins */
.cta-box.deal-cta { border: 1px solid var(--apf-line); border-radius: 10px !important; box-shadow: 0 6px 18px rgba(15, 42, 64, .07) !important; }
.cta-box.deal-cta.deal-blue-border { border-top: 4px solid var(--apf-brand); }
.btn_red { border-bottom-width: 3px !important; border-radius: 6px !important; box-shadow: 0 6px 14px rgba(255, 112, 51, .25); transition: background-color .15s ease, transform .15s ease !important; }
.btn_red:hover { background: var(--apf-amazon-hover) !important; transform: translateY(-1px) !important; }
.apf-author-box .author-box,
.apf-author-box .author-box-content { min-height: 0 !important; height: auto !important; }
.apf-author-box__links a { text-transform: none !important; letter-spacing: 0 !important; }

/* ==========================================================================
   Quiz: same language as the calculators (card, numbered step, option cards,
   dark result header, stat grid)
   ========================================================================== */
.apf-quiz { max-width: 920px; margin: 0 auto; padding: 0 0 28px; border: 1px solid var(--apf-line); border-radius: 8px; background: var(--apf-white); box-shadow: 0 1px 2px rgba(15, 42, 64, .04); font-family: var(--apf-font); }
.apf-quiz__progress { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: 0 !important; padding: 22px 32px 0 !important; list-style: none; }
.apf-quiz__progress li { height: 6px; margin: 0 !important; padding: 0 !important; border-radius: 2px; background: #e3ebf2; list-style: none; transition: background-color .3s; }
.apf-quiz__progress li::before { content: none !important; }
.apf-quiz__progress li.is-done { background: var(--apf-blue-700); }
.apf-quiz__progress li.is-current { background: var(--apf-brand); }
.apf-quiz__step { margin: 0; padding: 26px 32px 0; border: 0; min-width: 0; }
.apf-quiz__step[hidden] { display: none; }
.apf-quiz__q { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; width: 100%; margin: 0 0 6px; padding: 0; }
.apf-quiz__num { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 32px; height: 32px; border-radius: 6px; background: #eaf3fb; color: var(--apf-blue-700); font-size: 13px; font-weight: 800; }
.apf-quiz__q-text { flex: 1; min-width: 200px; color: var(--apf-ink); font-size: 25px; font-weight: 800; letter-spacing: -.02em; line-height: 1.2; }
.apf-quiz__q small { color: var(--apf-muted); font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.apf-quiz__help { margin: 10px 0 0 !important; color: var(--apf-muted); font-size: 15px; line-height: 1.55; }
.apf-quiz__options { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; margin-top: 20px; }
.apf-quiz__option { margin: 0; cursor: pointer; }
.apf-quiz__option input { position: absolute; opacity: 0; pointer-events: none; }
.apf-quiz__option > span { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; height: 100%; min-height: 128px; padding: 18px 14px; border: 1px solid var(--apf-line); border-radius: 6px; background: var(--apf-white); text-align: center; transition: border-color .15s, background-color .15s, box-shadow .15s; }
.apf-quiz__option .apf-icon { width: 42px; height: 42px; margin-bottom: 8px; padding: 10px; border-radius: 6px; background: #eaf3fb; color: var(--apf-blue-700); }
.apf-quiz__option strong { color: var(--apf-navy); font-size: 17px; font-weight: 700; line-height: 1.25; }
.apf-quiz__option small { color: var(--apf-muted); font-size: 13.5px; line-height: 1.45; }
.apf-quiz__option:hover > span { border-color: #a9c6e1; }
.apf-quiz__option input:checked + span { border-color: var(--apf-blue-700); background: #eaf3fb; box-shadow: inset 0 -3px 0 var(--apf-blue-700); }
.apf-quiz__option input:checked + span .apf-icon { background: var(--apf-blue-700); color: #fff; }
.apf-quiz__option input:focus-visible + span { outline: 2px solid var(--apf-brand); outline-offset: 2px; }
.apf-quiz__range { display: grid; grid-template-columns: 1fr 160px; gap: 10px 24px; align-items: end; margin-top: 22px; padding: 20px 22px; border: 1px solid var(--apf-line); border-radius: 6px; background: #f7fafc; }
.apf-quiz__range label { color: var(--apf-ink); font-size: 15px; font-weight: 700; }
.apf-quiz__range output { margin-left: 6px; color: var(--apf-blue-700); font-weight: 800; }
.apf-quiz__range input[type="range"] { grid-column: 1; width: 100%; height: 50px; margin: 0; accent-color: var(--apf-blue-700); }
.apf-quiz__ceiling { grid-column: 2; grid-row: 1 / 3; display: flex; flex-direction: column; gap: 8px; }
.apf-quiz__ceiling select { width: 100%; height: 50px; padding: 0 14px; border: 1px solid #cbd6e1; border-radius: 6px; background-color: #fff; color: var(--apf-ink); font-size: 17px; }
.apf-quiz__nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 24px; }
.apf-quiz__nav .apf-button--primary { min-width: 160px; min-height: 52px; justify-content: center; font-size: 17px; }
.apf-quiz__nav--global { padding: 0 32px; margin-top: 18px; }
.apf-quiz__nav--global .apf-linkbutton { padding: 10px 16px; border: 1px solid var(--apf-line); border-radius: 6px; background: var(--apf-white); color: var(--apf-navy); font-weight: 700; text-decoration: none; }
.apf-quiz__loading { padding: 60px 32px; text-align: center; color: var(--apf-muted); }
.apf-quiz__loading[hidden],
.apf-quiz__result[hidden] { display: none; }
.apf-quiz__spinner { display: inline-block; width: 40px; height: 40px; border: 4px solid #e3ebf2; border-top-color: var(--apf-blue-700); border-radius: 50%; animation: apf-spin .8s linear infinite; }
@keyframes apf-spin { to { transform: rotate(360deg); } }
.apf-quiz__result { padding: 26px 32px 0; }
.apf-quiz__answers { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 18px !important; padding: 0 !important; list-style: none; }
.apf-quiz__answers li { margin: 0 !important; padding: 5px 10px !important; border: 1px solid var(--apf-line); border-radius: 4px; background: #f7fafc; color: var(--apf-text); font-size: 13px; font-weight: 600; list-style: none; }
.apf-quiz__answers li::before { content: none !important; }

/* Winner: dark header + light body */
.apf-quiz__winner { overflow: hidden; border: 1px solid var(--apf-line); border-radius: 8px; background: #f7fafc; }
.apf-quiz__winner-hero { padding: 24px 28px 26px; border-bottom: 4px solid var(--apf-brand-green); background: linear-gradient(135deg, var(--apf-navy) 0%, #1f5a86 100%); color: #fff; }
.apf-quiz__badge { margin: 0 0 6px !important; color: rgba(255, 255, 255, .85); font-size: 14px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.apf-quiz .apf-quiz__name { margin: 0 0 10px !important; padding: 0 !important; border: 0 !important; color: #fff; font-size: 38px; font-weight: 800; letter-spacing: -.03em; line-height: 1.1; text-transform: none; }
.apf-quiz .apf-quiz__name::before,
.apf-quiz .apf-quiz__name::after { content: none; }
.apf-quiz__name:focus { outline: none; }
.apf-quiz__meta { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 0 !important; color: rgba(255, 255, 255, .88); font-size: 15px; }
.apf-quiz__winner-hero .apf-quiz__fit { color: #b9ec8a; font-weight: 800; }
.apf-quiz__winner-main { display: grid; grid-template-columns: 240px 1fr; gap: 28px; padding: 26px 28px 28px; }
.apf-quiz__winner-media { display: grid; place-items: start center; padding: 14px; border: 1px solid var(--apf-line); border-radius: 6px; background: var(--apf-white); }
.apf-quiz__winner-media img { max-width: 100%; height: auto; object-fit: contain; }
.apf-quiz__winner-main.is-text-only { grid-template-columns: 1fr; }
.apf-quiz__fit { color: #2f6f1a; font-weight: 800; }
.apf-quiz__winner h3,
.apf-quiz__alts h3 { margin: 0 0 10px !important; padding: 0 !important; border: 0 !important; color: var(--apf-ink); font-size: 20px; font-weight: 800; letter-spacing: -.015em; text-transform: none; }
.apf-quiz__winner h3::before, .apf-quiz__winner h3::after,
.apf-quiz__alts h3::before, .apf-quiz__alts h3::after { content: none; }
.apf-quiz__why { margin: 0 0 16px !important; padding: 0 !important; list-style: none; }
.apf-quiz__why li { position: relative; margin: 0 0 8px !important; padding: 0 0 0 28px !important; color: var(--apf-text); font-size: 15.5px; line-height: 1.55; list-style: none; }
.apf-quiz__why li::before { content: ""; position: absolute; left: 0; top: 3px; width: 18px; height: 18px; border-radius: 4px; background: var(--apf-brand-green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 12px no-repeat; }
.apf-quiz__note { margin: 0 0 16px !important; padding: 14px 16px; border-left: 4px solid #1f6fa8; background: #e8f1f9; color: var(--apf-text); font-size: 14.5px; line-height: 1.55; }
.apf-quiz__facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 1px; margin: 0 0 18px !important; padding: 0 !important; overflow: hidden; border: 1px solid var(--apf-line); border-radius: 4px; background: var(--apf-line); list-style: none; }
.apf-quiz__facts li { display: flex; flex-direction: column-reverse; gap: 4px; margin: 0 !important; padding: 14px 16px !important; background: var(--apf-white); list-style: none; }
.apf-quiz__facts li::before { content: none !important; }
.apf-quiz__facts strong { color: var(--apf-ink); font-size: 21px; font-weight: 700; }
.apf-quiz__facts span { color: var(--apf-muted); font-size: 13.5px; }
.apf-quiz__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.apf-quiz__actions > * { min-height: 48px; }

/* Alternatives */
.apf-quiz__alts { margin-top: 28px; }
.apf-quiz__alt-list { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 18px; }
.apf-quiz__alt { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 14px; padding: 16px; border: 1px solid var(--apf-line); border-radius: 6px; background: var(--apf-white); }
.apf-quiz__alt img { flex: none; width: 72px; height: 72px; object-fit: contain; }
.apf-quiz__alt > div { flex: 1; min-width: 0; }
.apf-quiz__alt-name { display: block; color: var(--apf-navy); font-size: 17px; font-weight: 700; text-decoration: none; }
.apf-quiz__alt-name:hover { color: var(--apf-blue-700); }
.apf-quiz__alt p { margin: 4px 0 0 !important; color: var(--apf-muted); font-size: 13.5px; line-height: 1.45; }
.apf-amazon--small { flex-basis: 100%; min-height: 38px; font-size: 13.5px; }
.apf-quiz__foot { margin: 22px 0 0 !important; padding-top: 18px; border-top: 1px solid var(--apf-line); color: var(--apf-muted); font-size: 14px; line-height: 1.6; }
.apf-quiz__none { padding: 22px; border-left: 4px solid var(--apf-coral); background: #fff1f1; }
.apf-quiz__none h2 { margin: 0 0 8px !important; }
.apf-quiz__error { padding: 16px; border-left: 4px solid var(--apf-coral); background: #fff1f1; color: #a3262c; }
@media (max-width: 760px) {
	.apf-quiz__progress { padding: 16px 18px 0 !important; }
	.apf-quiz__step,
	.apf-quiz__result { padding-left: 18px; padding-right: 18px; }
	.apf-quiz__nav--global { padding: 0 18px; }
	.apf-quiz__q-text { font-size: 21px; }
	.apf-quiz__q small { flex-basis: 100%; order: -1; }
	.apf-quiz__options { grid-template-columns: 1fr 1fr; }
	.apf-quiz__option > span { min-height: 0; padding: 14px 10px; }
	.apf-quiz__winner-hero { padding: 20px; }
	.apf-quiz .apf-quiz__name { font-size: 28px; }
	.apf-quiz__winner-main { grid-template-columns: 1fr; gap: 18px; padding: 18px; }
	.apf-quiz__winner-media img { max-height: 200px; }
	.apf-quiz__alt-list { grid-template-columns: 1fr; }
	.apf-quiz__range { grid-template-columns: 1fr; }
	.apf-quiz__ceiling { grid-column: 1; grid-row: auto; }
}
@media (max-width: 420px) {
	.apf-quiz__options { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
	.apf-quiz__spinner { animation-duration: 3s; }
}
/* ==========================================================================
   Tool links strip + classic calculators (ACH, power) refresh
   ========================================================================== */
/* "More free tools" strip: same language as the calculators (white cards, tinted icon tile, blue accent). */
.apf-tool-links { margin: 56px 0 8px; padding-top: 36px; border-top: 1px solid var(--apf-line); font-family: var(--apf-font); }
.apf-tool-links__head { margin-bottom: 18px; }
.apf-tool-links__head .apf-eyebrow { margin: 0 0 6px !important; }
.apf-tool-links .apf-tool-links__title { margin: 0 !important; padding: 0 !important; border: 0 !important; color: var(--apf-ink); font-size: 26px; font-weight: 800; letter-spacing: -.02em; line-height: 1.2; text-transform: none; }
.apf-tool-links .apf-tool-links__title::before,
.apf-tool-links .apf-tool-links__title::after { content: none; }
.apf-tool-links ul { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; margin: 0 !important; padding: 0 !important; list-style: none !important; }
.apf-tool-links li { margin: 0 !important; padding: 0 !important; list-style: none !important; }
.apf-tool-links li::before { display: none !important; }
.apf-tool-links a { display: flex; flex-direction: column; gap: 6px; height: 100%; padding: 20px 20px 18px; border: 1px solid var(--apf-line); border-radius: 8px; background: var(--apf-white); color: var(--apf-muted); font-size: 14px; line-height: 1.45; text-decoration: none !important; box-shadow: inset 0 -3px 0 transparent; transition: border-color .15s, box-shadow .15s, background-color .15s; }
.apf-tool-links a:hover { border-color: #a9c6e1; background: #f7fbfe; box-shadow: inset 0 -3px 0 var(--apf-blue-700); }
.apf-tool-links a:focus-visible { outline: 2px solid var(--apf-brand); outline-offset: 2px; }
.apf-tool-links .apf-icon { flex: none; width: 40px; height: 40px; margin-bottom: 8px; padding: 9px; border-radius: 6px; background: #eaf3fb; color: var(--apf-blue-700); }
.apf-tool-links strong { display: block; color: var(--apf-navy); font-size: 16.5px; font-weight: 700; line-height: 1.3; }
.apf-tool-links__go { margin-top: auto; padding-top: 8px; color: var(--apf-blue-700); font-size: 14px; font-weight: 700; }
.apf-tool-links a:hover .apf-tool-links__go { text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 560px) {
	.apf-tool-links .apf-tool-links__title { font-size: 22px; }
	.apf-tool-links ul { grid-template-columns: 1fr; gap: 10px; }
	.apf-tool-links a { display: grid; grid-template-columns: 40px 1fr; column-gap: 14px; row-gap: 2px; align-items: center; padding: 14px 16px; }
	.apf-tool-links .apf-icon { grid-row: 1 / span 2; margin: 0; }
	.apf-tool-links__go { display: none; }
}

/* Contact page */
.apf-stats__item--note .apf-icon { color: var(--apf-brand-green); }

/* ==========================================================================
   Sidebar widgets (functions/widgets.php)
   ========================================================================== */
.apf-w-list { display: grid; gap: 2px; counter-reset: none; }
.apf-sidebar > .widget .apf-w-item { display: grid !important; grid-template-columns: 48px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 0 !important; }
.apf-w-item__media { position: relative; width: 48px; height: 48px; border-radius: 6px; background: var(--apf-bg-tint); }
.apf-w-item__media img { width: 48px; height: 48px; border-radius: 6px; object-fit: contain; background: var(--apf-white); }
.apf-w-item__rank { position: absolute; top: -6px; left: -6px; display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; border: 2px solid var(--apf-white); border-radius: 50%; background: var(--apf-navy); color: #fff; font-size: 11px; font-weight: 800; }
.apf-w-item__text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.apf-sidebar > .widget .apf-w-item__text a,
.apf-w-item__text strong { overflow: hidden; color: var(--apf-ink); font-size: 14.5px; font-weight: 700; line-height: 1.3; text-overflow: ellipsis; }
.apf-w-item__text small { color: var(--apf-muted); font-size: 12.5px; line-height: 1.3; }
.apf-w-item .apf-rating { font-size: 13px; padding: 2px 6px; }
.apf-w-more { display: inline-flex; align-items: center; gap: 4px; margin-top: 12px; color: var(--apf-blue-700); font-size: 14px; font-weight: 700; text-decoration: none; }
.apf-w-more:hover { text-decoration: underline; text-underline-offset: 3px; }
.apf-w-note { margin: -4px 0 10px !important; color: var(--apf-muted); font-size: 12.5px; line-height: 1.45; }

.apf-sidebar > .widget .apf-w-bar { display: grid !important; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 10px; padding: 8px 0 !important; border-bottom: 0; }
.apf-w-bar__name { overflow: hidden; color: var(--apf-muted); font-size: 13.5px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.apf-sidebar > .widget .apf-w-bar__name a { color: var(--apf-ink); font-weight: 700; }
.apf-w-bar__value { grid-row: 1; grid-column: 2; color: var(--apf-ink); font-size: 13.5px; font-weight: 800; white-space: nowrap; }
.apf-w-bar__track { grid-column: 1 / -1; height: 8px; background: #e3ebf2; overflow: hidden; }
.apf-w-bar__track span { display: block; height: 100%; background: #8fb3cf; }
.apf-w-bar.is-first .apf-w-bar__track span { background: var(--apf-brand-green); }

.apf-w-room__fields { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.apf-w-room__fields label { display: grid; gap: 4px; margin: 0; color: var(--apf-ink); font-size: 13px; font-weight: 700; }
.apf-w-room__fields em { color: var(--apf-muted); font-style: normal; font-weight: 500; }
.apf-sidebar > .widget .apf-w-room__fields input { width: 100%; min-width: 0; height: 42px; padding: 0 10px; border: 1px solid #cbd6e1; border-radius: 6px; background: var(--apf-white); color: var(--apf-ink); font-size: 16px; box-shadow: none; }
.apf-sidebar > .widget form.apf-w-room__form { display: grid; gap: 12px; }
.apf-w-room__result { display: flex; flex-direction: column; gap: 2px; margin: 0 !important; padding: 12px 14px; border-left: 4px solid var(--apf-brand); background: linear-gradient(135deg, var(--apf-navy) 0%, #1f5a86 100%); color: rgba(255, 255, 255, .85); font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.apf-w-room__result strong { color: #fff; font-size: 28px; letter-spacing: -.02em; text-transform: none; font-weight: 800; white-space: nowrap; }
.apf-w-room__form .apf-button { justify-content: center; width: 100%; }

.apf-sidebar > .widget.apf-w-quiz:not(#sidebar-search) { position: relative; overflow: hidden; padding: 22px 20px; border: 0; background: linear-gradient(135deg, var(--apf-navy) 0%, #1f5a86 100%); color: #fff; }
.apf-w-quiz__icon { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; margin-bottom: 12px; border-radius: 8px; background: rgba(255, 255, 255, .12); }
.apf-w-quiz__icon .apf-icon { width: 24px; height: 24px; color: #fff; }
.apf-w-quiz__title { margin: 0 0 6px !important; color: #fff; font-size: 19px; font-weight: 800; line-height: 1.25; }
.apf-w-quiz__text { margin: 0 0 16px !important; color: rgba(255, 255, 255, .85); font-size: 14.5px; line-height: 1.55; }
.apf-sidebar .apf-w-quiz__button { justify-content: center; gap: 8px; width: 100%; background: var(--apf-white); color: var(--apf-navy); }
.apf-sidebar .apf-w-quiz__button:hover { background: #eaf3fb; color: var(--apf-navy); }
.apf-w-quiz__button .apf-icon { width: 16px; height: 16px; }

.apf-sidebar > .widget .apf-w-tools__list li { padding: 0 !important; }
.apf-sidebar > .widget .apf-w-tools__list a { display: flex; align-items: center; gap: 12px; padding: 10px 0; }
.apf-w-tools__list .apf-icon { flex: none; width: 34px; height: 34px; padding: 8px; border-radius: 6px; background: #eaf3fb; color: var(--apf-blue-700); }
.apf-w-tools__list span { display: flex; flex-direction: column; min-width: 0; }
.apf-w-tools__list strong { color: var(--apf-ink); font-size: 14.5px; font-weight: 700; }
.apf-w-tools__list small { color: var(--apf-muted); font-size: 12.5px; font-weight: 500; }
.apf-sidebar > .widget .apf-w-tools__list a:hover strong { color: var(--apf-blue-700); }
.apf-sidebar > .widget .apf-w-bar.is-current { margin: 4px -10px !important; padding: 8px 10px !important; border-left: 3px solid var(--apf-brand); background: #eaf3fb; }
.apf-w-bar.is-current .apf-w-bar__name { color: var(--apf-navy); }
.apf-w-bar.is-current .apf-w-bar__track span { background: var(--apf-blue-700); }
.apf-w-bar__rank { color: var(--apf-muted); font-weight: 700; }
.apf-sidebar > .widget .apf-w-bar--gap { display: block !important; padding: 0 !important; color: #9fb0c1; font-size: 16px; font-weight: 800; letter-spacing: .2em; line-height: 1; text-align: center; }

/* ==========================================================================
   Deals page (page-deals.php): simple cards, discount badge, live price
   ========================================================================== */
.apf-deals + .apf-deals { margin-top: 48px; padding-top: 36px; border-top: 1px solid var(--apf-line); }
.apf-deals__head { margin-bottom: 20px; }
.apf-deals .apf-deals__title { display: flex; align-items: center; gap: 10px; margin: 0 0 6px !important; padding: 0 !important; border: 0 !important; color: var(--apf-ink); font-size: 28px; font-weight: 800; letter-spacing: -.02em; text-transform: none; }
.apf-deals .apf-deals__title::before,
.apf-deals .apf-deals__title::after { content: none; }
.apf-deals__title span { display: inline-flex; align-items: center; justify-content: center; min-width: 30px; height: 30px; padding: 0 8px; border-radius: 6px; background: #eaf3fb; color: var(--apf-blue-700); font-size: 15px; letter-spacing: 0; }
.apf-deals__head p { margin: 0 !important; color: var(--apf-muted); font-size: 16px; }
.apf-deals__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.apf-deals--more .apf-deals__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }

.apf-deal { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--apf-line); border-radius: 8px; background: var(--apf-white); transition: border-color .15s, box-shadow .15s; }
.apf-deal:hover { border-color: #a9c6e1; box-shadow: 0 8px 22px rgba(15, 42, 64, .08); }
.apf-deal__media { position: relative; display: grid; place-items: center; aspect-ratio: 4 / 3; padding: 18px; border-bottom: 1px solid var(--apf-line-soft); background: var(--apf-white); }
.apf-deal__media img { max-width: 100%; max-height: 100%; width: auto; height: auto !important; object-fit: contain; }
.apf-deal__off { position: absolute; top: 12px; left: 12px; z-index: 1; padding: 5px 10px; border-radius: 4px; background: var(--apf-coral); color: #fff; font-size: 14px; font-weight: 800; letter-spacing: .02em; }
.apf-deal__body { display: flex; flex: 1; flex-direction: column; gap: 8px; padding: 18px 18px 20px; }
.apf-deal .apf-deal__name { margin: 0 !important; padding: 0 !important; border: 0 !important; font-size: 19px; font-weight: 800; letter-spacing: -.015em; line-height: 1.25; text-transform: none; }
.apf-deal .apf-deal__name::before,
.apf-deal .apf-deal__name::after { content: none; }
.apf-deal__name a { color: var(--apf-ink); text-decoration: none; }
.apf-deal__name a:hover { color: var(--apf-blue-700); }
.apf-deal__rating { display: flex; align-items: center; gap: 8px; margin: 0 !important; color: var(--apf-muted); font-size: 13.5px; }
.apf-deal__rating .apf-rating { font-size: 13px; padding: 2px 6px; }
.apf-deal__text { display: -webkit-box; overflow: hidden; margin: 0 !important; color: var(--apf-text); font-size: 14.5px; line-height: 1.55; -webkit-line-clamp: 3; -webkit-box-orient: vertical; }
.apf-deal__price { display: flex; align-items: baseline; gap: 10px; margin: auto 0 0 !important; padding-top: 8px; }
.apf-deal__price strong { color: var(--apf-ink); font-size: 26px; font-weight: 800; letter-spacing: -.02em; }
.apf-deal__price del { color: var(--apf-muted); font-size: 15px; }
.apf-deal .apf-deal__buy { justify-content: center; width: 100%; min-height: 46px; }
.apf-deal__review { align-self: center; color: var(--apf-blue-700); font-size: 14px; font-weight: 700; text-decoration: none; }
.apf-deal__review:hover { text-decoration: underline; text-underline-offset: 3px; }
.apf-deals--more .apf-deal .apf-deal__name { font-size: 16.5px; }
.apf-deals--more .apf-deal__price strong { font-size: 22px; }
.apf-deals--more .apf-deal__body { padding: 14px 14px 16px; }

.apf-deals__empty { max-width: 640px; margin: 0 auto; padding: 36px 28px; border: 1px solid var(--apf-line); border-radius: 8px; background: #f7fafc; text-align: center; }
.apf-deals__empty .apf-icon { width: 44px; height: 44px; padding: 10px; border-radius: 6px; background: #eaf3fb; color: var(--apf-blue-700); }
.apf-deals__empty h2 { margin: 14px 0 8px !important; color: var(--apf-ink); font-size: 24px; }
.apf-deals__empty p { margin: 0 0 18px !important; color: var(--apf-muted); }
.apf-deals__how ul { margin: 0 !important; padding: 0 !important; list-style: none; }
.apf-deals__how li { position: relative; margin: 0 0 12px !important; padding: 0 0 0 30px !important; color: var(--apf-text); font-size: 16px; line-height: 1.65; list-style: none; }
.apf-deals__how li::before { content: ""; position: absolute; left: 0; top: 4px; width: 18px; height: 18px; border-radius: 4px; background: var(--apf-brand-green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 12px no-repeat; }

@media (max-width: 1000px) {
	.apf-deals__grid,
	.apf-deals--more .apf-deals__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
	.apf-deals .apf-deals__title { font-size: 23px; }
	.apf-deals__grid { grid-template-columns: 1fr; }
	.apf-deals--more .apf-deals__grid { grid-template-columns: 1fr; gap: 16px; }
	.apf-deals .apf-deal__media { aspect-ratio: 16 / 10; }
	.apf-deals--more .apf-deal__body { padding: 16px 16px 18px; }
	.apf-deals--more .apf-deal .apf-deal__name { font-size: 19px; }
	.apf-deals--more .apf-deal__price strong { font-size: 24px; }
}

/* ==========================================================================
   Comments (comments.php, apf_comment())
   ========================================================================== */
.apf-comments { clear: both; margin: 48px 0 0; padding-top: 32px; border-top: 1px solid var(--apf-line); font-family: var(--apf-font); }
.apf-comments__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 20px; }
.apf-comments .apf-comments__title { display: flex; align-items: center; gap: 10px; margin: 0 !important; padding: 0 !important; border: 0 !important; background: none !important; color: var(--apf-ink); font-size: 26px; font-weight: 800; letter-spacing: -.02em; text-align: left; text-transform: none; }
.apf-comments .apf-comments__title::before,
.apf-comments .apf-comments__title::after { content: none !important; display: none !important; }
.apf-comments__count { display: inline-flex; align-items: center; justify-content: center; min-width: 30px; height: 30px; padding: 0 8px; border-radius: 6px; background: #eaf3fb; color: var(--apf-blue-700); font-size: 15px; letter-spacing: 0; }
.apf-comments__jump { color: var(--apf-blue-700); font-size: 15px; font-weight: 700; text-decoration: none; }
.apf-comments__jump:hover { text-decoration: underline; text-underline-offset: 3px; }
.apf-comments__empty,
.apf-comments__closed { margin: 0 0 24px !important; padding: 14px 16px; border-left: 4px solid #1f6fa8; background: #e8f1f9; color: var(--apf-text); font-size: 15px; }

.apf-comments__list,
.apf-comments__list .children { margin: 0 !important; padding: 0 !important; list-style: none !important; }
.apf-comments__list li { margin: 0; padding: 0; list-style: none !important; background: none; }
.apf-comments__list li::before { content: none !important; }
.apf-comments__list > li + li { margin-top: 14px; }
.apf-comments__list .children { margin: 12px 0 0 28px !important; padding-left: 18px !important; border-left: 2px solid #d6e3ef; }
.apf-comments__list .children > li + li { margin-top: 12px; }
.apf-comment__card { padding: 18px 20px; border: 1px solid var(--apf-line); border-radius: 8px; background: var(--apf-white); }
.apf-comment.is-author > .apf-comment__card { border-color: #b9d6ef; background: #f5f9fd; }
.apf-comment__head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.apf-comment__avatar { flex: none; width: 44px !important; height: 44px !important; border-radius: 50%; }
.apf-comment__who { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; min-width: 0; }
.apf-comment__name,
.apf-comment__name a { color: var(--apf-ink); font-size: 16px; font-weight: 700; text-decoration: none; }
.apf-comment__badge { padding: 2px 8px; border-radius: 4px; background: var(--apf-blue-700); color: #fff; font-size: 11.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.apf-comment__time { flex-basis: 100%; color: var(--apf-muted); font-size: 13px; text-decoration: none; }
.apf-comment__time:hover { color: var(--apf-blue-700); }
.apf-comment__pending { margin: 0 0 8px !important; color: #9a4b0b; font-size: 13.5px; font-style: italic; }
.apf-comment__text { color: var(--apf-text); font-size: 16px; line-height: 1.65; overflow-wrap: anywhere; }
.apf-comment__text p { margin: 0 0 10px !important; }
.apf-comment__text p:last-child { margin-bottom: 0 !important; }
.apf-comment__actions { display: flex; align-items: center; gap: 14px; margin-top: 12px; }
.apf-comment__actions a { color: var(--apf-blue-700); font-size: 14px; font-weight: 700; text-decoration: none; }
.apf-comment__actions .comment-reply-link { display: inline-flex; align-items: center; padding: 6px 12px; border: 1px solid var(--apf-line); border-radius: 6px; background: var(--apf-white); }
.apf-comment__actions .comment-reply-link:hover { border-color: var(--apf-blue-700); }
.apf-comment__actions .comment-edit-link { color: var(--apf-muted); font-weight: 600; }
.apf-comments__pages { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 18px; }
.apf-comments__pages .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 38px; height: 38px; padding: 0 10px; border: 1px solid var(--apf-line); border-radius: 6px; color: var(--apf-navy); font-weight: 700; text-decoration: none; }
.apf-comments__pages .page-numbers.current { border-color: var(--apf-navy); background: var(--apf-navy); color: #fff; }

/* Form */
.apf-comments .apf-comments__form { display: block !important; float: none !important; width: auto !important; max-width: none !important; margin-top: 28px; padding: 24px 26px 26px; border: 1px solid var(--apf-line); border-radius: 8px; background: #f7fafc; }
.apf-comments__list .apf-comments__form { margin: 12px 0 0; }
.apf-comments .apf-comments__form-title { float: none !important; width: auto !important; display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px; margin: 0 0 6px !important; padding: 0 !important; border: 0 !important; background: none !important; color: var(--apf-ink); font-size: 21px; font-weight: 800; text-align: left; text-transform: none; }
.apf-comments .apf-comments__form-title::before,
.apf-comments .apf-comments__form-title::after { content: none !important; display: none !important; }
.apf-comments__form-title small a { color: var(--apf-muted); font-size: 14px; font-weight: 600; }
.apf-comments__note,
.apf-comments__form .logged-in-as { margin: 0 0 16px !important; color: var(--apf-muted); font-size: 14px; }
.apf-comments__form .logged-in-as a { color: var(--apf-blue-700); }
.apf-comments__form form { float: none !important; width: auto !important; margin: 0 !important; padding: 0 !important; border: 0 !important; background: none !important; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.apf-comments__form p { float: none !important; width: auto !important; margin: 0 !important; padding: 0 !important; }
.apf-comments__form .comment-form-author,
.apf-comments__form .comment-form-email { min-width: 0; }
.apf-comments__form .comment-notes,
.apf-comments__form .logged-in-as,
.apf-comments__form .comment-form-comment,
.apf-comments__form .comment-form-url,
.apf-comments__form .comment-form-cookies-consent,
.apf-comments__form .form-submit,
.apf-comments__form > form > *:not(.comment-form-author):not(.comment-form-email) { grid-column: 1 / -1; }
.apf-comments__form label { display: block; margin-bottom: 6px; color: var(--apf-ink); font-size: 14.5px; font-weight: 700; }
.apf-comments__form input[type="text"],
.apf-comments__form input[type="email"],
.apf-comments__form input[type="url"],
.apf-comments__form textarea { width: 100%; max-width: 100%; margin: 0; padding: 12px 14px; border: 1px solid #cbd6e1; border-radius: 6px; background: var(--apf-white); color: var(--apf-ink); font-family: var(--apf-font); font-size: 16px; box-shadow: none; }
.apf-comments__form input:not([type="checkbox"]) { height: 48px; }
.apf-comments__form textarea { min-height: 150px; resize: vertical; }
.apf-comments__form input:focus,
.apf-comments__form textarea:focus { border-color: var(--apf-brand); outline: 0; box-shadow: 0 0 0 3px rgba(52, 152, 219, .2); }
.apf-comments__form .comment-form-cookies-consent { display: flex; align-items: flex-start; gap: 8px; color: var(--apf-muted); font-size: 14px; }
.apf-comments__form .comment-form-cookies-consent label { margin: 0; color: var(--apf-muted); font-weight: 500; }
.apf-comments__form .comment-form-cookies-consent input { margin-top: 3px; }
.apf-comments__form .form-submit .apf-button { min-height: 50px; padding: 0 26px; font-size: 16px; }
@media (max-width: 640px) {
	.apf-comments .apf-comments__title { font-size: 22px; }
	.apf-comments__list .children { margin-left: 8px !important; padding-left: 12px !important; }
	.apf-comment__card { padding: 14px 14px; }
	.apf-comments__form { padding: 18px 16px 20px; }
	.apf-comments__form form { grid-template-columns: 1fr; }
}
.apf-comments #commentform input[type="text"],
.apf-comments #commentform input[type="email"],
.apf-comments #commentform input[type="url"],
.apf-comments #commentform textarea { width: 100% !important; padding: 12px 14px; border: 1px solid #cbd6e1; border-radius: 6px; background: var(--apf-white); line-height: 1.5; }
.apf-comments #commentform textarea:focus,
.apf-comments #commentform input:focus { border-color: var(--apf-brand); background: var(--apf-white); }
.apf-comments #commentform p { float: none; width: auto; margin: 0; clear: none; }
.apf-comments #commentform p label { padding: 0; }
.apf-comments #commentform .comment-form-cookies-consent input { width: auto !important; height: auto; }
.apf-comments #commentform .apf-button { padding: 0 26px; }
.apf-comments #commentform input[type="text"],
.apf-comments #commentform input[type="email"] { max-width: none !important; }
.apf-comment__actions .comment-reply-link,
.apf-comment__actions .reply { margin: 0 !important; }
.apf-comment__time { margin: 0 !important; padding: 0 !important; }
.apf-device-tabs__tab.is-empty,
.apf-device-tabs__tab.is-empty:hover { background: var(--apf-white); color: #9aa7b4; cursor: default; }
.apf-device-tabs__tab.is-empty .apf-icon { opacity: .55; }

/* Buying guides on the home page: keep the text clear of the photo even if other CSS resets padding. */
.apf-guides__list .apf-row-card .apf-row-card__body { padding: 18px 24px 18px 26px !important; }
@media (max-width: 640px) {
	.apf-guides__list .apf-row-card .apf-row-card__body { padding: 12px 14px 12px 16px !important; }
}
/* Extra space between photo and text: column gap on the card itself (independent of the text padding). */
.apf-guides__list .apf-row-card { column-gap: 28px !important; padding-right: 22px !important; }
.apf-guides__list .apf-row-card .apf-row-card__body { padding: 18px 0 !important; }
@media (max-width: 640px) {
	.apf-guides__list .apf-row-card { column-gap: 14px !important; padding-right: 12px !important; }
	.apf-guides__list .apf-row-card .apf-row-card__body { padding: 12px 0 !important; }
}

/* Compare: device cards with a large photo; button, price line and review link always aligned */
.apf-cmp-head { padding: 0 !important; overflow: hidden; }
.apf-cmp-head__media { position: relative; aspect-ratio: 4 / 3; width: 100%; overflow: hidden; border-bottom: 1px solid var(--apf-line); background: var(--apf-bg-soft); }
.apf-cmp-head__media img { position: absolute; inset: 0; width: 100% !important; height: 100% !important; max-width: none; max-height: none; object-fit: cover; }
.apf-cmp-head__body { display: flex; flex: 1; flex-direction: column; align-items: center; padding: 16px 18px 18px; text-align: center; }
.apf-cmp-head__remove { z-index: 2; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: rgba(255, 255, 255, .92); box-shadow: 0 2px 8px rgba(15, 42, 64, .18); color: var(--apf-navy); }
.apf-cmp-head .apf-cmp-head__name { font-size: 20px; }
.apf-cmp-head__actions { display: flex; flex-direction: column; align-items: stretch; gap: 6px; width: 100%; margin-top: auto; padding-top: 6px; }
.apf-cmp-head__actions .apf-amazon { justify-content: center; min-height: 46px; }
.apf-cmp-head__time { display: block; min-height: 17px; color: var(--apf-muted); font-size: 12px; font-style: italic; line-height: 17px; }
.apf-cmp-head__review { color: var(--apf-blue-700); font-size: 14px; font-weight: 700; text-decoration: none; }
.apf-cmp-head__review:hover { text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 560px) {
	.apf-cmp-head__body { padding: 12px 10px 14px; }
	.apf-cmp-head .apf-cmp-head__name { font-size: 15px; }
	.apf-cmp-head__actions .apf-amazon { min-height: 40px; font-size: 13px; }
	.apf-cmp-head__time { font-size: 10.5px; }
}

/* Plugin charts and tables on the compare page: one card per chart/table, as in the articles */
.apf-cmp-plugin { display: grid; gap: 22px; }
.apf-cmp-plugin__item { min-width: 0; padding: 20px 22px; border: 1px solid var(--apf-line); border-radius: 8px; background: var(--apf-white); overflow-x: auto; }
.apf-cmp-plugin__item > *:first-child { margin-top: 0 !important; }
.apf-cmp-plugin__item > *:last-child { margin-bottom: 0 !important; }
@media (max-width: 560px) {
	.apf-cmp-plugin__item { padding: 14px 12px; }
}

/* Deals: type tabs and filters (same look as the Test Results Database) */
.apf-deals__types { margin-top: 4px; }
.apf-deals__types .apf-trdb__type { cursor: pointer; font-family: var(--apf-font); }
.apf-deals__types .apf-trdb__type:disabled { color: #9aa7b4; cursor: default; }
.apf-deals__types .apf-trdb__type.is-active { background: #e8f1fa; border-bottom-color: var(--apf-brand); color: var(--apf-blue-700); }
.apf-deals__filters { grid-template-columns: 2fr repeat(3, minmax(0, 1fr)); margin-bottom: 22px; }
.apf-deals .apf-deal[hidden] { display: none; }
.apf-deals__none { margin: 0 !important; padding: 16px; border-left: 4px solid #1f6fa8; background: #e8f1f9; color: var(--apf-text); }
.apf-deals__none[hidden] { display: none; }
@media (max-width: 1000px) {
	.apf-deals__filters { grid-template-columns: 1fr 1fr; }
	.apf-deals__filters .apf-field:first-child { grid-column: 1 / -1; }
}

/* Sidebar widgets: This comparison, Related comparisons, Featured in guides */
.apf-sidebar > .widget .apf-w-vs { display: grid; gap: 0; }
.apf-sidebar > .widget .apf-w-vs__item { display: grid !important; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 12px; align-items: start; padding: 10px 0 !important; border-bottom: 0; }
.apf-w-vs__item .apf-w-item__media,
.apf-w-vs__item .apf-w-item__media img { width: 56px; height: 56px; }
.apf-w-vs__item.is-winner .apf-w-item__media::after { content: "\2605 "; position: absolute; top: -6px; left: -6px; display: grid; place-items: center; width: 20px; height: 20px; border: 2px solid var(--apf-white); border-radius: 50%; background: var(--apf-brand-green); color: #fff; font-size: 11px; }
.apf-sidebar > .widget .apf-w-item__text a.apf-w-vs__buy { display: inline-block; margin-top: 6px; color: #c2410c; font-size: 13px; font-weight: 700; }
.apf-sidebar > .widget .apf-w-item__text a.apf-w-vs__buy:hover { text-decoration: underline; }
.apf-sidebar > .widget .apf-w-vs__sep { position: relative; display: block !important; height: 18px; padding: 0 !important; border: 0; text-align: center; }
.apf-w-vs__sep::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; border-top: 1px solid var(--apf-line); }
.apf-w-vs__sep span { position: relative; display: inline-grid; place-items: center; width: 30px; height: 18px; border-radius: 4px; background: var(--apf-navy); color: #fff; font-size: 10.5px; font-weight: 800; letter-spacing: .06em; }
.apf-sidebar .apf-w-vs__cta { justify-content: center; gap: 8px; width: 100%; margin-top: 12px; }
.apf-w-vs__cta .apf-icon { width: 16px; height: 16px; }
.apf-sidebar > .widget .apf-w-links li { padding: 0 !important; }
.apf-sidebar > .widget .apf-w-links a { display: flex; align-items: flex-start; gap: 10px; padding: 10px 0; color: var(--apf-ink); font-size: 14.5px; font-weight: 600; line-height: 1.4; }
.apf-w-links__icon { display: inline-grid; flex: none; place-items: center; width: 28px; height: 28px; border-radius: 6px; background: #eaf3fb; color: var(--apf-blue-700); }
.apf-w-links__icon .apf-icon { width: 15px; height: 15px; }
.apf-sidebar > .widget .apf-w-links a:hover { color: var(--apf-blue-700); }

/* Compare: link to a written comparison article for the selected devices */
.apf-cmp-article { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 20px; margin: 0 0 14px; padding: 20px 24px; border-left: 4px solid var(--apf-brand-green); border-radius: 8px; background: linear-gradient(135deg, var(--apf-navy) 0%, #1f5a86 100%); color: #fff; }
.apf-cmp-article__icon { display: grid; flex: none; place-items: center; width: 46px; height: 46px; border-radius: 8px; background: rgba(255, 255, 255, .12); }
.apf-cmp-article__icon .apf-icon { width: 24px; height: 24px; color: #fff; }
.apf-cmp-article__text { flex: 1; min-width: 220px; }
.apf-cmp-article__text p { margin: 0 !important; }
.apf-cmp-article__label { color: #b9ec8a; font-size: 12.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.apf-cmp-article__title { margin-top: 2px !important; color: #fff; font-size: 20px; font-weight: 800; line-height: 1.3; }
.apf-cmp-article__meta { margin-top: 2px !important; color: rgba(255, 255, 255, .78); font-size: 13.5px; }
.apf-cmp-article .apf-button { gap: 8px; background: var(--apf-white); color: var(--apf-navy); }
.apf-cmp-article .apf-button:hover { background: #eaf3fb; color: var(--apf-navy); }
.apf-cmp-article .apf-button .apf-icon { width: 16px; height: 16px; }
.apf-cmp-related { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin: 0 0 32px; color: var(--apf-muted); font-size: 14px; }
.apf-cmp-related__label { font-weight: 700; }
.apf-cmp-related a { display: inline-flex; align-items: center; gap: 6px; color: var(--apf-blue-700); font-weight: 700; text-decoration: none; }
.apf-cmp-related a:hover { text-decoration: underline; text-underline-offset: 3px; }
.apf-cmp-related .apf-icon { width: 14px; height: 14px; }
.apf-cmp-heads + .apf-cmp-article { margin-top: -14px; }

/* Embedded videos (.flex-video / .flex-video-youtube): full width, 16:9 on every screen */
.flex-video { position: relative; width: 100%; max-width: 100%; height: auto; margin: 24px 0; padding: 0 !important; overflow: hidden; aspect-ratio: 16 / 9; border-radius: 8px; background: #000; }
.flex-video iframe,
.flex-video embed,
.flex-video object,
.flex-video video { position: absolute; inset: 0; width: 100% !important; max-width: 100% !important; height: 100% !important; margin: 0; border: 0; }

/* Comments: even spacing (neutralize the old .comment time / .comment-reply-link / .reply rules) */
.apf-comments__list .apf-comment__time,
.apf-comments__list .apf-comment__time time { margin: 0 !important; padding: 0 !important; text-indent: 0; }
.apf-comment__who { flex-direction: column; align-items: flex-start; gap: 2px; }
.apf-comment__who .apf-comment__badge { order: 0; }
.apf-comment__name-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.apf-comment__head { gap: 14px; margin-bottom: 12px; }
.apf-comment__head:not(:has(img)) .apf-comment__who { margin-left: 0; }
.apf-comment__card { padding: 20px 22px; }
.apf-comment__text { margin: 0; }
.apf-comments__list .apf-comment__actions { display: flex; align-items: center; gap: 14px; margin: 14px 0 0 !important; padding: 0 !important; }
.apf-comments__list .apf-comment__actions .comment-reply-link { float: none !important; margin: 0 !important; color: var(--apf-blue-700); font-size: 14px; }
.apf-comments__list .apf-comment__actions .reply { float: none !important; width: auto !important; margin: 0 !important; }
.apf-comments__list > li + li { margin-top: 16px; }
.apf-comments__list .children { margin: 14px 0 0 24px !important; padding-left: 20px !important; }
.apf-comments__list .children > li { margin: 0 !important; }
.apf-comments__list .children > li + li { margin-top: 14px !important; }
@media (max-width: 640px) {
	.apf-comment__card { padding: 16px; }
	.apf-comments__list .children { margin-left: 6px !important; padding-left: 12px !important; }
}
/* Author box: name on its own line (neutralize the old .postauthor h4 float/uppercase) */
.apf-author-box .apf-author-box__name { display: block; float: none !important; width: auto !important; clear: both; font-weight: 800; letter-spacing: -.01em; line-height: 1.25; text-transform: none !important; }
.apf-author-box .apf-author-box__name a { font-size: inherit !important; font-weight: inherit !important; }
.apf-author-box .apf-author-box__bio { clear: both; }
.apf-author-box .apf-author-box__name *,
.apf-author-box .apf-author-box__name .fn { text-transform: none !important; letter-spacing: -.01em; }

/* Buying guides on the home page: the photo can never spill into the text column
   (Imagify <picture> wrappers, lazy-load markup), and the text always keeps its own space. */
.apf-guides__list .apf-row-card { column-gap: 0 !important; padding-right: 0 !important; }
.apf-guides__list .apf-row-card__media { min-width: 0 !important; max-width: 100%; overflow: hidden !important; contain: paint; }
.apf-guides__list .apf-row-card__media picture,
.apf-guides__list .apf-row-card__media noscript + img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; }
.apf-guides__list .apf-row-card__media img { max-width: none; }
.apf-guides__list .apf-row-card .apf-row-card__body { position: relative; z-index: 1; min-width: 0; padding: 18px 24px 18px 28px !important; background: var(--apf-white); }
@media (max-width: 640px) {
	.apf-guides__list .apf-row-card .apf-row-card__body { padding: 12px 12px 12px 16px !important; }
}

/* Compare: lab results as compact cards (only data the plugin tables do not show) */
.apf-cmp-lab { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.apf-cmp-lab__card { min-width: 0; margin: 0; padding: 18px 20px; border: 1px solid var(--apf-line); border-radius: 8px; background: var(--apf-white); }
.apf-cmp-lab__card--wide { grid-column: 1 / -1; }
.apf-cmp-lab__card h3 { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin: 0 0 12px !important; padding: 0 !important; border: 0 !important; color: var(--apf-ink); font-size: 17px; font-weight: 800; text-transform: none; }
.apf-cmp-lab__card h3::before,
.apf-cmp-lab__card h3::after { content: none; }
.apf-cmp-lab__card figcaption { margin-top: 8px; color: var(--apf-muted); font-size: 13px; }
.apf-cmp-rooms { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px 24px; }
.apf-cmp-rooms__room { margin: 0 0 6px !important; color: var(--apf-ink); font-size: 14px; font-weight: 700; }
.apf-cmp-rooms__room small { color: var(--apf-muted); font-weight: 500; }
.apf-cmp-winner strong { display: flex; align-items: center; gap: 6px; }
.apf-cmp-winner strong .apf-icon { flex: none; width: 15px; height: 15px; color: var(--apf-c, var(--apf-brand)); }
@media (max-width: 760px) {
	.apf-cmp-lab { grid-template-columns: 1fr; }
}

/* Deals: price info opens on click, inside the card (never clipped) */

/* Deals: photo edge to edge (no padding around the image) */
.apf-deal__media { padding: 0 !important; overflow: hidden; }
.apf-deal__media img { width: 100% !important; height: 100% !important; max-width: none; max-height: none; object-fit: cover; }
.apf-deals--more .apf-deal__media { padding: 0 !important; }

/* Comparison widgets (old "Product Comparisons" box from the custom fields and APF: Related comparisons):
   tinted card, white rows with a blue accent, short "A vs B" titles. */
.apf-sidebar > .widget.widget_comparisons:not(#sidebar-search),
.apf-sidebar > .widget.apf-w-cmps:not(#sidebar-search) { border-color: #cfe1f1; background: #eaf3fb; }
.apf-sidebar > .widget.widget_comparisons .widget-title,
.apf-sidebar > .widget.widget_comparisons h3,
.apf-sidebar > .widget.apf-w-cmps .widget-title { border-bottom-color: #9cc4e6 !important; }
.widget_comparisons .widget_comparisons-wrap,
.apf-w-cmps__list { display: flex; flex-direction: column; gap: 8px; font-size: 14.5px; }
.widget_comparisons .widget_comparisons-wrap a,
.apf-w-cmps__list a { display: block; margin: 0 !important; padding: 10px 12px; border: 1px solid #d6e6f4; border-left: 3px solid var(--apf-brand); border-radius: 6px; background: var(--apf-white); color: var(--apf-ink) !important; font-weight: 500; line-height: 1.4; text-decoration: none; transition: border-color .15s, background-color .15s; }
.widget_comparisons .widget_comparisons-wrap a:hover,
.apf-w-cmps__list a:hover { border-color: #a9c6e1; border-left-color: var(--apf-blue-700); background: #f7fbfe; color: var(--apf-blue-700) !important; }
.widget_comparisons .widget_comparisons-wrap b,
.widget_comparisons .widget_comparisons-wrap strong,
.apf-w-cmps__list strong { color: var(--apf-navy); font-weight: 800; }
.apf-w-cmps__vs { color: var(--apf-muted); font-size: 12.5px; font-weight: 600; }

/* Old comparison CTA box inside articles: no padding */
.cta-box.deal-cta.comparison-cta { padding: 0 !important; }

/* Comments have no avatars */
.apf-comments .avatar { display: none !important; }

/* Test Results Database: shadow on the right of the device column, so devices and data are clearly apart */
.apf-table .apf-table__device { box-shadow: 1px 0 0 var(--apf-line), 8px 0 12px -8px rgba(15, 42, 64, .22); }

/* Test Results Database on phones: the shortlist checkbox and a narrower device column stay pinned
   on the left, so more result columns fit next to them and nothing peeks out beside them. */
@media (max-width: 640px) {
	.apf-table .apf-table__select { position: sticky; left: 0; z-index: 1; width: 34px; min-width: 34px !important; max-width: 34px; padding-right: 2px; padding-left: 8px; background: inherit; }
	.apf-table thead .apf-table__select { z-index: 2; background: #eef3f8; }
	.apf-table .apf-table__device { left: 34px; width: 44vw; min-width: min(44vw, 170px) !important; max-width: 190px; padding-right: 8px; padding-left: 6px; white-space: normal; }
	.apf-device { gap: 8px; }
	.apf-device img,
	.apf-device__placeholder { width: 32px; height: 32px !important; }
	.apf-device__text { min-width: 0; }
	.apf-device__text a,
	.apf-device__text strong { font-size: 13.5px; line-height: 1.25; overflow-wrap: anywhere; }
	.apf-device__text small { font-size: 11px; }
	.apf-table th,
	.apf-table td { padding-right: 10px; padding-left: 10px; }
}

/* Compare v4: jump links, Chart.js cards, per-speed noise & power, grouped spec table */
.apf-cmp-jump { position: sticky; top: calc(var(--apf-sticky-h, 0px) + 8px); z-index: 20; display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 28px; padding: 8px; border: 1px solid var(--apf-line); border-radius: 8px; background: rgba(255, 255, 255, .96); box-shadow: 0 4px 14px rgba(15, 42, 64, .06); }
.apf-cmp-jump a { padding: 8px 14px; border-radius: 6px; color: var(--apf-navy); font-size: 14px; font-weight: 700; text-decoration: none; }
.apf-cmp-jump a:hover { background: #eaf3fb; color: var(--apf-blue-700); }
.apf-cmp-jump a[hidden] { display: none; }
.apf-cmp-section { scroll-margin-top: calc(var(--apf-sticky-h, 0px) + 80px); }
.apf-cmp-lab__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.apf-cmp-lab__head h3 { margin: 0 !important; }
.apf-cmp-toggle { display: inline-flex; border: 1px solid var(--apf-line); border-radius: 6px; overflow: hidden; }
.apf-cmp-toggle button { padding: 7px 14px; border: 0; background: var(--apf-white); color: var(--apf-navy); font-family: var(--apf-font); font-size: 13px; font-weight: 700; cursor: pointer; }
.apf-cmp-toggle button + button { border-left: 1px solid var(--apf-line); }
.apf-cmp-toggle button[aria-pressed="true"] { background: var(--apf-navy); color: #fff; }
.apf-cmp-toggle button:disabled { color: #9aa7b4; cursor: default; }
.apf-cmp-canvas { position: relative; height: 280px; }
.apf-cmp-canvas--tall { height: 360px; }
.apf-cmp-speeds { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; margin-top: 16px; }
.apf-cmp-speed { min-width: 0; padding: 16px 18px; border: 1px solid var(--apf-line); border-top: 4px solid var(--apf-c); border-radius: 8px; background: var(--apf-white); }
.apf-cmp-speed__name { margin: 0 0 10px !important; color: var(--apf-ink); font-size: 16px; font-weight: 800; }
.apf-cmp-speed__table { width: 100%; margin: 0; border-collapse: collapse; font-size: 13.5px; }
.apf-cmp-speed__table th,
.apf-cmp-speed__table td { padding: 7px 6px; border-bottom: 1px solid var(--apf-line-soft); text-align: right; white-space: nowrap; }
.apf-cmp-speed__table thead th { color: var(--apf-muted); font-size: 11.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.apf-cmp-speed__table th:first-child { text-align: left; color: var(--apf-ink); font-weight: 600; white-space: normal; }
.apf-cmp-speed__table thead th:first-child { color: var(--apf-muted); font-weight: 700; }
.apf-cmp-speed__table tbody tr:last-child th,
.apf-cmp-speed__table tbody tr:last-child td { border-bottom: 0; }
.apf-cmp-speed__sum { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0 0 !important; }
.apf-cmp-speed__sum span { padding: 4px 8px; border-radius: 4px; background: #f3f7fb; color: var(--apf-text); font-size: 12.5px; font-weight: 600; }
.apf-cmp-speed__none { margin: 0 !important; color: var(--apf-muted); }
.apf-cmp-table__group th { padding: 10px 14px !important; background: #f3f7fb !important; color: var(--apf-navy) !important; font-size: 12px !important; font-weight: 800 !important; letter-spacing: .08em; text-align: left !important; text-transform: uppercase; }
@media (max-width: 760px) {
	.apf-cmp-canvas { height: 240px; }
	.apf-cmp-canvas--tall { height: 280px; }
	.apf-cmp-jump { position: static; }
}

.apf-cmp-speed__table { table-layout: fixed; max-width: 100%; border: 0 !important; box-shadow: none !important; }
.apf-cmp-speed__table th,
.apf-cmp-speed__table td { background: none !important; white-space: normal; word-break: normal; }
.apf-cmp-speed__table th:first-child { width: 40%; }
.apf-cmp-speed__table td small { display: block; color: var(--apf-muted); font-size: 11.5px; }

/* Deals: the whole "Price as of ..." line opens a tooltip above it (the card no longer clips it) */
.apf-deal { overflow: visible !important; }
.apf-deal__media { border-radius: 8px 8px 0 0; }
.apf-deal__timewrap { position: relative; display: flex; justify-content: center; margin-top: -2px; }
.apf-deal__time { display: inline-flex; align-items: center; justify-content: center; gap: 6px; margin: 0; padding: 4px 8px; border: 0; border-radius: 4px; background: none; color: var(--apf-muted); font-family: var(--apf-font); font-size: 12.5px; font-style: italic; cursor: pointer; }
.apf-deal__time .apf-icon { flex: none; width: 15px; height: 15px; font-style: normal; }
.apf-deal__time:hover,
.apf-deal__time[aria-expanded="true"] { background: #eaf3fb; color: var(--apf-blue-700); }
.apf-deal__time:focus-visible { outline: 2px solid var(--apf-brand); outline-offset: 2px; }
.apf-deal__tip { position: absolute; bottom: calc(100% + 10px); left: 50%; z-index: 30; width: min(280px, 92vw); margin: 0 !important; padding: 12px 14px; border-radius: 6px; background: var(--apf-navy); box-shadow: 0 10px 24px rgba(15, 42, 64, .25); color: #fff; font-size: 12.5px; font-style: normal; line-height: 1.5; text-align: left; transform: translateX(-50%); }
.apf-deal__tip::after { content: ""; position: absolute; top: 100%; left: 50%; border: 7px solid transparent; border-top-color: var(--apf-navy); transform: translateX(-50%); }
.apf-deal__tip[hidden] { display: none; }
@media (max-width: 600px) {
	.apf-deal__timewrap { width: 100%; }
	.apf-deal__tip { left: 0; right: 0; width: auto; transform: none; }
}

/* Search window footer: hint + "See all N results" button; same tabs on the results page */
.apf-search__footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; }
.apf-search__hint { margin: 0 !important; color: var(--apf-muted); font-size: 13.5px; }
.apf-search .apf-search__all { gap: 8px; min-height: 44px; padding: 0 18px; border: 0; text-decoration: none; }
.apf-search .apf-search__all .apf-icon { width: 16px; height: 16px; }
.apf-search-page__tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 22px; }
.apf-search-page__tabs .apf-search__tab { text-decoration: none; }
.apf-search-page__tabs .apf-search__tab[aria-current="page"] { border-color: var(--apf-navy); background: var(--apf-navy); color: #fff; }
@media (max-width: 560px) {
	.apf-search__hint { display: none; }
	.apf-search .apf-search__all { width: 100%; justify-content: center; }
}

/* Quiz result v2: closer to the site's cards (deals page) */
.apf-quiz__winner-hero .apf-quiz__rating { display: inline-flex; align-items: center; gap: 6px; }
.apf-quiz__winner-hero .apf-rating { padding: 1px 6px; font-size: 13px; line-height: 1.4; }
.apf-quiz__winner-main { grid-template-columns: 260px 1fr; align-items: start; background: var(--apf-white); }
.apf-quiz__winner { background: var(--apf-white); }
.apf-quiz__winner-media { display: block; padding: 0; overflow: hidden; aspect-ratio: 1 / 1; background: #f7fafc; }
.apf-quiz__winner-media img { display: block; width: 100%; height: 100% !important; object-fit: cover; }
.apf-quiz__facts { grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr)); background: var(--apf-line-soft, #e8eef4); }
.apf-quiz__facts li { padding: 12px 14px !important; background: #f7fafc; }
.apf-quiz__facts strong { font-size: 19px; white-space: nowrap; }
.apf-quiz__facts span { font-size: 12.5px; }
.apf-quiz__time { display: block; margin-top: 8px; color: var(--apf-muted); font-size: 12.5px; font-style: italic; }
.apf-quiz__alt-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.apf-quiz__alt { display: flex; flex-direction: column; flex-wrap: nowrap; gap: 0; padding: 0; overflow: hidden; border-radius: 6px; transition: border-color .15s, box-shadow .15s; }
.apf-quiz__alt:hover { border-color: #b9d2ea; box-shadow: 0 8px 24px rgba(15, 42, 64, .08); }
.apf-quiz__alt-media { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-bottom: 1px solid var(--apf-line-soft, #e8eef4); background: #f7fafc; }
.apf-quiz__alt-media img { display: block; width: 100% !important; height: 100% !important; object-fit: cover; }
.apf-quiz__alt-fit { position: absolute; top: 12px; left: 12px; z-index: 1; padding: 5px 10px; border-radius: 4px; background: var(--apf-brand-green); color: #fff; font-size: 13px; font-weight: 800; }
.apf-quiz__alt-body { display: flex; flex: 1; flex-direction: column; gap: 8px; padding: 16px 18px 18px; }
.apf-quiz__alt-name { font-size: 17px; }
.apf-quiz__alt .apf-quiz__alt-rating { display: flex; align-items: center; gap: 6px; margin: 0 !important; color: var(--apf-muted); font-size: 13px; }
.apf-quiz__alt-rating .apf-rating { padding: 2px 6px; font-size: 13px; }
.apf-quiz__alt .apf-quiz__alt-text { flex: 1; margin: 0 !important; }
.apf-quiz__alt-buy { display: flex; justify-content: center; width: 100%; margin-top: 4px; }
.apf-quiz__alt-review { align-self: center; color: var(--apf-blue-700); font-size: 14px; font-weight: 700; text-decoration: none; }
.apf-quiz__alt-review:hover { text-decoration: underline; }
@media (max-width: 760px) {
	.apf-quiz__winner-main { grid-template-columns: 1fr; }
	.apf-quiz__winner-media { aspect-ratio: 4 / 3; }
	.apf-quiz__facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.apf-quiz__facts li:last-child:nth-child(odd) { grid-column: 1 / -1; }
	.apf-quiz__alt-list { grid-template-columns: 1fr; }
}
.apf-quiz__alt > .apf-quiz__alt-media { flex: none; width: 100%; }
.apf-quiz__alt > .apf-quiz__alt-body { flex: 1 1 auto; }

/* Deals: "Great deal" highlight + savings */
.apf-deal--great { border: 2px solid var(--apf-coral); box-shadow: 0 6px 20px rgba(255, 100, 101, .14); }
.apf-deal__great { position: absolute; top: 12px; right: 12px; z-index: 1; display: inline-flex; align-items: center; gap: 5px; padding: 5px 9px; border-radius: 4px; background: var(--apf-navy); color: #fff; font-size: 12.5px; font-weight: 800; letter-spacing: .02em; }
.apf-deal__great .apf-icon { width: 14px; height: 14px; color: #ffd166; }
.apf-deal__price { flex-wrap: wrap; }
.apf-deal__save { display: inline-block; padding: 2px 7px; border-radius: 4px; background: #eef8e7; color: #2f6f1a; font-size: 12.5px; font-weight: 800; }

/* Deals: How we curate (four points) */
.apf-deals__how { margin: 48px 0 0; padding: 32px; border: 1px solid var(--apf-line); border-radius: 8px; background: #f7fafc; }
.apf-deals__how-head { max-width: 680px; margin-bottom: 22px; }
.apf-deals__how-head .apf-eyebrow { margin: 0 0 6px !important; }
.apf-deals__how h2 { margin: 0 0 8px !important; padding: 0 !important; border: 0 !important; color: var(--apf-ink); font-size: 26px; font-weight: 800; letter-spacing: -.02em; text-transform: none; }
.apf-deals__how h2::before, .apf-deals__how h2::after { content: none; }
.apf-deals__how-head > p:last-child { margin: 0 !important; color: var(--apf-muted); font-size: 16px; line-height: 1.6; }
.apf-deals__how ul.apf-deals__how-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin: 0 !important; padding: 0 !important; list-style: none; }
.apf-deals__how .apf-deals__how-list li { display: flex; flex-direction: column; gap: 6px; margin: 0 !important; padding: 18px !important; border: 1px solid var(--apf-line); border-radius: 6px; background: var(--apf-white); font-size: 14.5px; line-height: 1.55; }
.apf-deals__how .apf-deals__how-list li::before { content: none !important; }
.apf-deals__how-icon { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; margin-bottom: 6px; border-radius: 6px; background: #eaf3fb; color: var(--apf-blue-700); }
.apf-deals__how-icon .apf-icon { width: 20px; height: 20px; }
.apf-deals__how-list strong { color: var(--apf-ink); font-size: 16px; }
.apf-deals__how-list span:last-child { color: var(--apf-text); }
.apf-deals__how-note { margin: 18px 0 0 !important; color: var(--apf-muted); font-size: 14px; }
@media (max-width: 980px) { .apf-deals__how ul.apf-deals__how-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .apf-deals__how { padding: 22px 18px; } .apf-deals__how ul.apf-deals__how-list { grid-template-columns: 1fr; } }
.apf-deal__break { flex-basis: 100%; height: 0; }
.apf-deal__price .apf-deal__save { margin-top: 2px; }
.apf-deal__price { row-gap: 4px; }

/* Home tools v2: Test Results Database feature + two tools + more tools strip */
.apf-db { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 34px; align-items: center; margin-bottom: 18px; padding: 36px; border-radius: 10px; background: linear-gradient(135deg, var(--apf-navy) 0%, #1f5a86 100%); color: #fff; box-shadow: 0 12px 32px rgba(15, 42, 64, .18); }
.apf-db.is-single { grid-template-columns: 1fr; }
.apf-db__eyebrow { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 12px !important; color: #b9ec8a; font-size: 13px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.apf-db__eyebrow .apf-icon { width: 16px; height: 16px; }
.apf-db .apf-db__title { margin: 0 0 10px !important; padding: 0 !important; border: 0 !important; color: #fff; font-size: 32px; font-weight: 800; letter-spacing: -.025em; line-height: 1.15; text-transform: none; }
.apf-db .apf-db__title::before, .apf-db .apf-db__title::after { content: none; }
.apf-db__text { margin: 0 0 18px !important; color: rgba(255, 255, 255, .85); font-size: 16.5px; line-height: 1.6; }
.apf-db ul.apf-db__points { margin: 0 0 24px !important; padding: 0 !important; list-style: none; }
.apf-db .apf-db__points li { display: flex; align-items: flex-start; gap: 10px; margin: 0 0 9px !important; padding: 0 !important; color: #fff; font-size: 15.5px; line-height: 1.45; list-style: none; }
.apf-db .apf-db__points li::before { content: none !important; }
.apf-db__points .apf-icon { flex: none; width: 20px; height: 20px; padding: 3px; border-radius: 4px; background: var(--apf-brand-green); color: #fff; stroke-width: 3; }
.apf-db .apf-db__button, .apf-db .apf-db__button:visited { gap: 8px; min-height: 50px; padding: 0 22px; border: 0; background: #fff; color: var(--apf-navy); font-weight: 800; text-decoration: none; }
.apf-db .apf-db__button:hover { background: #eaf3fb; color: var(--apf-navy); }
.apf-db__button .apf-icon { width: 16px; height: 16px; }
.apf-db__note { margin: 12px 0 0 !important; color: rgba(255, 255, 255, .7); font-size: 13.5px; }
.apf-db__board { padding: 22px 22px 16px; border-radius: 8px; background: #fff; color: var(--apf-ink); }
.apf-db__board-head h4 { margin: 0 0 4px !important; padding: 0 !important; color: var(--apf-ink); font-size: 19px; font-weight: 800; letter-spacing: -.015em; text-transform: none; }
.apf-db__board-head p { margin: 0 0 12px !important; color: var(--apf-muted); font-size: 13px; }
.apf-db table.apf-db__table { width: 100%; margin: 0; border: 0; border-collapse: collapse; background: none; font-size: 15px; table-layout: auto; }
.apf-db__table th { padding: 8px 6px; border: 0; border-bottom: 1px solid var(--apf-line); background: none; color: var(--apf-muted); font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-align: left; text-transform: uppercase; }
.apf-db__table th:last-child, .apf-db__table td.apf-db__min { text-align: right; }
.apf-db__table td { padding: 10px 6px; border: 0; border-bottom: 1px solid var(--apf-line-soft, #e8eef4); background: none; vertical-align: middle; }
.apf-db__table tr:last-child td { border-bottom: 0; }
.apf-db__rank { width: 34px; }
.apf-db__rank span { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 50%; background: #dbe7f3; color: var(--apf-navy); font-size: 12px; font-weight: 800; }
.apf-db__table tbody tr:first-child .apf-db__rank span { background: var(--apf-brand-green); color: #fff; }
.apf-db__device a, .apf-db__device a:visited, .apf-db__device > span:first-child { display: block; overflow: hidden; color: var(--apf-ink); font-weight: 700; text-decoration: none; text-overflow: ellipsis; white-space: nowrap; max-width: 300px; }
.apf-db__device a:hover { color: var(--apf-blue-700); }
.apf-db__bar { display: block; height: 5px; margin-top: 6px; overflow: hidden; border-radius: 3px; background: #eef3f8; }
.apf-db__bar span { display: block; height: 100%; border-radius: 3px; background: linear-gradient(90deg, #2f7fc1, #5aa4e6); }
.apf-db__min { white-space: nowrap; color: var(--apf-muted); font-size: 13px; }
.apf-db__min strong { color: var(--apf-blue-700); font-size: 17px; font-weight: 800; }
.apf-db__all, .apf-db__all:visited { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; color: var(--apf-blue-700); font-size: 14.5px; font-weight: 700; text-decoration: none; }
.apf-db__all:hover { text-decoration: underline; }
.apf-db__all .apf-icon { width: 15px; height: 15px; }
.apf-tools__grid.apf-tools__grid--two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.apf-tool--row { flex-direction: row; align-items: flex-start; gap: 18px; padding: 24px; }
.apf-tool--row .apf-tool__title { margin-top: 2px; }
.apf-tool--row .apf-tool__body { display: flex; flex: 1; flex-direction: column; min-width: 0; }
.apf-tool--row .apf-tool__text { margin: 0 !important; }
.apf-tool--row .apf-tool__link { padding-top: 12px; }
.apf-tools__more { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; margin-top: 18px; padding: 18px 24px; border: 1px dashed #b9d2ea; border-radius: 8px; background: rgba(255, 255, 255, .6); }
.apf-tools__more p { margin: 0 !important; color: var(--apf-muted); font-size: 15px; }
.apf-tools__more strong { color: var(--apf-ink); }
.apf-tools__more ul { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 !important; padding: 0 !important; list-style: none; }
.apf-tools__more li { margin: 0 !important; padding: 0 !important; list-style: none; }
.apf-tools__more li::before { content: none !important; }
.apf-tools__more a, .apf-tools__more a:visited { display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px; border: 1px solid var(--apf-line); border-radius: 6px; background: #fff; color: var(--apf-navy); font-size: 14.5px; font-weight: 700; text-decoration: none; transition: border-color .15s, color .15s; }
.apf-tools__more a:hover { border-color: var(--apf-blue-700); color: var(--apf-blue-700); }
.apf-tools__more .apf-icon { width: 16px; height: 16px; color: var(--apf-blue-700); }
@media (max-width: 980px) {
	.apf-db { grid-template-columns: 1fr; padding: 28px; }
}
@media (max-width: 680px) {
	.apf-db { padding: 22px 18px; }
	.apf-db .apf-db__title { font-size: 26px; }
	.apf-db__board { padding: 16px 14px 12px; }
	.apf-db__device a, .apf-db__device > span:first-child { max-width: 170px; }
	.apf-tools__grid.apf-tools__grid--two { grid-template-columns: 1fr; }
	.apf-tools__more { padding: 16px; }
}

/* Home: YouTube */
.apf-yt__inner { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.3fr); gap: 40px; align-items: center; }
.apf-yt__inner.is-text-only { grid-template-columns: 1fr; max-width: 720px; }
.apf-yt__eyebrow { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 12px !important; color: var(--apf-muted); font-size: 13px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.apf-yt__logo { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 21px; border-radius: 6px; background: #ff0033; color: #fff; }
.apf-yt .apf-yt__title { margin: 0 0 12px !important; padding: 0 !important; border: 0 !important; color: var(--apf-ink); font-size: 34px; font-weight: 800; letter-spacing: -.025em; line-height: 1.15; text-transform: none; }
.apf-yt .apf-yt__title::before, .apf-yt .apf-yt__title::after { content: none; }
.apf-yt__text { margin: 0 0 20px !important; color: var(--apf-text); font-size: 16.5px; line-height: 1.65; }
.apf-yt ul.apf-yt__stats { display: flex; flex-wrap: wrap; gap: 28px; margin: 0 0 24px !important; padding: 0 !important; list-style: none; }
.apf-yt .apf-yt__stats li { display: flex; flex-direction: column; margin: 0 !important; padding: 0 !important; list-style: none; }
.apf-yt .apf-yt__stats li::before { content: none !important; }
.apf-yt__stats strong { color: var(--apf-ink); font-size: 28px; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; }
.apf-yt__stats span { color: var(--apf-muted); font-size: 14px; }
.apf-yt .apf-yt__button, .apf-yt .apf-yt__button:visited { gap: 10px; min-height: 50px; padding: 0 22px; border: 0; background: #ff0033; color: #fff; font-weight: 800; text-decoration: none; }
.apf-yt .apf-yt__button:hover { background: #d9002b; color: #fff; }
.apf-yt__button .apf-icon { width: 20px; height: 20px; }
.apf-yt__videos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.apf-yt__video { overflow: hidden; border: 1px solid var(--apf-line); border-radius: 8px; background: #fff; box-shadow: var(--apf-shadow); }
.apf-yt__thumb { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; background: #0f2a40; }
.apf-yt__thumb img { display: block; width: 100%; height: 100% !important; object-fit: cover; transition: transform .3s; }
.apf-yt__thumb:hover img { transform: scale(1.04); }
.apf-yt__thumb::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(15, 42, 64, 0) 50%, rgba(15, 42, 64, .35) 100%); }
.apf-yt__play { position: absolute; top: 50%; left: 50%; z-index: 1; display: inline-flex; align-items: center; justify-content: center; width: 62px; height: 62px; padding-left: 3px; border-radius: 50%; background: rgba(255, 0, 51, .92); color: #fff; box-shadow: 0 6px 18px rgba(0, 0, 0, .3); transform: translate(-50%, -50%); transition: transform .15s; }
.apf-yt__thumb:hover .apf-yt__play { transform: translate(-50%, -50%) scale(1.08); }
.apf-yt__frame { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; }
.apf-yt__meta { padding: 14px 16px 16px; }
.apf-yt__label { margin: 0 0 4px !important; color: #d9002b; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.apf-yt .apf-yt__vtitle { margin: 0 !important; padding: 0 !important; border: 0 !important; color: var(--apf-ink); font-size: 16.5px; font-weight: 700; line-height: 1.35; text-transform: none; }
.apf-yt .apf-yt__vtitle::before, .apf-yt .apf-yt__vtitle::after { content: none; }
@media (max-width: 980px) { .apf-yt__inner { grid-template-columns: 1fr; gap: 28px; } }
@media (max-width: 560px) { .apf-yt__videos { grid-template-columns: 1fr; } .apf-yt .apf-yt__title { font-size: 28px; } }

.apf-db ol.apf-db__list { margin: 0 !important; padding: 0 !important; list-style: none; }
.apf-db .apf-db__row { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 12px; align-items: center; margin: 0 !important; padding: 10px 4px !important; border-bottom: 1px solid #e8eef4; list-style: none; }
.apf-db .apf-db__row::before { content: none !important; }
.apf-db .apf-db__row:last-child { border-bottom: 0; }
.apf-db .apf-db__row--head { padding: 6px 4px !important; border-bottom-color: var(--apf-line); color: var(--apf-muted); font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.apf-db__row--head span:last-child { text-align: right; }
.apf-db span.apf-db__rank { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 50%; background: #dbe7f3; color: var(--apf-navy); font-size: 12px; font-weight: 800; }
.apf-db__row--head + .apf-db__row .apf-db__rank { background: var(--apf-brand-green); color: #fff; }
.apf-db__device { min-width: 0; }
.apf-db__device a, .apf-db__device a:visited, .apf-db__device > span:first-child { max-width: none; }
.apf-db span.apf-db__min { text-align: right; }

/* Comparison widgets: first 5 links, the rest behind "Show all N" */
.widget_comparisons .widget_comparisons-wrap a[hidden],
.apf-w-cmps__list a[hidden] { display: none !important; }
.apf-cmp-more { align-self: flex-start; margin-top: 2px; padding: 6px 0; border: 0; background: none; color: var(--apf-blue-700); font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; }
.apf-cmp-more::after { content: " \25be "; }
.apf-cmp-more[aria-expanded="true"]::after { content: " \25b4 "; }
.apf-cmp-more:hover { text-decoration: underline; }

/* Quiz Q1: room size cards with a small floor plan that grows with the size */
.apf-quiz__options--sizes { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.apf-quiz__size > span { min-height: 168px; padding-top: 22px; }
.apf-quiz__room { display: flex; align-items: flex-end; justify-content: center; width: 64px; height: 52px; margin-bottom: 10px; }
.apf-quiz__room i { display: block; border: 2px solid var(--apf-blue-700); border-radius: 3px; background: repeating-linear-gradient(45deg, #eaf3fb 0 4px, #fff 4px 8px); transition: background-color .15s, border-color .15s; }
.apf-quiz__size--s .apf-quiz__room i { width: 24px; height: 20px; }
.apf-quiz__size--m .apf-quiz__room i { width: 36px; height: 28px; }
.apf-quiz__size--l .apf-quiz__room i { width: 50px; height: 38px; }
.apf-quiz__size--xl .apf-quiz__room i { width: 64px; height: 50px; }
.apf-quiz__option input:checked + span .apf-quiz__room i { border-color: var(--apf-blue-700); background: repeating-linear-gradient(45deg, #cfe3f5 0 4px, #eaf3fb 4px 8px); }
@media (max-width: 760px) { .apf-quiz__options--sizes { grid-template-columns: repeat(2, minmax(0, 1fr)); } .apf-quiz__size > span { min-height: 150px; } }

/* Quiz widget: the questions as numbered steps */
.apf-w-quiz ol.apf-w-quiz__steps { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin: 0 0 16px !important; padding: 0 !important; list-style: none; }
.apf-w-quiz .apf-w-quiz__steps li { display: flex; align-items: center; gap: 7px; margin: 0 !important; padding: 7px 8px !important; border-radius: 6px; background: rgba(255, 255, 255, .1); color: #fff; font-size: 13px; font-weight: 600; line-height: 1.2; list-style: none; }
.apf-w-quiz .apf-w-quiz__steps li::before { content: none !important; }
.apf-w-quiz__steps span { display: inline-flex; flex: none; align-items: center; justify-content: center; width: 20px; height: 20px; border-radius: 50%; background: var(--apf-brand-green); color: #fff; font-size: 11px; font-weight: 800; }

/* Mobile spacing audit */
/* Old fixed-disclaimer offset: the disclosure bar is in the page flow now. */
#page.single { margin-top: 24px !important; }
@media (max-width: 600px) { #page.single { margin-top: 18px !important; } }
@media (max-width: 760px) {
	.apf-tool-page__body { padding-bottom: 36px !important; }
	.apf-tool-links { margin-top: 36px !important; }
	.apf-calc-info, .apf-trdb__charts, .apf-trdb__about, .apf-deals.apf-deals--more, .apf-deals__how { margin-top: 32px !important; }
	.apf-calc-info { padding-top: 24px; }
	.apf-cmp-section, .apf-room__matches { margin-top: 30px !important; }
	.apf-archive { padding-bottom: 36px !important; }
	.apf-home .apf-hero { padding-bottom: 40px; }
	.postauthor.apf-author-box { margin-bottom: 24px !important; }
	#comments.apf-comments { margin-top: 28px !important; }
	/* About / Testing (own inline styles): lighter section spacing on phones */
	[class$="-wrapper"] > .apf-hero { padding-top: 36px !important; padding-bottom: 32px !important; }
	.apf-trust, .apf-earnings, .apf-web-tools, .apf-lab-strip, .apf-params-section, .apf-content-strip { padding-top: 36px !important; padding-bottom: 36px !important; }
	.apf-founder-section, .apf-contributors, .apf-methodology { padding-top: 36px !important; }
	.apf-stats-grid { margin-top: 32px !important; }
	.lead, .apf-contributors-header, .tools-header { margin-bottom: 28px !important; }
	.apf-method-intro, .apf-method-block { margin-bottom: 32px !important; }
	.apf-living-dashboard { margin-top: 28px !important; }
}
@media (max-width: 760px) { .apf-youtube-section { padding-top: 36px !important; } }

/* "Video Review" box in articles (.video-box-header): compact header, video flush, tidy footer */
.video-box-header { margin: 28px 0 32px !important; overflow: hidden; border: 1px solid var(--apf-line) !important; border-radius: 8px !important; background: var(--apf-white) !important; box-shadow: 0 4px 16px rgba(15, 42, 64, .08) !important; }
.video-box-header > h2, .video-box-header > h3,
.single_post .video-box-header > h2, .single_post .video-box-header > h3 { display: flex !important; align-items: center; gap: 10px; margin: 0 !important; padding: 12px 18px !important; border: 0 !important; background: var(--apf-navy) !important; color: #fff !important; font-size: 18px !important; font-weight: 800; letter-spacing: -.01em; line-height: 1.3; text-transform: none; }
.video-box-header > h2::before, .video-box-header > h3::before { content: "" !important; display: inline-block !important; flex: none; width: 26px !important; height: 18px !important; margin: 0 !important; padding: 0 !important; border: 0 !important; border-radius: 5px; background: #ff0033 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M9.5 7.5v9l7-4.5-7-4.5Z'/%3E%3C/svg%3E") center / 16px no-repeat; }
.video-box-header > h2::after, .video-box-header > h3::after { content: none !important; }
.video-box-header figure, .video-box-header .wp-block-embed, .video-box-header .wp-block-embed__wrapper, .video-box-header p { margin: 0 !important; padding: 0 !important; }
.video-box-header .flex-video,
.video-box-header .wp-block-embed__wrapper { position: relative; margin: 0 !important; overflow: hidden; aspect-ratio: 16 / 9; border-radius: 0 !important; background: #000; }
.video-box-header > iframe, .video-box-header p > iframe { display: block; width: 100% !important; height: auto !important; aspect-ratio: 16 / 9; border: 0; }
.video-box-header .wp-block-embed__wrapper iframe { position: absolute; inset: 0; width: 100% !important; height: 100% !important; border: 0; }
.video-box-header .wp-block-embed__wrapper::before { content: none !important; display: none !important; }
.video-box-header .video-box-cta { display: flex !important; align-items: center; justify-content: space-between !important; gap: 12px; padding: 12px 18px !important; border-top: 1px solid var(--apf-line-soft, #e8eef4); background: #f7fafc !important; }
.video-box-header .video-box-cta::before { content: "Watch every test on our channel"; color: var(--apf-muted); font-size: 14px; }
.video-box-header .video-box-cta a,
.video-box-header .video-box-cta a:visited { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 16px !important; border: 0 !important; border-radius: 6px !important; background: #ff0033 !important; color: #fff !important; font-size: 14.5px; font-weight: 800; text-decoration: none !important; white-space: nowrap; transition: background-color .15s !important; }
.video-box-header .video-box-cta a:hover { background: #d9002b !important; color: #fff !important; }
@media (max-width: 560px) {
	.video-box-header .video-box-cta { flex-direction: column; align-items: stretch; padding: 12px !important; }
	.video-box-header .video-box-cta::before { text-align: center; }
	.video-box-header .video-box-cta a { justify-content: center; }
	.video-box-header > h2, .video-box-header > h3 { font-size: 17px !important; padding: 11px 14px !important; }
}
.video-box-header > h2::before, .video-box-header > h3::before { position: static !important; top: auto !important; left: auto !important; transform: none !important; }

/* Search window: a clear primary button (blue), darker on hover, text always white */
.apf-search .apf-search__all,
.apf-search .apf-search__all:visited { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 20px; border: 0; border-radius: var(--apf-radius); background: var(--apf-blue-700); color: #fff !important; font-size: 15.5px; font-weight: 800; text-decoration: none !important; box-shadow: 0 4px 12px rgba(31, 111, 168, .28); transition: background-color .15s, box-shadow .15s, transform .15s; }
.apf-search .apf-search__all:hover,
.apf-search .apf-search__all:focus-visible { background: var(--apf-navy); color: #fff !important; text-decoration: none !important; box-shadow: 0 6px 16px rgba(15, 42, 64, .3); transform: translateY(-1px); }
.apf-search .apf-search__all .apf-icon { transition: transform .15s; }
.apf-search .apf-search__all:hover .apf-icon { transform: translateX(3px); }
.apf-search__all [data-apf-search-all-label] { overflow: hidden; max-width: 46ch; text-overflow: ellipsis; white-space: nowrap; }
/* While the next results load, the current ones stay and fade a little */
/* While the server checks the results: results stay fully visible, a thin line runs under the field. */
.apf-search__field { position: relative; overflow: hidden; }
.apf-search__field::after { content: ""; position: absolute; left: 0; bottom: 0; width: 30%; height: 2px; background: var(--apf-brand, #3498db); opacity: 0; transform: translateX(-100%); pointer-events: none; }
.apf-search.is-loading .apf-search__field::after { opacity: 1; animation: apf-search-line 1s ease-in-out infinite; }
@keyframes apf-search-line { from { transform: translateX(-100%); } to { transform: translateX(340%); } }
@media (prefers-reduced-motion: reduce) { .apf-search.is-loading .apf-search__field::after { width: 100%; animation: none; transform: none; opacity: .6; } }

/* Search results page: same form and tabs as the search window */
.apf-search-page__form { align-items: stretch; max-width: 720px; margin: 0 0 16px; box-shadow: 0 1px 2px rgba(15, 42, 64, .05); transition: border-color .15s, box-shadow .15s; }
.apf-search-page__form:focus-within { border-color: var(--apf-blue-700); box-shadow: 0 0 0 3px rgba(31, 111, 168, .15); }
.apf-search-page__form .apf-hero__search-field { display: flex; flex: 1; align-items: center; gap: 10px; min-width: 0; padding: 0 14px; }
.apf-search-page__form .apf-hero__search-field input { height: 52px; font-size: 16.5px; }
.apf-search-page__form input[type="search"]::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; }
.apf-search-page__form .apf-button { min-height: 52px; padding: 0 24px; font-size: 15.5px; }
.apf-search-page__tabs { gap: 8px; margin: 0 0 18px; }
.apf-search-page__tabs .apf-search__tab,
.apf-search-page__tabs .apf-search__tab:visited { display: inline-flex; align-items: center; justify-content: center; min-height: 38px; padding: 0 16px; border-radius: var(--apf-radius); color: var(--apf-navy); font-size: 14.5px; font-weight: 700; line-height: 1; text-decoration: none; transition: border-color .15s, background-color .15s, color .15s; }
.apf-search-page__tabs .apf-search__tab:hover { border-color: var(--apf-blue-700); color: var(--apf-blue-700); }
.apf-search-page__tabs .apf-search__tab[aria-current="page"],
.apf-search-page__tabs .apf-search__tab[aria-current="page"]:hover { border-color: var(--apf-navy); background: var(--apf-navy); color: #fff; }
@media (max-width: 560px) {
	.apf-search-page__tabs { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; }
	.apf-search-page__tabs .apf-search__tab { flex: none; }
	.apf-search-page__form .apf-button { padding: 0 16px; }
}

/* "Price as of" info in the plugins (.prices-updated): same look as the deals page tooltip */
.prices-updated,
.prices-updated.prices-btns,
.prices-updated.prices-tables,
.prices-updated.deal-box-in-content-p { display: inline-flex !important; align-items: center; gap: 6px; padding: 4px 8px !important; border-radius: 4px; background: transparent !important; color: var(--apf-muted); font-family: var(--apf-font); font-size: 12.5px !important; line-height: 1.3; cursor: pointer; transition: background-color .15s, color .15s; -webkit-tap-highlight-color: transparent; }
.prices-updated > i { font-style: italic; }
.prices-updated:hover,
.prices-updated:has(.prices-updated-info-popup.show-mobile) { background: #eaf3fb !important; color: var(--apf-blue-700); }
.prices-updated > span { width: 15px !important; height: 15px !important; margin: 0 !important; padding: 0 !important; border-radius: 0; }
.prices-updated > span i,
.prices-updated > span i::before { color: currentColor !important; font-size: 14px; }
.prices-updated .prices-updated-info-popup,
.prices-updated.prices-btns .prices-updated-info-popup,
.prices-updated.prices-table .prices-updated-info-popup,
.prices-updated.prices-tables .prices-updated-info-popup,
.prices-updated.deal-box-in-content-p .prices-updated-info-popup { top: auto !important; right: auto !important; bottom: calc(100% + 10px) !important; left: 50% !important; z-index: 40; width: min(280px, 86vw); min-width: 0 !important; max-width: none !important; margin: 0 !important; padding: 12px 14px !important; border: 0 !important; border-radius: 6px !important; background: var(--apf-navy) !important; box-shadow: 0 10px 24px rgba(15, 42, 64, .25) !important; color: #fff !important; font-family: var(--apf-font); font-size: 13px !important; font-style: normal; font-weight: 400; line-height: 1.55; text-align: left; white-space: normal; cursor: default; transform: translateX(-50%) !important; }
.prices-updated .prices-updated-info-popup::after { content: ""; position: absolute; top: 100%; left: 50%; border: 7px solid transparent; border-top-color: var(--apf-navy); transform: translateX(-50%); }
/* Boxes where the line sits at the right edge: open towards the left */
.prices-updated.deal-box-in-content-p .prices-updated-info-popup { right: 0 !important; left: auto !important; transform: none !important; }
.prices-updated.deal-box-in-content-p .prices-updated-info-popup::after { right: 14px; left: auto; transform: none; }
/* Tables: the line sits at the left edge, open towards the right */
.prices-updated.prices-tables .prices-updated-info-popup { left: 0 !important; transform: none !important; }
.prices-updated.prices-tables .prices-updated-info-popup::after { left: 18px; transform: none; }
@media (max-width: 560px) {
	.prices-updated.prices-btns .prices-updated-info-popup { left: 50% !important; }
}

/* Price info line outside the deal cards (Amazon buttons, compare, quiz) */
.apf-amazon__timewrap { margin-top: 6px; }
.apf-cmp-head__time { display: block; min-height: 26px; margin-top: 6px; }
.apf-cmp-head__time .apf-deal__timewrap { margin: 0; }
.apf-quiz__timewrap { justify-content: flex-start; margin-top: 8px; }
.apf-quiz__timewrap .apf-deal__tip { left: 0; transform: none; }
.apf-quiz__timewrap .apf-deal__tip::after { left: 24px; }

/* Quiz: more room between the progress bar and the question */
.apf-quiz__progress { padding-bottom: 6px !important; }
.apf-quiz__step { padding-top: 30px; }
.apf-quiz__step > legend.apf-quiz__q { float: left; width: 100%; margin-bottom: 4px; }
.apf-quiz__step > legend.apf-quiz__q + * { clear: both; }
.apf-quiz__step .apf-quiz__help { padding-top: 6px; }
.apf-quiz__step .apf-quiz__options { clear: both; margin-top: 22px; }
@media (max-width: 560px) { .apf-quiz__step { padding-top: 22px; } }
/* TRDB: room between the pager and the notes */
.apf-trdb__footer { margin-top: 14px; margin-bottom: 4px; }
.apf-trdb .apf-trdb__note, .apf-trdb__note { margin-top: 18px !important; }
.apf-trdb__note + .apf-trdb__note { margin-top: 8px !important; }
.apf-trdb__conditions { margin-top: 14px !important; }
/* Compare bars: full device name above its bar */
.apf-cmp-bar__row { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "name name" "track value"; gap: 3px 12px; padding: 5px 0; }
.apf-cmp-bar__row .apf-cmp-bar__name { grid-area: name; color: var(--apf-ink); font-size: 13px; font-weight: 600; white-space: normal; overflow: visible; }
.apf-cmp-bar__row .apf-cmp-bar__track { grid-area: track; }
.apf-cmp-bar__row .apf-cmp-bar__value { grid-area: value; min-width: 56px; }

/* =====================================================================
 * Compare page in the article look (same boxes, colors and tables as the
 * charts and tables in reviews, buying guides and comparisons).
 * ===================================================================== */
/* Device colors: the plugin chart colors first (navy, green), then blue and orange */
.apf-compare .apf-cmp-c0 { --apf-c: #1a5882; }
.apf-compare .apf-cmp-c1 { --apf-c: #57a65c; }
.apf-compare .apf-cmp-c2 { --apf-c: #3498db; }
.apf-compare .apf-cmp-c3 { --apf-c: #f39c12; }

/* Chart and result boxes = .chart-box: navy title bar, light blue description, white body */
.apf-compare .apf-cmp-lab { gap: 20px; }
.apf-compare .apf-cmp-lab__card { padding: 0; overflow: hidden; border: 1px solid #ededed; border-radius: 5px; background: #fff; box-shadow: 0 0 10px 0 rgba(0, 0, 0, .08); }
.apf-compare .apf-cmp-lab__card > h3,
.apf-compare .apf-cmp-lab__head { margin: 0 !important; padding: 10px 20px !important; background: #1a5882; }
.apf-compare .apf-cmp-lab__card > h3,
.apf-compare .apf-cmp-lab__head h3 { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; color: #fff !important; font-size: 16px; font-weight: 700; }
.apf-compare .apf-cmp-lab__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; }
.apf-compare .apf-cmp-lab__head h3 { margin: 0 !important; padding: 0 !important; background: none; }
/* The hint becomes the light blue description line under the bar */
.apf-compare .apf-cmp-lab__card .apf-cmp-bar__hint { margin-left: auto; color: rgba(255, 255, 255, .8); font-size: 12.5px; font-weight: 500; }
.apf-compare .apf-cmp-lab__head .apf-cmp-bar__hint { margin-left: 0; }
.apf-compare .apf-cmp-lab__card > :not(h3):not(.apf-cmp-lab__head):not(figcaption) { margin-left: 20px; margin-right: 20px; }
.apf-compare .apf-cmp-lab__card > h3 + *,
.apf-compare .apf-cmp-lab__head + * { margin-top: 18px; }
.apf-compare .apf-cmp-lab__card > :last-child:not(figcaption) { margin-bottom: 18px; }
.apf-compare .apf-cmp-lab__card figcaption { margin: 8px 0 0; padding: 10px 20px; background: rgba(52, 152, 219, .12); color: var(--apf-text); font-size: 13.5px; text-align: left; }
/* Toggle inside the navy bar */
.apf-compare .apf-cmp-toggle { border-color: rgba(255, 255, 255, .35); background: transparent; }
.apf-compare .apf-cmp-toggle button { padding: 6px 12px; background: transparent; color: #fff; }
.apf-compare .apf-cmp-toggle button + button { border-left-color: rgba(255, 255, 255, .35); }
.apf-compare .apf-cmp-toggle button[aria-pressed="true"] { background: #fff; color: #1a5882; }
.apf-compare .apf-cmp-toggle button:disabled { color: rgba(255, 255, 255, .45); }

/* Bars like the plugin bar charts: solid device color, value inside the bar */
.apf-compare .apf-cmp-bar__row { grid-template-columns: minmax(0, 1fr); grid-template-areas: "name" "track"; gap: 4px; padding: 6px 0; }
.apf-compare .apf-cmp-bar__row .apf-cmp-bar__name { color: #282828; font-size: 13.5px; font-weight: 700; }
.apf-compare .apf-cmp-bar__track { position: relative; height: 26px; border-radius: 3px; background: #f3f5f7; overflow: visible; }
.apf-compare .apf-cmp-bar__track span { min-width: 4px; border-radius: 3px; background: var(--apf-c); opacity: 1; }
.apf-compare .apf-cmp-bar__row:not(.is-winner) .apf-cmp-bar__track span { opacity: .78; }
.apf-compare .apf-cmp-bar__row .apf-cmp-bar__value { position: absolute; grid-area: track; justify-self: end; align-self: center; min-width: 0; margin-right: 8px; color: #282828; font-size: 13px; }
.apf-compare .apf-cmp-bar__row.is-winner .apf-cmp-bar__value { color: #282828; }
.apf-compare .apf-cmp-bar__value .apf-icon { color: #57a65c; }
.apf-compare .apf-cmp-rooms__room { color: #1a5882; }
.apf-compare .apf-cmp-legend li { padding: 4px 10px; border: 1px solid #ededed; border-radius: 4px; background: #fff; }

/* Per-speed tables and the spec table = .table-modern: navy header, grey bold first column */
.apf-compare .apf-cmp-speed { padding: 0; overflow: hidden; border: 1px solid #ededed; border-top: 0; border-radius: 5px; box-shadow: 0 0 10px 0 rgba(0, 0, 0, .08); }
.apf-compare .apf-cmp-speed__name { margin: 0 !important; padding: 10px 16px; border-top: 4px solid var(--apf-c); background: #fff; color: #282828; font-size: 15px; }
.apf-compare .apf-cmp-speed > :not(.apf-cmp-speed__name):not(table) { margin-left: 16px; margin-right: 16px; }
.apf-compare .apf-cmp-speed > :last-child { margin-bottom: 14px; }
.apf-compare .apf-cmp-speed__table { width: 100%; margin: 0 !important; border-collapse: collapse; }
.apf-compare .apf-cmp-speed__table th,
.apf-compare .apf-cmp-table th,
.apf-compare .apf-cmp-table td,
.apf-compare .apf-cmp-speed__table td { border: 1px solid rgba(0, 0, 0, .05); }
.apf-compare .apf-cmp-speed__table thead th { padding: 8px 12px; background: #1a5882 !important; color: #fff; font-size: 12px; letter-spacing: .03em; }
.apf-compare .apf-cmp-speed__table tbody td:first-child { background: rgba(0, 0, 0, .03); color: #282828; font-weight: 700; }
.apf-compare .apf-cmp-speed__table tbody tr:hover td { background-color: rgba(52, 152, 219, .12); }

.apf-compare .apf-cmp-table--specs { border: 0 !important; border-radius: 4px; overflow: hidden; box-shadow: 0 0 10px 0 rgba(0, 0, 0, .08); }
.apf-compare .apf-cmp-table--specs thead th { padding: 12px 14px; background: #1a5882 !important; color: #fff !important; font-size: 15px; font-weight: 700; text-align: center; }
.apf-compare .apf-cmp-table--specs thead th[class*="apf-cmp-c"] { box-shadow: inset 0 -4px 0 var(--apf-c); }
.apf-compare .apf-cmp-table--specs thead th:first-child { background: #1a5882 !important; }
.apf-compare .apf-cmp-table--specs tbody th[scope="row"] { background: rgba(0, 0, 0, .03) !important; color: #282828; font-weight: 700; text-align: left; }
.apf-compare .apf-cmp-table--specs tbody td { text-align: center; }
.apf-compare .apf-cmp-table--specs tbody tr:hover td,
.apf-compare .apf-cmp-table--specs tbody tr:hover th[scope="row"] { background-color: rgba(52, 152, 219, .12) !important; }
.apf-compare .apf-cmp-table--specs .apf-cmp-table__group th { padding: 8px 14px; background: rgba(52, 152, 219, .12) !important; color: #1a5882; font-size: 12.5px; letter-spacing: .06em; text-align: left; text-transform: uppercase; }
.apf-compare .apf-cmp-table--specs td.is-best { color: #2f6f1a; font-weight: 800; }
@media (max-width: 760px) {
	.apf-compare .apf-cmp-lab__card > h3, .apf-compare .apf-cmp-lab__head { padding: 10px 14px !important; }
	.apf-compare .apf-cmp-lab__card > :not(h3):not(.apf-cmp-lab__head):not(figcaption) { margin-left: 14px; margin-right: 14px; }
	.apf-compare .apf-cmp-lab__card figcaption { padding: 10px 14px; }
}
.apf-compare .apf-cmp-bar__row .apf-cmp-bar__value { padding: 1px 6px; border-radius: 3px; background: rgba(255, 255, 255, .92); }

/* TRDB "What these results mean": methodology and citation in the article box style */
.apf-trdb__about { align-items: start; }
.apf-trdb__about .apf-accordion { margin-top: 20px; padding: 0 !important; overflow: hidden; border: 1px solid #ededed !important; border-radius: 5px; background: #fff; box-shadow: 0 0 10px 0 rgba(0, 0, 0, .08); }
.apf-trdb__about .apf-accordion > summary { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 11px 20px !important; background: #1a5882; color: #fff; font-size: 16px; font-weight: 700; list-style: none; cursor: pointer; }
.apf-trdb__about .apf-accordion > summary::-webkit-details-marker { display: none; }
.apf-trdb__about .apf-accordion > summary::marker { content: ""; }
.apf-trdb__about .apf-accordion > summary::after { content: ""; flex: none; width: 9px; height: 9px; border-right: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(45deg) translateY(-3px); transition: transform .2s; }
.apf-trdb__about .apf-accordion[open] > summary::after { transform: rotate(-135deg) translateY(-2px); }
.apf-trdb__about .apf-accordion > summary::before { content: none !important; }
.apf-trdb__units { margin: 0 !important; padding: 0 !important; }
.apf-trdb__units > div { display: grid; grid-template-columns: minmax(150px, 210px) 1fr; border-bottom: 1px solid rgba(0, 0, 0, .05); }
.apf-trdb__units > div:hover { background: rgba(52, 152, 219, .12); }
.apf-trdb__units dt { margin: 0; padding: 10px 14px 10px 20px; background: rgba(0, 0, 0, .03); color: #282828; font-size: 14.5px; font-weight: 700; }
.apf-trdb__units dd { margin: 0; padding: 10px 20px 10px 14px; color: var(--apf-text); font-size: 14.5px; line-height: 1.55; }
.apf-trdb__method-link { margin: 0 !important; padding: 12px 20px; background: rgba(52, 152, 219, .12); }
.apf-trdb__method-link a, .apf-trdb__method-link a:visited { display: inline-flex; align-items: center; gap: 6px; color: #1a5882; font-weight: 700; text-decoration: none; }
.apf-trdb__method-link a:hover { text-decoration: underline; }
.apf-trdb__method-link .apf-icon { width: 15px; height: 15px; }

.apf-cite { padding: 0 !important; overflow: hidden; border: 1px solid #ededed !important; border-radius: 5px !important; background: #fff !important; box-shadow: 0 0 10px 0 rgba(0, 0, 0, .08); }
.apf-cite .apf-cite__title { margin: 0 !important; padding: 11px 20px; background: #1a5882; color: #fff !important; font-size: 16px; font-weight: 700; }
.apf-cite .apf-cite__text { margin: 0 !important; padding: 14px 20px; border-bottom: 1px solid rgba(0, 0, 0, .05); background: rgba(52, 152, 219, .12); color: var(--apf-text); font-size: 14px; font-style: normal; line-height: 1.6; overflow-wrap: anywhere; }
.apf-cite__actions { padding: 14px 20px; }
.apf-cite__actions .apf-button { min-height: 42px; }
@media (max-width: 560px) {
	.apf-trdb__units > div { grid-template-columns: 1fr; }
	.apf-trdb__units dt { padding: 10px 14px 2px; background: none; }
	.apf-trdb__units dd { padding: 0 14px 10px; }
	.apf-trdb__about .apf-accordion > summary, .apf-cite .apf-cite__title { padding: 11px 14px !important; }
}
.apf-trdb__about .apf-accordion > :not(summary) { margin: 0 !important; padding-left: 0 !important; padding-right: 0 !important; }
.apf-trdb__about .apf-accordion > .apf-trdb__method-link { padding: 12px 20px !important; }
.apf-trdb__units > div { grid-template-columns: 200px minmax(0, 1fr) !important; }
.apf-trdb__units dt, .apf-trdb__units dd { float: none !important; width: auto !important; max-width: none !important; margin: 0 !important; text-align: left !important; }
@media (max-width: 560px) { .apf-trdb__units > div { grid-template-columns: 1fr !important; } }
/* Cards whose title link covers the whole card: the "Compare devices ->" text is part of that link */
span.apf-tool__link { pointer-events: none; }
.apf-tool:hover span.apf-tool__link { text-decoration: underline; }

/* Plugin price lines: draw the info icon ourselves (the old icon font glyph is not shown) */
.prices-updated > span { position: relative; display: inline-block !important; flex: none; width: 15px !important; height: 15px !important; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 11v5M12 8h.01'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 11v5M12 8h.01'/%3E%3C/svg%3E") center / contain no-repeat; }
.prices-updated > span > i { display: none !important; }

/* Deal box at the top of reviews: price line in the flow (not on top of the text), info opens downwards */
.deal-box-in-content { flex-wrap: wrap; align-items: center; gap: 10px 14px; padding: 14px 16px !important; border: 1px solid rgba(145, 217, 45, .55); border-radius: 6px !important; }
.deal-box-in-content .deal-box-in-content-wrap { flex: 1 1 320px; flex-wrap: wrap; align-items: center; gap: 8px 0; min-width: 0; }
.deal-box-in-content .deal-box-in-content-wrap img { width: 56px; height: 42px; margin: 0 14px 0 0 !important; object-fit: cover; }
.deal-box-in-content .deal-box-in-content-wrap p { flex: 1 1 200px; min-width: 0; line-height: 1.45; }
.deal-box-in-content .deal-box-in-content-wrap p a { font-weight: 600 !important; }
.prices-updated.deal-box-in-content-p { position: relative !important; right: auto !important; bottom: auto !important; margin: 0 0 0 auto !important; }
.prices-updated.deal-box-in-content-p:hover,
.prices-updated.deal-box-in-content-p:has(.prices-updated-info-popup.show-mobile) { background: rgba(255, 255, 255, .75) !important; }
.prices-updated.deal-box-in-content-p .prices-updated-info-popup { top: calc(100% + 10px) !important; bottom: auto !important; right: 0 !important; left: auto !important; z-index: 60; }
.prices-updated.deal-box-in-content-p .prices-updated-info-popup::after { top: auto; bottom: 100%; border-top-color: transparent; border-bottom-color: var(--apf-navy); }
@media (max-width: 560px) {
	.deal-box-in-content { padding: 12px !important; }
	.deal-box-in-content .deal-box-in-content-wrap { flex-basis: 100%; }
	.prices-updated.deal-box-in-content-p { margin: 0 !important; }
	.prices-updated.deal-box-in-content-p .prices-updated-info-popup { right: auto !important; left: 0 !important; }
	.prices-updated.deal-box-in-content-p .prices-updated-info-popup::after { right: auto; left: 18px; }
}
.prices-updated > span { color: inherit !important; }

/* Quiz v3: full-width buttons, price date on the alternatives, facts on one line, uncropped photos */
.apf-quiz__alt-body > .apf-amazon.apf-quiz__alt-buy { align-self: stretch; box-sizing: border-box; width: 100% !important; max-width: none; }
.apf-quiz__alt-time { justify-content: center; margin-top: -2px; }
.apf-quiz__alt-time .apf-deal__tip { left: 50%; transform: translateX(-50%); }
.apf-quiz__facts li { flex-direction: column !important; justify-content: flex-start; }
.apf-quiz__facts span { order: -1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.apf-quiz__winner-media { aspect-ratio: auto !important; }
.apf-quiz__winner-media img { height: auto !important; object-fit: contain; }
.apf-quiz__alt-media { aspect-ratio: auto !important; }
.apf-quiz__alt-media img { height: auto !important; object-fit: contain; }
/* Author box -> comments: one even gap, empty blocks in between take no space */
.postauthor.apf-author-box { margin-bottom: 0 !important; }
#comments.apf-comments { margin-top: 40px !important; }
.postauthor.apf-author-box ~ div:empty, .postauthor.apf-author-box ~ p:empty, article.article > div:empty { display: none !important; }
@media (max-width: 760px) { #comments.apf-comments { margin-top: 28px !important; } }

/* Compare: specification table = the review table (plugin classes), sized for 2-4 devices */
.apf-compare .apf-cmp-specbox { margin-top: 18px; }
.apf-compare .apf-cmp-specbox > h3 { font-size: 20px; font-weight: 800; }
.apf-compare .apf-cmp-ptable { width: 100%; min-width: 0; margin: 0 !important; table-layout: fixed; }
.apf-compare .apf-cmp-ptable thead th { padding: 12px 10px !important; color: #fff !important; font-size: 15px; font-weight: 700; text-align: center; vertical-align: middle; }
.apf-compare .apf-cmp-ptable thead th.apf-cmp-c0, .apf-compare .apf-cmp-ptable thead th.apf-cmp-c1,
.apf-compare .apf-cmp-ptable thead th.apf-cmp-c2, .apf-compare .apf-cmp-ptable thead th.apf-cmp-c3 { box-shadow: inset 0 -4px 0 var(--apf-c); }
.apf-compare .apf-cmp-ptable tbody tr td { min-width: 0 !important; max-width: none !important; padding: 12px 14px; vertical-align: middle; overflow-wrap: anywhere; }
.apf-compare .apf-cmp-ptable tbody tr td:first-child { width: 26%; text-align: left; }
.apf-compare .apf-cmp-ptable tbody tr td:not(:first-child) { text-align: center; }
.apf-compare .apf-cmp-ptable td .review-breakdown-footer span { font-size: 14px; }
.apf-compare .apf-cmp-ptable td.is-best .review-breakdown-footer span b { color: #2f6f1a; }
.apf-compare .apf-cmp-ptable td.best-suited-for, .apf-compare .apf-cmp-ptable td.other-features { text-align: center !important; }
.apf-compare .apf-cmp-ptable .best-for-item { cursor: default; }
.apf-compare .apf-cmp-ptable__buy .apf-amazon { width: 100%; }
@media (max-width: 760px) {
	.apf-compare .apf-cmp-specbox .table-modern-wrap { overflow-x: auto; }
	.apf-compare .apf-cmp-ptable { min-width: calc(150px + var(--n, 2) * 170px); table-layout: auto; }
	.apf-compare .apf-cmp-ptable.apf-cmp-cols-2 { --n: 2; }
	.apf-compare .apf-cmp-ptable.apf-cmp-cols-3 { --n: 3; }
	.apf-compare .apf-cmp-ptable.apf-cmp-cols-4 { --n: 4; }
	.apf-compare .apf-cmp-ptable tbody tr td:first-child { position: sticky; left: 0; z-index: 1; width: 140px; background: #e8f1f9 !important; box-shadow: 1px 0 0 rgba(0, 0, 0, .06); }
}

/* Compare: PM1 chart like the plugin chart in the reviews */
.apf-compare .apf-cmp-lab__card > .apf-cmp-headline { margin: 0 !important; padding: 12px 20px; background: rgba(52, 152, 219, .12); color: #282828; font-size: 15px; line-height: 1.55; }
.apf-compare .apf-cmp-lab__head + .apf-cmp-headline { margin-top: 0 !important; }
.apf-cmp-pills { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px !important; }
.apf-cmp-pill { display: inline-flex; align-items: center; gap: 8px; min-height: 38px; padding: 0 16px; border: 1px solid #dfe3e8; border-radius: 99px; background: #fff; color: #282828; font-family: var(--apf-font); font-size: 14.5px; font-weight: 500; cursor: pointer; transition: border-color .15s, opacity .15s; }
.apf-cmp-pill::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--apf-c); }
.apf-cmp-pill:hover { border-color: #b9c4cf; }
.apf-cmp-pill[aria-pressed="false"] { opacity: .45; text-decoration: line-through; }
.apf-cmp-pm1sum { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 18px; margin-top: 10px !important; padding-top: 12px; border-top: 1px solid #eef1f4; font-size: 15px; }
.apf-cmp-pm1sum:empty { display: none; }
.apf-cmp-pm1sum__label { color: #7d8790; font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.apf-cmp-pm1sum__item { display: inline-flex; align-items: baseline; gap: 6px; color: #3d4750; }
.apf-cmp-pm1sum__item::before { content: ""; align-self: center; width: 9px; height: 9px; border-radius: 50%; background: var(--apf-c); }
.apf-cmp-pm1sum__item b { color: #282828; font-weight: 800; }
.apf-cmp-pm1sum__item.is-best b { color: #2f6f1a; }
.apf-compare .apf-cmp-lab__card figcaption.apf-cmp-source { display: flex; align-items: flex-start; gap: 8px; margin: 12px 0 0 !important; padding: 0 20px 16px !important; background: none !important; color: #7d8790; font-size: 13.5px; }
.apf-cmp-source .apf-icon { flex: none; width: 14px; height: 14px; margin-top: 3px; }
.apf-cmp-source b { color: #3d4750; }

/* Lab bars like the plugin bar charts: thick bar in the device color, value inside its end */
.apf-compare .apf-cmp-bar__track { height: 34px; border-radius: 4px; background: #f3f5f7; }
.apf-compare .apf-cmp-bar__track > span { position: relative; display: flex; align-items: center; justify-content: flex-end; border-radius: 4px; }
.apf-compare .apf-cmp-bar__row.is-inside .apf-cmp-bar__value { position: static; margin: 0 10px 0 0; padding: 0; background: none; color: #fff !important; font-size: 14px; font-weight: 800; }
.apf-compare .apf-cmp-bar__row.is-inside .apf-cmp-bar__value .apf-icon { color: #fff; }
.apf-compare .apf-cmp-bar__row.is-outside .apf-cmp-bar__value { position: absolute; top: 50%; right: auto; margin: 0; padding: 0; background: none; color: #282828; transform: translateY(-50%); }
.apf-compare .apf-cmp-bar__row.is-inside .apf-cmp-bar__track,
.apf-compare .apf-cmp-bar__row.is-outside .apf-cmp-bar__track { grid-column: 1 / -1; }
@media (max-width: 760px) {
	.apf-compare .apf-cmp-lab__card > .apf-cmp-headline { padding: 10px 14px; font-size: 14px; }
	.apf-compare .apf-cmp-lab__card figcaption.apf-cmp-source { padding: 0 14px 14px !important; }
	.apf-cmp-pill { min-height: 34px; padding: 0 12px; font-size: 13.5px; }
}
.apf-compare .apf-cmp-specbox .table-modern-wrap thead { display: table-header-group !important; }
.apf-compare .apf-cmp-specbox > h2 { margin: 0 !important; padding: 12px 20px !important; border: 0 !important; color: #fff !important; font-size: 22px; font-weight: 800; letter-spacing: -.01em; text-transform: none !important; }
.apf-compare .apf-cmp-specbox > h2::before, .apf-compare .apf-cmp-specbox > h2::after { content: none !important; }
.apf-compare .apf-cmp-bar__row.is-inside .apf-cmp-bar__value { display: inline-flex; align-items: center; gap: 4px; line-height: 1; }
.apf-compare .apf-cmp-specbox { margin-top: 0; }
@media (max-width: 760px) {
	.apf-compare .apf-cmp-specbox .table-modern-wrap { overflow-x: auto !important; -webkit-overflow-scrolling: touch; }
	.apf-compare table.apf-cmp-ptable { table-layout: fixed !important; }
	.apf-compare table.apf-cmp-ptable.apf-cmp-cols-2 { min-width: 500px !important; }
	.apf-compare table.apf-cmp-ptable.apf-cmp-cols-3 { min-width: 660px !important; }
	.apf-compare table.apf-cmp-ptable.apf-cmp-cols-4 { min-width: 820px !important; }
	.apf-compare .apf-cmp-ptable tbody tr td { overflow-wrap: normal; font-size: 14px; }
	.apf-compare .apf-cmp-ptable tbody tr td:first-child { width: 130px; }
	.apf-compare .apf-cmp-ptable thead th:first-child { position: sticky; left: 0; z-index: 2; width: 130px; }
	.apf-compare .apf-cmp-ptable .apf-amazon { min-height: 40px; padding: 0 8px; font-size: 13px; }
}
@media (max-width: 760px) { .apf-compare .apf-cmp-specbox::after { content: "Scroll or swipe left/right to see every device."; display: block; padding: 10px 14px; background: #fff; color: #7d8790; font-size: 13px; font-style: italic; } }

/* =====================================================================
 * Compare v5: test results, charts and specifications - minimal cards.
 * ===================================================================== */
.apf-x { --x-line: #e6ebf0; --x-soft: #f6f8fa; --x-muted: #6b7785; --x-ink: #16212c; }
.apf-x__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 8px 32px; margin-bottom: 18px; }
.apf-x__head .apf-section__title { margin-bottom: 0 !important; }
.apf-x__lead { max-width: 460px; margin: 0 !important; color: var(--x-muted); font-size: 14.5px; line-height: 1.55; }
.apf-x-card { margin: 0; overflow: hidden; border: 1px solid var(--x-line); border-radius: 12px; background: #fff; box-shadow: 0 1px 2px rgba(16, 24, 40, .04); }
.apf-x-card__head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 12px 24px; padding: 22px 24px 0; }
.apf-x .apf-x-card__title { margin: 0 0 4px !important; padding: 0 !important; border: 0 !important; color: var(--x-ink); font-size: 20px; font-weight: 800; letter-spacing: -.015em; line-height: 1.25; text-transform: none; }
.apf-x .apf-x-card__title::before, .apf-x .apf-x-card__title::after { content: none !important; }
.apf-x-card__sub { max-width: 640px; margin: 0 !important; color: var(--x-muted); font-size: 14px; line-height: 1.5; }
.apf-x-source { margin: 0 !important; padding: 12px 24px 18px; color: var(--x-muted); font-size: 12.5px; }
.apf-x-source b { color: #3d4750; }

/* Segmented control */
.apf-x-seg { display: inline-flex; flex: none; padding: 3px; border-radius: 9px; background: #eef2f6; }
.apf-x-seg button { min-height: 32px; padding: 0 14px; border: 0; border-radius: 7px; background: transparent; color: #4a5868; font-family: var(--apf-font); font-size: 13.5px; font-weight: 700; cursor: pointer; transition: background-color .15s, color .15s, box-shadow .15s; }
.apf-x-seg button[aria-pressed="true"] { background: #fff; color: var(--x-ink); box-shadow: 0 1px 3px rgba(16, 24, 40, .12); }
.apf-x-seg button:disabled { opacity: .4; cursor: default; }
.apf-x-seg button:focus-visible { outline: 2px solid var(--apf-brand); outline-offset: 1px; }

/* Device name with its color dot */
.apf-x-dev { display: inline-flex; align-items: center; gap: 8px; color: var(--x-ink); font-size: 14px; font-weight: 700; line-height: 1.3; }
.apf-x-dev i, .apf-x-speed__name i { flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--apf-c); }

/* Results table (grid): label column + one column per device */
.apf-res { --cols: 2; }
.apf-res--n3 { --cols: 3; }
.apf-res--n4 { --cols: 4; }
.apf-res__row { display: grid; grid-template-columns: minmax(180px, 1.15fr) repeat(var(--cols), minmax(0, 1fr)); align-items: center; gap: 0 20px; padding: 14px 24px; border-top: 1px solid var(--x-line); }
.apf-res__row--head { position: sticky; top: 0; z-index: 1; padding-top: 16px; padding-bottom: 16px; border-top: 0; background: #fff; }
.apf-res__row--head .apf-res__label { color: var(--x-muted); font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.apf-res__group { padding: 9px 24px; border-top: 1px solid var(--x-line); background: var(--x-soft); color: #4a5868; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.apf-res__label { display: flex; flex-direction: column; gap: 2px; color: var(--x-ink); font-size: 14.5px; font-weight: 600; line-height: 1.35; }
.apf-res__label small { color: var(--x-muted); font-size: 12px; font-weight: 500; }
.apf-res__cell { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.apf-res__dev { display: none; }
.apf-res__val { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px; color: var(--x-ink); font-size: 16px; font-weight: 700; font-variant-numeric: tabular-nums; }
.apf-res__val em { padding: 2px 7px; border-radius: 99px; background: #e9f6df; color: #2f6f1a; font-size: 11px; font-style: normal; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.apf-res__cell.is-empty .apf-res__val { color: #a3adb8; font-weight: 500; }
.apf-res__bar { display: block; height: 6px; overflow: hidden; border-radius: 99px; background: #eef2f6; }
.apf-res__bar span { display: block; height: 100%; border-radius: inherit; background: var(--apf-c); opacity: .45; }
.apf-res__cell.is-best .apf-res__bar span { opacity: 1; }
.apf-res__row:hover:not(.apf-res__row--head) { background: #fbfcfd; }

/* Charts */
.apf-x-chart .apf-cmp-pills { margin: 16px 24px 0 !important; }
.apf-x-chart .apf-cmp-pill { min-height: 32px; padding: 0 12px; font-size: 13px; }
.apf-x-canvas { position: relative; height: 340px; margin: 12px 16px 0; }
.apf-x-canvas--tall { height: 400px; }
.apf-x-chart .apf-cmp-pm1sum { margin: 6px 24px 0 !important; padding: 12px 0 0; }

/* Values at every fan speed (collapsed) */
.apf-x-details { margin-top: 10px; border-top: 1px solid var(--x-line); }
.apf-x-details > summary { display: flex; align-items: center; justify-content: space-between; padding: 14px 24px; color: var(--x-ink); font-size: 14.5px; font-weight: 700; list-style: none; cursor: pointer; }
.apf-x-details > summary::-webkit-details-marker { display: none; }
.apf-x-details > summary::after { content: ""; width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px); transition: transform .2s; }
.apf-x-details[open] > summary::after { transform: rotate(-135deg) translateY(-2px); }
.apf-x-details > summary:hover { background: #fbfcfd; }
.apf-x-speeds { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; padding: 4px 24px 8px; }
.apf-x-speed { min-width: 0; }
.apf-x-speed__name { display: flex; align-items: center; gap: 8px; margin: 0 0 8px !important; color: var(--x-ink); font-size: 14.5px; font-weight: 700; }
.apf-x-speed table { width: 100%; margin: 0 !important; border: 0 !important; border-collapse: collapse; font-size: 13.5px; font-variant-numeric: tabular-nums; }
.apf-x-speed th, .apf-x-speed td { min-width: 0 !important; padding: 7px 8px !important; border: 0 !important; border-bottom: 1px solid var(--x-line) !important; background: none !important; text-align: right; white-space: nowrap; }
.apf-x-speed th:first-child, .apf-x-speed td:first-child { padding-left: 0 !important; text-align: left; }
.apf-x-speed thead th { color: var(--x-muted); font-size: 11.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.apf-x-speed tbody th { color: var(--x-ink); font-weight: 600; }
.apf-x-speed__none { color: var(--x-muted); font-size: 14px; }

/* Specifications */
.apf-x-tablewrap { margin-top: 16px; overflow-x: auto; }
.apf-x .apf-spec { width: 100%; min-width: 0; margin: 0 !important; border: 0 !important; border-collapse: collapse; font-size: 14.5px; table-layout: fixed; }
.apf-x .apf-spec th, .apf-x .apf-spec td { min-width: 0 !important; max-width: none !important; padding: 13px 16px !important; border: 0 !important; border-top: 1px solid var(--x-line) !important; background: none !important; color: var(--x-ink); text-align: left; vertical-align: middle; overflow-wrap: break-word; }
.apf-x .apf-spec thead th { padding-top: 12px !important; padding-bottom: 12px !important; border-top: 0 !important; background: #fff !important; }
.apf-x .apf-spec tr > :first-child { width: 28%; padding-left: 24px !important; color: #4a5868; font-weight: 600; }
.apf-x .apf-spec tr > :last-child { padding-right: 24px !important; }
.apf-x .apf-spec tbody tr:hover > * { background: #fbfcfd !important; }
.apf-x .apf-spec .apf-spec__group th { padding-top: 9px !important; padding-bottom: 9px !important; background: var(--x-soft) !important; color: #4a5868; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.apf-spec__score { color: var(--x-muted); font-size: 13px; }
.apf-spec__score b { color: var(--x-ink); font-size: 16px; }
.apf-spec td.is-best .apf-spec__score b { color: #2f6f1a; }
.apf-spec__meter { display: block; width: 100%; max-width: 160px; height: 6px; margin-top: 6px; overflow: hidden; border-radius: 99px; background: #eef2f6; }
.apf-spec__meter span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #f9a987, #fdef1d 67%, #91d92c); }
.apf-spec__tags { display: flex; flex-wrap: wrap; gap: 5px; }
.apf-spec__tags span { padding: 3px 9px; border: 1px solid #d9e6f2; border-radius: 99px; background: #f3f8fc; color: #1a5882; font-size: 12.5px; font-weight: 600; }
.apf-spec__yes { display: inline-flex; align-items: center; gap: 5px; color: #2f6f1a; font-weight: 600; }
.apf-spec__yes .apf-icon { width: 15px; height: 15px; stroke-width: 3; }
.apf-spec__no { color: #9aa5b1; }
.apf-spec__link, .apf-spec__link:visited { display: inline-flex; align-items: center; gap: 5px; color: var(--apf-blue-700); font-weight: 700; text-decoration: none; }
.apf-spec__link:hover { text-decoration: underline; }
.apf-spec__link .apf-icon { width: 14px; height: 14px; }
.apf-x .apf-spec .apf-spec__buy td { padding-top: 16px !important; padding-bottom: 18px !important; }
.apf-spec__buy .apf-amazon { width: 100%; max-width: 260px; }
.apf-spec__buy .apf-deal__timewrap { justify-content: flex-start; }

@media (max-width: 760px) {
	.apf-x-card__head { padding: 18px 16px 0; }
	.apf-x-source { padding: 10px 16px 16px; }
	.apf-x-chart .apf-cmp-pills, .apf-x-chart .apf-cmp-pm1sum { margin-left: 16px !important; margin-right: 16px !important; }
	.apf-x-canvas { height: 280px; margin: 10px 6px 0; }
	.apf-x-canvas--tall { height: 320px; }
	.apf-x-details > summary { padding: 14px 16px; }
	.apf-x-speeds { grid-template-columns: 1fr; padding: 4px 16px 8px; }
	/* Results: each test becomes a block, values side by side under the name */
	.apf-res__row { grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); gap: 10px 14px; padding: 14px 16px; }
	.apf-res__row > .apf-res__label { grid-column: 1 / -1; }
	.apf-res__row--head { display: none; }
	.apf-res__group { padding: 9px 16px; }
	.apf-res__dev { display: block; overflow: hidden; color: var(--x-muted); font-size: 12px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
	.apf-res__val { font-size: 15px; }
	.apf-res--n4 .apf-res__row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	/* Specs: horizontal scroll, sticky labels */
	.apf-x .apf-spec { min-width: calc(140px + var(--n, 2) * 180px); table-layout: auto; }
	.apf-x .apf-spec--n3 { --n: 3; }
	.apf-x .apf-spec--n4 { --n: 4; }
	.apf-x .apf-spec tr > :first-child { position: sticky; left: 0; z-index: 1; width: 140px; padding-left: 16px !important; background: #fff !important; box-shadow: 1px 0 0 var(--x-line); }
	.apf-x .apf-spec .apf-spec__group th { position: static; }
}
.apf-x .apf-spec thead th { vertical-align: bottom; }
.apf-x-speed thead th { background: none !important; }
@media (max-width: 760px) {
	.apf-res__row { align-items: end; }
	.apf-res__row > .apf-res__label { align-self: start; }
	.apf-res__val { flex-wrap: nowrap; white-space: nowrap; }
	.apf-res__val em { padding: 1px 5px; font-size: 10px; }
	.apf-x-speed { overflow-x: auto; }
	.apf-x-speed th, .apf-x-speed td { padding: 7px 5px !important; font-size: 12.5px; }
	.apf-x .apf-spec .apf-amazon { white-space: nowrap; font-size: 13px; padding: 0 10px; }
	.apf-x .apf-spec .apf-amazon del { display: none; }
}
@media (max-width: 400px) { .apf-res--n3 .apf-res__row { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px 10px; } .apf-res__val { font-size: 14px; } }
/* Comments: room between the line and the "Comments" heading (old #comments { padding: 0 } overrode it) */
#comments.apf-comments { padding-top: 28px !important; }
#comments.apf-comments .apf-comments__head { margin-bottom: 22px; }
@media (max-width: 760px) { #comments.apf-comments { padding-top: 22px !important; } }
.apf-quiz__alt > .apf-quiz__alt-body { width: 100%; box-sizing: border-box; }
/* Quiz: the price tooltip keeps its own white text (the card text color was inherited) */
.apf-quiz .apf-deal__tip, .apf-quiz .apf-quiz__alt .apf-deal__tip { margin: 0 !important; color: #fff !important; font-size: 13px !important; line-height: 1.55 !important; }

/* Text links: only the text (or icon + text) is clickable, not the empty space next to it */
.apf-blog__list a, .apf-blog__list a:visited { display: inline; }
.apf-blog__list time { display: block; }
.apf-room__match a { display: inline-block; max-width: 100%; }
.apf-quiz__alt-name { display: inline-block; align-self: flex-start; max-width: 100%; }
.apf-db__device a, .apf-db__device a:visited { display: inline-block; max-width: 100%; vertical-align: top; }
.apf-sidebar > .widget .apf-w-tools__list a, .apf-sidebar > .widget .apf-w-links a { display: inline-flex; max-width: 100%; }
.apf-sidebar > .widget .apf-w-item__text a.apf-w-vs__buy { width: fit-content; }

/* =====================================================================
 * Content pages: How we test, About us, Contact (apf-pg).
 * Full container width, sections with a soft tint every other time, cards, steps.
 * ===================================================================== */
.apf-pg { --pg-line: #e6ebf0; --pg-muted: #5b6b7b; --pg-ink: #16212c; float: none !important; width: 100% !important; max-width: none !important; margin: 0 !important; padding: 0 !important; font-family: var(--apf-font); }
.apf-pg .apf-container { max-width: 1200px; }
.apf-pg-sec { padding: 64px 0; }
.apf-pg-sec--first { padding-top: 40px; }
.apf-pg-sec--tint { background: var(--apf-bg-tint, #f3f7fb); }
.apf-pg-head { max-width: 720px; margin: 0 0 28px; }
.apf-pg-head .apf-section__title { margin: 0 0 8px !important; }
.apf-pg-head > p:last-child { margin: 0 !important; color: var(--pg-muted); font-size: 16.5px; line-height: 1.6; }
.apf-pg .apf-section__title { padding: 0 !important; border: 0 !important; text-transform: none; }
.apf-pg .apf-section__title::before, .apf-pg .apf-section__title::after { content: none !important; }
.apf-pg p { color: var(--apf-text); line-height: 1.65; }
.apf-pg-lead { font-size: 16.5px; }
.apf-pg-h3 { margin: 0 0 14px !important; padding: 0 !important; border: 0 !important; color: var(--pg-ink); font-size: 18px; font-weight: 800; text-transform: none; }
.apf-pg-h3::before, .apf-pg-h3::after { content: none !important; }
.apf-pg-small { margin: 22px 0 10px !important; color: var(--pg-muted); font-size: 12.5px !important; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.apf-pg-center { margin: 28px 0 0 !important; text-align: center; }
.apf-pg-link, .apf-pg-link:visited { display: inline-flex; align-items: center; gap: 6px; color: var(--apf-blue-700); font-weight: 700; text-decoration: none; }
.apf-pg-link:hover { text-decoration: underline; }
.apf-pg-link .apf-icon { width: 16px; height: 16px; }

/* Grids and cards */
.apf-pg-grid { display: grid; gap: 18px; }
.apf-pg-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.apf-pg-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.apf-pg-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.apf-pg-card { min-width: 0; padding: 24px; border: 1px solid var(--pg-line); border-radius: 12px; background: #fff; box-shadow: 0 1px 2px rgba(16, 24, 40, .04); }
.apf-pg-card.is-featured { border-color: #b9d2ea; box-shadow: 0 0 0 3px #eaf3fb; }
.apf-pg-card__top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.apf-pg-card__icon { display: inline-flex; flex: none; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 10px; background: #eaf3fb; color: var(--apf-blue-700); }
.apf-pg-card__icon .apf-icon { width: 22px; height: 22px; }
.apf-pg-card__icon--lg { width: 52px; height: 52px; }
.apf-pg-card__icon--lg .apf-icon { width: 26px; height: 26px; }
.apf-pg-card__weight { padding: 3px 10px; border-radius: 99px; background: #f1f5f9; color: var(--pg-muted); font-size: 12px; font-weight: 700; }
.apf-pg-card.is-featured .apf-pg-card__weight { background: #1a5882; color: #fff; }
.apf-pg-card h3 { margin: 0 0 8px !important; padding: 0 !important; border: 0 !important; color: var(--pg-ink); font-size: 18px; font-weight: 800; line-height: 1.3; text-transform: none; }
.apf-pg-card h3::before, .apf-pg-card h3::after { content: none !important; }
.apf-pg-card p { margin: 0 !important; font-size: 15px; }
.apf-pg-card p + p { margin-top: 8px !important; }
.apf-pg-card__role { color: var(--apf-blue-700) !important; font-size: 13px !important; font-weight: 700; }
.apf-pg-card--row { display: flex; align-items: flex-start; gap: 16px; }
.apf-pg-card--media { display: flex; flex-direction: column; padding: 0; overflow: hidden; }
.apf-pg-card__media { position: relative; margin: 0; aspect-ratio: 16 / 9; overflow: hidden; background: #eef2f6; }
.apf-pg-card__media img { display: block; width: 100%; height: 100% !important; object-fit: cover; }
.apf-pg-card__media span { position: absolute; left: 12px; bottom: 12px; padding: 4px 10px; border-radius: 99px; background: rgba(22, 33, 44, .78); color: #fff; font-size: 12px; font-weight: 700; }
.apf-pg-card__body { padding: 20px 24px 24px; }
.apf-pg-initial { display: inline-flex; flex: none; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 50%; background: #1a5882; color: #fff; font-size: 18px; font-weight: 800; }

/* Lists */
.apf-pg ul.apf-pg-checks { display: grid; gap: 8px; margin: 14px 0 0 !important; padding: 0 !important; list-style: none; }
.apf-pg .apf-pg-checks li { display: flex; align-items: flex-start; gap: 8px; margin: 0 !important; padding: 0 !important; color: var(--apf-text); font-size: 14.5px; line-height: 1.5; list-style: none; }
.apf-pg .apf-pg-checks li::before { content: none !important; }
.apf-pg-checks .apf-icon { flex: none; width: 18px; height: 18px; margin-top: 2px; padding: 3px; border-radius: 4px; background: #e9f6df; color: #2f6f1a; stroke-width: 3; }
.apf-pg-checks strong { color: var(--pg-ink); }
.apf-pg ol.apf-pg-steps { display: grid; gap: 12px; margin: 20px 0 0 !important; padding: 0 !important; list-style: none; counter-reset: pgstep; }
.apf-pg .apf-pg-steps li { position: relative; display: flex; flex-direction: column; gap: 2px; margin: 0 !important; padding: 0 0 0 44px !important; list-style: none; counter-increment: pgstep; }
.apf-pg .apf-pg-steps li::before { content: counter(pgstep) !important; position: absolute; top: 0; left: 0; display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 50%; background: #1a5882; color: #fff; font-size: 13px; font-weight: 800; }
.apf-pg-steps strong { color: var(--pg-ink); font-size: 15.5px; }
.apf-pg-steps span { color: var(--apf-text); font-size: 15px; line-height: 1.55; }
.apf-pg-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.apf-pg-tags span { padding: 5px 12px; border: 1px solid #d9e6f2; border-radius: 99px; background: #f3f8fc; color: #1a5882; font-size: 13px; font-weight: 700; }
.apf-pg-rooms { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.apf-pg-rooms span { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border: 1px solid var(--pg-line); border-radius: 8px; background: #fff; }
.apf-pg-rooms b { color: var(--pg-ink); font-size: 15px; }
.apf-pg-rooms small { color: var(--pg-muted); font-size: 12px; line-height: 1.35; }
.apf-pg-callout { display: inline-block; margin: 6px 0 0 !important; padding: 6px 12px; border-radius: 8px; background: #fff4e8; color: #9a4b0b !important; font-size: 14px; font-weight: 700; }

/* Split: text + figure */
.apf-pg-split { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.apf-pg-split.is-reversed > .apf-pg-split__text { order: 2; }
.apf-pg-split--even { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
.apf-pg-split__text .apf-section__title { margin: 0 0 10px !important; }
.apf-pg-figure { margin: 0; }
.apf-pg-figure img { display: block; width: 100%; height: auto !important; border-radius: 12px; box-shadow: 0 12px 32px rgba(15, 42, 64, .14); }
.apf-pg-figure figcaption { margin-top: 10px; color: var(--pg-muted); font-size: 13px; text-align: center; }

/* Notes, banner, scale, params, stats */
.apf-pg-notes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.apf-pg-note, .apf-pg-banner { display: flex; align-items: flex-start; gap: 16px; padding: 22px 24px; border: 1px solid #cfe1f1; border-radius: 12px; background: #f3f8fc; }
.apf-pg-note__icon { display: inline-flex; flex: none; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 10px; background: #1a5882; color: #fff; }
.apf-pg-note__icon .apf-icon { width: 22px; height: 22px; }
.apf-pg-note h2, .apf-pg-banner h3 { margin: 0 0 6px !important; padding: 0 !important; border: 0 !important; color: var(--pg-ink); font-size: 17px; font-weight: 800; text-transform: none; }
.apf-pg-note h2::before, .apf-pg-note h2::after, .apf-pg-banner h3::before, .apf-pg-banner h3::after { content: none !important; }
.apf-pg-note p, .apf-pg-banner p { margin: 0 !important; font-size: 15px; }
.apf-pg-banner { margin-top: 22px; border-color: #d7ecc6; background: #f4fbee; }
.apf-pg-banner .apf-pg-note__icon { background: #2f6f1a; }
.apf-pg-score { margin-top: 36px; padding: 28px; border: 1px solid var(--pg-line); border-radius: 12px; background: #fff; }
.apf-pg ol.apf-pg-params { display: grid; gap: 8px; margin: 0 !important; padding: 0 !important; list-style: none; counter-reset: pgparam; }
.apf-pg .apf-pg-params li { display: flex; align-items: center; gap: 12px; margin: 0 !important; padding: 10px 14px !important; border: 1px solid var(--pg-line); border-radius: 8px; color: var(--pg-ink); font-weight: 700; list-style: none; counter-increment: pgparam; }
.apf-pg .apf-pg-params li::before { content: counter(pgparam) !important; display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 50%; background: #eaf3fb; color: #1a5882; font-size: 12.5px; font-weight: 800; }
.apf-pg ul.apf-pg-scale { display: grid; gap: 6px; margin: 0 !important; padding: 0 !important; list-style: none; }
.apf-pg .apf-pg-scale li { display: grid; grid-template-columns: 96px 1fr; align-items: center; gap: 12px; margin: 0 !important; padding: 0 !important; list-style: none; color: var(--pg-ink); font-size: 15px; font-weight: 600; }
.apf-pg .apf-pg-scale li::before { content: none !important; }
.apf-pg-scale .apf-rating { padding: 4px 8px; font-size: 13px; text-align: center; }
.apf-pg ul.apf-pg-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin: 0 !important; padding: 0 !important; overflow: hidden; border: 1px solid var(--pg-line); border-radius: 12px; background: #fff; list-style: none; }
.apf-pg ul.apf-pg-stats--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.apf-pg .apf-pg-stats li { display: flex; flex-direction: column; gap: 4px; margin: 0 !important; padding: 22px 24px !important; border-left: 1px solid var(--pg-line); list-style: none; }
.apf-pg .apf-pg-stats li:first-child { border-left: 0; }
.apf-pg .apf-pg-stats li::before { content: none !important; }
.apf-pg-stats strong { color: #1a5882; font-size: 32px; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; }
.apf-pg-stats span { color: var(--pg-muted); font-size: 13.5px; font-weight: 600; }

/* About: founder, quote, equipment, tools */
.apf-pg-person { display: flex; align-items: center; gap: 16px; margin-bottom: 14px; }
.apf-pg-person__img, .apf-pg-person img { flex: none; width: 72px; height: 72px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 4px #fff, 0 4px 12px rgba(15, 42, 64, .15); }
.apf-pg-person .apf-eyebrow { margin: 0 0 4px !important; }
.apf-pg-person .apf-section__title { margin: 0 !important; }
.apf-pg-quote { margin: 18px 0 !important; padding: 14px 18px !important; border: 0 !important; border-left: 4px solid #1a5882 !important; border-radius: 0 10px 10px 0; background: #fff; color: var(--pg-ink); font-size: 16px; font-style: italic; line-height: 1.6; }
.apf-pg-quote::before, .apf-pg-quote::after { content: none !important; }
.apf-pg-equip { margin-top: 24px; }
.apf-pg-tool, .apf-pg-tool:visited { display: flex; flex-direction: column; gap: 6px; padding: 20px; border: 1px solid var(--pg-line); border-radius: 12px; background: #fff; color: var(--pg-ink); text-decoration: none; transition: border-color .15s, box-shadow .15s, transform .15s; }
.apf-pg-tool:hover { border-color: #b9d2ea; box-shadow: 0 8px 22px rgba(15, 42, 64, .08); transform: translateY(-2px); }
.apf-pg-tool .apf-pg-card__icon { margin-bottom: 6px; }
.apf-pg-tool strong { font-size: 16px; }
.apf-pg-tool span:last-child { color: var(--pg-muted); font-size: 14px; }

/* Contact */
.apf-pg-split--contact { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: start; }
.apf-pg-mail { padding: 32px; border: 1px solid var(--pg-line); border-radius: 14px; background: #fff; box-shadow: 0 12px 32px rgba(15, 42, 64, .08); }
.apf-pg-mail h2 { margin: 16px 0 8px !important; padding: 0 !important; border: 0 !important; color: var(--pg-ink); font-size: 26px; font-weight: 800; text-transform: none; }
.apf-pg-mail h2::before, .apf-pg-mail h2::after { content: none !important; }
.apf-pg-mail__btn { margin: 8px 0 20px; font-size: 16px; text-transform: none; }
.apf-pg-mail__note { display: flex; align-items: flex-start; gap: 10px; margin: 0 !important; padding: 14px 16px; border-radius: 10px; background: #f3f8fc; font-size: 14px !important; }
.apf-pg-mail__note .apf-icon { flex: none; width: 18px; height: 18px; margin-top: 2px; color: #1a5882; }
.apf-pg ul.apf-pg-social { display: grid; gap: 10px; margin: 0 !important; padding: 0 !important; list-style: none; }
.apf-pg .apf-pg-social li { margin: 0 !important; padding: 0 !important; list-style: none; }
.apf-pg .apf-pg-social li::before { content: none !important; }
.apf-pg-social a, .apf-pg-social a:visited { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border: 1px solid var(--pg-line); border-radius: 12px; background: #fff; color: var(--pg-ink); text-decoration: none; transition: border-color .15s, box-shadow .15s; }
.apf-pg-social a:hover { border-color: #b9d2ea; box-shadow: 0 6px 18px rgba(15, 42, 64, .08); }
.apf-pg-social__text { display: flex; flex: 1; flex-direction: column; min-width: 0; }
.apf-pg-social__text strong { font-size: 15.5px; }
.apf-pg-social__text em { margin-left: 4px; color: var(--apf-blue-700); font-style: normal; font-weight: 600; }
.apf-pg-social__text small { color: var(--pg-muted); font-size: 13px; }
.apf-pg-social a > .apf-icon { flex: none; width: 18px; height: 18px; color: var(--pg-muted); transition: transform .15s; }
.apf-pg-social a:hover > .apf-icon { transform: translateX(3px); color: var(--apf-blue-700); }

/* CTA band */
.apf-pg-cta { padding: 48px 0; background: linear-gradient(135deg, var(--apf-navy) 0%, #1f5a86 100%); }
.apf-pg-cta .apf-container { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 32px; }
.apf-pg-cta h2 { margin: 0 0 6px !important; padding: 0 !important; border: 0 !important; color: #fff; font-size: 26px; font-weight: 800; text-transform: none; }
.apf-pg-cta h2::before, .apf-pg-cta h2::after { content: none !important; }
.apf-pg-cta p { margin: 0 !important; color: rgba(255, 255, 255, .85); }
.apf-pg-cta__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.apf-pg-cta .apf-button--primary { background: #fff; color: var(--apf-navy); }
.apf-pg-cta .apf-button--primary:hover { background: #eaf3fb; color: var(--apf-navy); }
.apf-pg-cta .apf-button--outline { border-color: rgba(255, 255, 255, .5); background: transparent; color: #fff; }
.apf-pg-cta .apf-button--outline:hover { border-color: #fff; color: #fff; }

@media (max-width: 980px) {
	.apf-pg-grid--3, .apf-pg-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.apf-pg-split, .apf-pg-split--even, .apf-pg-split--contact { grid-template-columns: 1fr; gap: 28px; }
	.apf-pg-split.is-reversed > .apf-pg-split__text { order: 0; }
	.apf-pg ul.apf-pg-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.apf-pg .apf-pg-stats li:nth-child(3) { border-left: 0; }
	.apf-pg .apf-pg-stats li:nth-child(n+3) { border-top: 1px solid var(--pg-line); }
	.apf-pg-rooms { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
	.apf-pg-sec { padding: 40px 0; }
	.apf-pg-sec--first { padding-top: 28px; }
	.apf-pg-grid--2, .apf-pg-grid--3, .apf-pg-grid--4, .apf-pg-notes { grid-template-columns: 1fr; }
	.apf-pg-card, .apf-pg-note, .apf-pg-banner { padding: 20px; }
	.apf-pg-score, .apf-pg-mail { padding: 20px; }
	.apf-pg ul.apf-pg-stats--3 { grid-template-columns: 1fr; }
	.apf-pg ul.apf-pg-stats--3 li { border-left: 0; border-top: 1px solid var(--pg-line); }
	.apf-pg ul.apf-pg-stats--3 li:first-child { border-top: 0; }
	.apf-pg-stats strong { font-size: 26px; }
	.apf-pg-rooms { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.apf-pg-cta { padding: 36px 0; }
}
/* Content pages: same edges as the header; tinted sections run across the whole screen */
.apf-pg .apf-container { max-width: none; padding-left: 0; padding-right: 0; }
.apf-pg-sec--tint, .apf-pg-cta { box-shadow: 0 0 0 100vmax var(--apf-bg-tint, #f3f7fb); clip-path: inset(0 -100vmax); }
.apf-pg-cta { box-shadow: 0 0 0 100vmax #1d4f78; }
.apf-pg-fine { margin: 14px 0 0 !important; color: var(--pg-muted) !important; font-size: 14px !important; font-style: italic; }
@media (max-width: 1240px) { .apf-pg .apf-container { padding-left: 0; padding-right: 0; } }

/* Compare v5.1: coverage, missing results, biggest differences */
.apf-res__head { display: flex; flex-direction: column; gap: 2px; }
.apf-res__cover { padding-left: 18px; color: var(--x-muted, #6b7785); font-size: 12px; font-weight: 600; }
.apf-res__cell.is-empty .apf-res__val { color: #9aa5b1; font-size: 13px; font-weight: 600; }
.apf-res__cell.is-empty .apf-res__bar { background: repeating-linear-gradient(90deg, #eef2f6 0 6px, transparent 6px 10px); }
.apf-res__row.is-solo .apf-res__bar span { background: #b8c4cf; opacity: 1; }
.apf-res__row.is-solo .apf-res__label small { color: #9a4b0b; }
.apf-x-diffs { margin: 0 0 16px; padding: 18px 22px; border: 1px solid #cfe1f1; border-radius: 12px; background: #f3f8fc; }
.apf-x-diffs__title { margin: 0 0 10px !important; color: #1a5882; font-size: 12.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.apf-x-diffs ul { display: grid; gap: 8px; margin: 0 !important; padding: 0 !important; list-style: none; }
.apf-x-diffs li { display: grid; grid-template-columns: minmax(170px, 1fr) minmax(0, 2.4fr); align-items: center; gap: 6px 16px; margin: 0 !important; padding: 10px 14px !important; border-radius: 9px; background: #fff; list-style: none; }
.apf-x-diffs li::before { content: none !important; }
.apf-x-diffs__label { color: var(--x-ink, #16212c); font-size: 14.5px; font-weight: 700; }
.apf-x-diffs__vs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: 14px; }
.apf-x-diffs__vs b { padding: 2px 8px; border-radius: 6px; background: #e9f6df; color: #2f6f1a; font-variant-numeric: tabular-nums; }
.apf-x-diffs__vs b.is-worse { background: #f1f4f7; color: #4a5868; }
.apf-x-diffs__vs em { color: var(--x-muted, #6b7785); font-size: 12.5px; font-style: normal; font-weight: 700; }
.apf-x-diffs .apf-x-dev { font-size: 13.5px; }
.apf-x-missing { margin: 6px 24px 0 !important; color: #9a4b0b; font-size: 13px; }
@media (max-width: 760px) {
	.apf-x-diffs { padding: 14px; }
	.apf-x-diffs li { grid-template-columns: 1fr; }
	.apf-x-missing { margin: 6px 16px 0 !important; }
}

.apf-x-empty { display: flex; align-items: flex-start; gap: 16px; padding: 22px 24px; border: 1px dashed #c9d6e2; border-radius: 12px; background: #f8fafc; }
.apf-x-empty h2 { margin: 0 0 6px !important; padding: 0 !important; border: 0 !important; color: #16212c; font-size: 18px; font-weight: 800; text-transform: none; }
.apf-x-empty h2::before, .apf-x-empty h2::after { content: none !important; }
.apf-x-empty p { margin: 0 !important; color: #5b6b7b; font-size: 15px; }

/* Chart tooltip on phones: full chart width, wrapped text (js/chart-tip.js) */
.apf-ctip { position: absolute; z-index: 6; box-sizing: border-box; margin: 0; padding: 10px 12px; border-radius: 8px; background: rgba(22, 36, 58, .96); box-shadow: 0 8px 22px rgba(15, 42, 64, .28); color: #dbe4f0; font-size: 13px; line-height: 1.4; text-align: left; pointer-events: none; opacity: 0; visibility: hidden; transition: opacity .12s ease; }
.apf-ctip.is-on { opacity: 1; visibility: visible; }
.apf-ctip p { margin: 0 !important; padding: 0 !important; color: inherit; font-size: inherit; line-height: inherit; }
.apf-ctip .apf-ctip__title { margin-bottom: 4px !important; color: #fff; font-weight: 700; }
.apf-ctip__row { display: flex; align-items: baseline; gap: 8px; overflow-wrap: anywhere; }
.apf-ctip__row + .apf-ctip__row { margin-top: 3px !important; }
.apf-ctip__row i { flex: 0 0 auto; width: 10px; height: 10px; border-radius: 2px; transform: translateY(1px); }
.apf-ctip__foot { margin-top: 4px !important; color: #9fb2c8; font-size: 12px; }

/* Content pages inside a full-width wrapper (old per-page exceptions): keep the header's edges */
.w-100 > .apf-pg .apf-container, .apf-main > .apf-pg .apf-container { max-width: calc(var(--apf-container) + 2 * var(--apf-gutter)); padding-left: var(--apf-gutter); padding-right: var(--apf-gutter); }

/* Content pages CTA band: one seamless background across the whole screen (no seam at the container edges) */
.apf-pg-cta, .apf-pg .apf-pg-cta { background: #1d4f78 !important; background-image: none !important; border-image: none !important; box-shadow: 0 0 0 100vmax #1d4f78 !important; clip-path: inset(0 -100vmax) !important; }
.apf-pg-cta::before, .apf-pg-cta::after, .apf-pg-cta .apf-container::before, .apf-pg-cta .apf-container::after { content: none !important; display: none !important; }
.apf-pg-cta .apf-container { background: none !important; box-shadow: none !important; }

/* About / Testing, mobile: media cards keep the photo edge to edge; compact tool cards */
@media (max-width: 760px) {
	.apf-pg-card.apf-pg-card--media { padding: 0; }
	.apf-pg-card--media .apf-pg-card__body { padding: 18px 18px 20px; }
	.apf-pg-tool, .apf-pg-tool:visited { display: grid; grid-template-columns: 44px minmax(0, 1fr); align-items: center; gap: 2px 14px; padding: 14px 16px; }
	.apf-pg-tool .apf-pg-card__icon { grid-row: span 2; margin: 0; }
	.apf-pg-tool strong { align-self: end; }
	.apf-pg-tool span:last-child { align-self: start; }
	.apf-pg-grid--4 { gap: 10px; }
}

/* About / Testing, tablet: three cards stay in one row (no lone card in the second row) */
@media (min-width: 761px) and (max-width: 980px) {
	.apf-pg-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
	.apf-pg-grid--3 > .apf-pg-card { padding: 18px; }
	.apf-pg-grid--3 > .apf-pg-card h3 { font-size: 16.5px; }
	.apf-pg-grid--3 > .apf-pg-card p, .apf-pg-grid--3 > .apf-pg-card li { font-size: 14.5px; }
	.apf-pg ul.apf-pg-stats--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.apf-pg ul.apf-pg-stats--3 li:nth-child(3) { border-left: 1px solid var(--pg-line); }
	.apf-pg ul.apf-pg-stats--3 li { padding: 18px !important; border-top: 0 !important; }
}

/* Test Results Database, "Test methodology and units": site colours in the label column */
.apf-trdb__units > div { border-bottom-color: #e3edf6; }
.apf-trdb__units > div:hover { background: #f3f8fc; }
.apf-trdb__units dt { border-right: 1px solid #dbe8f4; background: #eef5fb; color: #1a5882; }
.apf-trdb__units > div:hover dt { background: #e3eff9; }
@media (max-width: 560px) {
	.apf-trdb__units dt { border-right: 0; background: none; }
	.apf-trdb__units > div:hover dt { background: none; }
}

/* Mobile buy bar v6 (popover): our top pick / product the reader is on. Phones and tablets only. */
.apf-buybar { display: none; }
@media (max-width: 1023px) {
	.apf-buybar { position: fixed; right: 0; bottom: 0; left: 0; z-index: 90; display: block; border-top: 3px solid var(--apf-brand-green, #91d92d); border-radius: 0; background: linear-gradient(135deg, var(--apf-navy-900, #0f2a40) 0%, var(--apf-navy, #173d5c) 60%, #1f5a8a 100%); box-shadow: 0 -10px 30px rgba(15, 42, 64, .35); color: #fff; transform: translateY(110%); transition: transform .28s cubic-bezier(.2, .8, .2, 1); }
	.apf-buybar[hidden] { display: none; }
	.apf-buybar.is-in { transform: none; }
	.apf-buybar__inner { position: relative; max-width: 560px; margin: 0 auto; padding: 14px 16px calc(14px + env(safe-area-inset-bottom)); }
	.apf-buybar p { margin: 0 !important; padding: 0 !important; }
	.apf-buybar .apf-buybar__eyebrow { display: flex; align-items: center; gap: 7px; padding-right: 40px !important; color: var(--apf-brand-green, #91d92d); font-size: 11.5px; font-weight: 800; letter-spacing: .1em; line-height: 1.3; text-transform: uppercase; }
	.apf-buybar__eyebrow::before { content: ""; flex: none; width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 3px rgba(145, 217, 45, .22); }
	.apf-buybar__eyebrow span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
	.apf-buybar__close { position: absolute; top: 8px; right: 10px; display: grid; place-items: center; width: 32px; height: 32px; padding: 0; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .12); color: #fff; cursor: pointer; }
	.apf-buybar__close:hover, .apf-buybar__close:focus-visible { background: rgba(255, 255, 255, .24); }
	.apf-buybar__close svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; }
	.apf-buybar__row { display: flex; align-items: center; gap: 12px; margin-top: 10px; transition: opacity .16s ease; }
	.apf-buybar__media { flex: none; display: block; width: 62px; height: 62px; overflow: hidden; border: 2px solid #fff; border-radius: 10px; background: #fff; }
	.apf-buybar__img { display: block; width: 100%; height: 100% !important; margin: 0 !important; padding: 0; object-fit: cover; }
	.apf-buybar[data-mode="review"] .apf-buybar__row { margin-top: 0; padding-right: 42px; }
	.apf-buybar[data-mode="review"] .apf-buybar__close { top: 12px; }
	.apf-buybar__img[hidden] { display: none; }
	.apf-buybar__text { min-width: 0; }
	.apf-buybar .apf-buybar__name { display: -webkit-box; overflow: hidden; color: #fff; font-size: 17px; font-weight: 800; letter-spacing: -.01em; line-height: 1.25; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
	.apf-buybar .apf-buybar__meta { display: flex; align-items: center; gap: 8px; margin-top: 4px !important; color: rgba(255, 255, 255, .75); font-size: 13px; line-height: 1.3; }
	.apf-buybar__score { flex: none; padding: 2px 7px; border-radius: 6px; background: #4ea62a; color: #fff; font-size: 12.5px; font-weight: 800; }
	.apf-buybar__score[hidden] { display: none; }
	.apf-buybar .apf-buybar__cta { display: flex; width: 100%; min-height: 48px; margin-top: 12px; padding: 8px 16px; line-height: 1.25; text-align: center; gap: 8px; border-radius: 10px; font-size: 16.5px; font-weight: 800; box-shadow: 0 6px 16px rgba(255, 112, 51, .35); transition: opacity .16s ease, background .15s ease; }
	.apf-buybar .apf-buybar__cta svg { flex: none; width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
	.apf-buybar.is-swapping .apf-buybar__row, .apf-buybar.is-swapping .apf-buybar__cta { opacity: .25; }
	body.has-apf-buybar { padding-bottom: 170px; }
	.apf-buybar .apf-buybar__note { margin-top: 9px !important; color: rgba(255, 255, 255, .66); font-size: 11.5px; line-height: 1.4; text-align: center; }
	.apf-buybar__note a { color: rgba(255, 255, 255, .85); text-decoration: underline; text-underline-offset: 2px; }
	.apf-buybar__note a:hover, .apf-buybar__note a:focus-visible { color: #fff; }
	body.has-apf-buybar:has(.apf-buybar__note) { padding-bottom: 200px; }
}
@media (max-width: 1023px) and (prefers-reduced-motion: reduce) {
	.apf-buybar, .apf-buybar__row, .apf-buybar__cta { transition: none; }
}

/* Tooltips: one floating box for the whole site (js/apf.js). The old inline popups are only the text source. */
.popup-content, .popup-content.show-popup, .prices-updated-info-popup, .prices-updated .prices-updated-info-popup.show-mobile, .apf-deal__tip { display: none !important; }
.icon-info, .heading-score, .best-for-item, .prices-updated, .apf-deal__time { cursor: pointer; -webkit-tap-highlight-color: transparent; }
.icon-info:focus-visible, .heading-score:focus-visible, .best-for-item:focus-visible, .prices-updated:focus-visible { outline: 2px solid var(--apf-brand, #3498db); outline-offset: 2px; border-radius: 4px; }
.prices-updated.is-tip-open { background-color: #eaf3fb !important; }
/* "Best for" chip with its tooltip open: same filled look as hover (white text on navy). */
td.best-suited-for .best-for-item.is-tip-open { background: #1a5882 !important; color: #fff !important; }
td.best-suited-for .best-for-item.is-tip-open .icon, td.best-suited-for .best-for-item.is-tip-open .icon-info { color: #fff !important; }
/* Touch screens keep :hover after a tap; there the chip only fills while its tooltip is open. */
@media (hover: none) {
	td.best-suited-for .best-for-item:not(.is-tip-open):hover { background: rgba(52, 152, 219, .12) !important; color: inherit !important; }
	td.best-suited-for .best-for-item:not(.is-tip-open):hover .icon, td.best-suited-for .best-for-item:not(.is-tip-open):hover .icon-info { color: #1a5882 !important; }
}
.icon-info.is-tip-open, .heading-score.is-tip-open, .apf-deal__time[aria-expanded="true"] { opacity: .85; }
.apf-ftip { position: fixed; z-index: 2147483000; top: 0; left: 0; box-sizing: border-box; max-width: calc(100vw - 24px); border-radius: 8px; background: var(--apf-navy, #173d5c); box-shadow: 0 12px 30px rgba(15, 42, 64, .3); color: #fff; font-family: inherit; font-size: 12.5px; font-style: normal; font-weight: 400; line-height: 1.5; letter-spacing: 0; text-align: left; text-transform: none; opacity: 0; transform: translateY(4px); transition: opacity .14s ease, transform .14s ease; pointer-events: auto; }
.apf-ftip.is-below { transform: translateY(-4px); }
.apf-ftip.is-in { opacity: 1; transform: none; }
.apf-ftip[hidden] { display: none !important; }
.apf-ftip__inner { max-height: min(60vh, 420px); overflow: auto; padding: 10px 12px; -webkit-overflow-scrolling: touch; }
.apf-ftip__arrow { position: absolute; top: 100%; width: 0; height: 0; margin-left: -7px; border: 7px solid transparent; border-top-color: var(--apf-navy, #173d5c); }
.apf-ftip.is-below .apf-ftip__arrow { top: auto; bottom: 100%; border-top-color: transparent; border-bottom-color: var(--apf-navy, #173d5c); }
.apf-ftip p, .apf-ftip li { margin: 0 0 5px !important; padding: 0 !important; color: #fff !important; font-size: 12.5px !important; line-height: 1.5 !important; }
.apf-ftip p:last-child, .apf-ftip li:last-child { margin-bottom: 0 !important; }
.apf-ftip .popup-heading { margin-bottom: 5px !important; color: #fff !important; font-size: 13px !important; font-weight: 800; }
.apf-ftip b, .apf-ftip strong { color: #fff !important; font-weight: 800; }
.apf-ftip ul { margin: 6px 0 !important; padding: 0 0 0 18px !important; list-style: disc !important; }
.apf-ftip li::before { content: none !important; }
.apf-ftip a { color: #9fd3ff !important; font-weight: 700; text-decoration: underline; }
.apf-ftip .popup-scores { display: grid; gap: 4px; margin: 0 !important; }
.apf-ftip .popup-scores p { display: flex; align-items: center; gap: 8px; margin: 0 !important; }
.apf-ftip .popup-scores span { display: inline-block; min-width: 36px; padding: 1px 6px; border-radius: 5px; background: #4ea62a; color: #fff; font-weight: 800; text-align: center; }
.apf-ftip .popup-scores span.score-orange { background: #e07a18; }
.apf-ftip .popup-scores span.score-red { background: #d0423a; }
.apf-ftip .icon-info { display: none; }
@media (max-width: 600px) {
	.apf-ftip { font-size: 13px; }
	.apf-ftip p, .apf-ftip li { font-size: 13px !important; }
}
@media (prefers-reduced-motion: reduce) {
	.apf-ftip { transition: none; }
}

/* Compare: weighted score */
.apf-cmp-tally__n strong { margin-right: 6px; color: var(--apf-ink); font-size: 15px; font-weight: 800; font-variant-numeric: tabular-nums; }
.apf-cmp-weights { max-width: 760px; margin: -6px 0 22px !important; color: var(--apf-muted); font-size: 13.5px; line-height: 1.55; }
.apf-cmp-winner__key { margin-left: 6px; padding: 1px 6px; border-radius: 4px; background: #eef8e7; color: #2f6f1a; font-size: 10.5px; font-style: normal; font-weight: 800; letter-spacing: .04em; vertical-align: 1px; }

/* Compare: price row, buttons aligned at the top (with or without a price) */
.apf-x .apf-spec .apf-spec__buy th, .apf-x .apf-spec .apf-spec__buy td { vertical-align: top !important; }
.apf-x .apf-spec .apf-spec__buy th { padding-top: 26px !important; }

/* Compare: noise / power ranges, every fan speed at its measured value */
.apf-rng { display: grid; gap: 14px; padding: 16px 24px 18px; }
.apf-rng[hidden] { display: none; }
.apf-rng__row { display: grid; grid-template-columns: minmax(140px, 220px) minmax(0, 1fr); grid-template-areas: "name track" ". vals"; gap: 4px 18px; align-items: center; }
.apf-rng .apf-rng__name { grid-area: name; display: flex; flex-wrap: wrap; align-items: center; gap: 2px 8px; margin: 0 !important; color: var(--apf-ink); font-size: 15px; font-weight: 700; line-height: 1.3; }
.apf-rng__name i { flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--apf-c); }
.apf-rng__name small { flex-basis: 100%; padding-left: 18px; color: var(--apf-muted); font-size: 12px; font-weight: 600; }
.apf-rng__track { grid-area: track; position: relative; height: 34px; border-radius: 8px; background: var(--apf-bg-soft, #f4f7fa); }
.apf-rng__bar { position: absolute; top: 50%; height: 6px; border-radius: 99px; background: var(--apf-c); opacity: .35; transform: translateY(-50%); }
.apf-rng__dot { position: absolute; top: 50%; width: 12px; height: 12px; margin-left: -6px; border: 2px solid var(--apf-c); border-radius: 50%; background: #fff; transform: translateY(-50%); }
.apf-rng__dot.is-end { width: 16px; height: 16px; margin-left: -8px; background: var(--apf-c); box-shadow: 0 0 0 3px #fff; }
.apf-rng .apf-rng__vals { grid-area: vals; display: flex; justify-content: space-between; gap: 10px; margin: 0 !important; color: var(--apf-muted); font-size: 12.5px; }
.apf-rng__vals b { color: var(--apf-ink); font-variant-numeric: tabular-nums; }
.apf-rng .apf-rng__none { grid-area: track; margin: 0 !important; color: #9aa5b1; font-size: 13px; font-weight: 600; }
.apf-rng__axisrow { display: grid; grid-template-columns: minmax(140px, 220px) minmax(0, 1fr); gap: 0 18px; }
.apf-rng__axis { position: relative; height: 18px; color: var(--apf-muted); font-size: 11.5px; font-variant-numeric: tabular-nums; }
.apf-rng__axis span { position: absolute; top: 0; transform: translateX(-50%); white-space: nowrap; }
.apf-rng__axis span:first-child { transform: none; }
.apf-rng__axis span:last-child { transform: translateX(-100%); }
.apf-rng .apf-rng__legend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 4px 0 0 !important; color: var(--apf-muted); font-size: 12.5px; }
.apf-rng__legend span::before { content: ""; display: inline-block; width: 10px; height: 10px; margin-right: 6px; border-radius: 3px; vertical-align: -1px; }
.apf-rng__legend .is-quiet::before { background: #d9efc9; }
.apf-rng__legend .is-mid::before { background: #f8e2b4; }
.apf-rng__legend .is-loud::before { background: #f6c9c3; }
.apf-rng__legend .is-dot::before { width: 10px; height: 10px; border: 2px solid var(--apf-navy); border-radius: 50%; background: #fff; }
@media (max-width: 760px) {
	.apf-rng { padding: 6px 16px 16px; }
	.apf-rng__row { grid-template-columns: 1fr; grid-template-areas: "name" "track" "vals"; }
	.apf-rng__axisrow { grid-template-columns: 1fr; }
	.apf-rng__axisrow > span { display: none; }
}

/* Compare: jump links show where you are */
.apf-cmp-jump a { position: relative; transition: background .15s ease, color .15s ease; }
.apf-cmp-jump a.is-active { background: var(--apf-navy, #173d5c); color: #fff; }
.apf-cmp-jump a.is-active:hover { background: var(--apf-navy, #173d5c); color: #fff; }
@media (max-width: 760px) {
	.apf-cmp-jump { position: sticky; top: calc(var(--apf-sticky-h, 0px) + 6px); flex-wrap: nowrap; gap: 4px; margin-right: -4px; margin-left: -4px; padding: 6px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
	.apf-cmp-jump::-webkit-scrollbar { display: none; }
	.apf-cmp-jump a { flex: none; padding: 7px 12px; font-size: 13.5px; white-space: nowrap; }
}

/* Compare specs: ratings with the same score bar as the plugin's comparison table */
.apf-x .apf-spec td .apf-spec__rate { display: flex; flex-direction: column; width: 100%; }
.apf-x .apf-spec td .apf-spec__rate > span { align-self: flex-end; margin-bottom: 5px; color: var(--x-muted, #6b7785); font-size: 13px; }
.apf-x .apf-spec td .apf-spec__rate > span b { color: var(--x-ink, #16212c); font-size: 16px; }
.apf-x .apf-spec td.is-best .apf-spec__rate > span b { color: #2f6f1a; }
.apf-x .apf-spec td .apf-spec__rate .score-line { position: relative; overflow: hidden; border-radius: 4px; }
.apf-x .apf-spec td .apf-spec__rate .review-breakdown-line { width: 100%; height: 7px; background: linear-gradient(90deg, #f9a987 0%, #fdef1d 67%, #91d92c 100%); }
.apf-x .apf-spec td .apf-spec__rate .review-breakdown-score { position: absolute; right: 0; bottom: 0; height: 7px; background: #ececec; }

/* Compare specs on phones: every row is a block, the values side by side with the device name */
@media (max-width: 760px) {
	.apf-x .apf-x-tablewrap { overflow: visible; }
	.apf-x .apf-x-tablewrap .apf-spec, .apf-x .apf-x-tablewrap .apf-spec tbody { display: block !important; width: 100% !important; min-width: 0 !important; }
	.apf-x .apf-x-tablewrap .apf-spec thead { display: none !important; }
	.apf-x .apf-x-tablewrap .apf-spec tr { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 14px; padding: 14px 16px; border-top: 1px solid var(--x-line, #e3e8ee); }
	.apf-x .apf-x-tablewrap .apf-spec tr > * { position: static !important; width: auto !important; padding: 0 !important; border: 0 !important; background: none !important; box-shadow: none !important; text-align: left !important; }
	.apf-x .apf-x-tablewrap .apf-spec tr > th { grid-column: 1 / -1; color: var(--x-ink, #16212c) !important; font-size: 15px; font-weight: 800 !important; }
	.apf-x .apf-x-tablewrap .apf-spec td { min-width: 0; color: var(--x-ink, #16212c); font-size: 15px; line-height: 1.45; overflow-wrap: anywhere; }
	.apf-x .apf-x-tablewrap .apf-spec td::before { content: attr(data-label); display: block; margin-bottom: 4px; padding-left: 14px; overflow: hidden; background: radial-gradient(circle at 4px 50%, var(--apf-c, #1a5882) 4px, transparent 4.5px) no-repeat; color: var(--x-muted, #6b7785); font-size: 12px; font-weight: 700; line-height: 1.3; text-overflow: ellipsis; white-space: nowrap; }
	.apf-x .apf-x-tablewrap .apf-spec tr.apf-spec__group { display: block !important; padding: 9px 16px; background: var(--x-soft, #f6f8fa); }
	.apf-x .apf-x-tablewrap .apf-spec tr.apf-spec__group th { background: none !important; font-size: 12px; font-weight: 800 !important; letter-spacing: .08em; text-transform: uppercase; color: #4a5868 !important; }
	.apf-x .apf-x-tablewrap .apf-spec tbody tr:hover > * { background: none !important; }
	.apf-x .apf-x-tablewrap .apf-spec .apf-spec__tags span { font-size: 12px; }
	.apf-x .apf-x-tablewrap .apf-spec .apf-spec__buy td .apf-amazon { width: 100%; max-width: none; white-space: normal; font-size: 13.5px; line-height: 1.25; padding: 8px 10px; }
	.apf-x .apf-x-tablewrap .apf-spec .apf-spec__buy th { padding-top: 0 !important; }
}

/* Compare specs: "Other features" and "Best for" chips in the plugin's style */
.apf-x .apf-spec td.other-features, .apf-x .apf-spec td.best-suited-for { text-align: left; }
.apf-x .apf-spec td.other-features span, .apf-x .apf-spec td.best-suited-for .best-for-item { margin: 0 6px 6px 0; font-size: 14px; line-height: 1.35; }
.apf-x .apf-spec td.other-features span { padding: 4px 12px; border: 1px solid rgba(145, 217, 45, .8); border-radius: 20px; background: rgba(145, 217, 45, .04); color: var(--x-ink, #16212c); }
.apf-x .apf-spec td.best-suited-for .best-for-item { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px 5px 12px; border: 1px solid #1a5882; border-radius: 20px; background: rgba(52, 152, 219, .12); color: var(--x-ink, #16212c); }
.apf-x .apf-spec td.best-suited-for .best-for-item:hover, .apf-x .apf-spec td.best-suited-for .best-for-item.is-tip-open { background: #1a5882 !important; color: #fff; }
.apf-x .apf-spec td.best-suited-for .best-for-item .icon-info { margin: 0; color: #1a5882; }
.apf-x .apf-spec td.best-suited-for .best-for-item:hover .icon-info, .apf-x .apf-spec td.best-suited-for .best-for-item.is-tip-open .icon-info { color: #fff; }

/* Compare specs: a light touch of the plugin table's colours, values centred (desktop) */
@media (min-width: 761px) {
	.apf-x .apf-spec tbody th[scope="row"] { background: #f5f9fd !important; color: #1f3b55; font-weight: 700; }
	.apf-x .apf-spec tbody tr:hover > th[scope="row"] { background: #edf4fb !important; }
	.apf-x .apf-spec tbody td { text-align: center !important; }
	.apf-x .apf-spec thead th:not(:first-child) { text-align: center !important; }
	.apf-x .apf-spec thead th .apf-x-dev { justify-content: center; }
	.apf-x .apf-spec tbody td + td { border-left: 1px solid var(--x-line, #e3e8ee) !important; }
	.apf-x .apf-spec td .apf-spec__rate { max-width: 300px; margin: 0 auto; }
	.apf-x .apf-spec td.other-features, .apf-x .apf-spec td.best-suited-for { text-align: center !important; }
	.apf-x .apf-spec td.other-features span, .apf-x .apf-spec td.best-suited-for .best-for-item { margin: 3px; }
	.apf-x .apf-spec .apf-spec__yes { justify-content: center; }
	.apf-x .apf-spec .apf-spec__buy td .apf-amazon { margin: 0 auto; }
	.apf-x .apf-spec .apf-spec__buy .apf-deal__timewrap { justify-content: center; }
}
.apf-x .apf-spec .apf-spec__group th { border-left: 3px solid rgba(145, 217, 45, .9) !important; background: #f4faee !important; color: #3d5a1c !important; }
@media (max-width: 760px) {
	.apf-x .apf-x-tablewrap .apf-spec td.other-features span, .apf-x .apf-x-tablewrap .apf-spec td.best-suited-for .best-for-item { margin: 0 5px 5px 0; padding: 3px 9px; font-size: 13px; }
}


/* Compare specs: text values centred; chips start at the top left; every cell starts at the top of its row;
   price buttons centred and on the same line with or without a price */
.apf-x .apf-spec tbody td { vertical-align: top !important; }
.apf-x .apf-spec td.other-features, .apf-x .apf-spec td.best-suited-for { text-align: left !important; }
.apf-x .apf-spec td.other-features span, .apf-x .apf-spec td.best-suited-for .best-for-item { margin: 0 6px 6px 0 !important; }
.apf-x .apf-spec .apf-spec__buy td { text-align: center !important; }
.apf-x .apf-spec .apf-spec__buy td > .apf-amazon { display: flex; width: 100%; max-width: 260px; margin: 0 auto !important; }
.apf-x .apf-spec .apf-spec__buy td > .apf-deal__timewrap { display: flex; justify-content: center; margin-top: 6px; }
@media (max-width: 760px) {
	.apf-x .apf-x-tablewrap .apf-spec tr { align-items: start; }
	.apf-x .apf-x-tablewrap .apf-spec tbody td { text-align: left !important; }
	.apf-x .apf-x-tablewrap .apf-spec .apf-spec__buy td > .apf-amazon { max-width: none; }
}


/* Compare: plugin PM1 chart, full width with a title and a short explanation */
.apf-cmp-pm1plugin__head { margin-bottom: 16px; }
.apf-cmp-pm1plugin__head .apf-section__title { margin-bottom: 6px !important; }
.apf-cmp-pm1plugin .apf-cmp-pm1plugin__text { max-width: none; margin: 0 !important; color: var(--apf-muted, #5f6c79); font-size: 15.5px; line-height: 1.6; }
.apf-cmp-pm1plugin .pm1c-card { width: 100% !important; max-width: none !important; margin: 0 !important; }
@media (max-width: 760px) {
	.apf-cmp-pm1plugin .apf-cmp-pm1plugin__text { font-size: 14.5px; }
}


/* Compare: simple verdict (our pick + three categories) */
.apf-cmp-cats { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.apf-cmp-cat { display: flex; flex-direction: column; gap: 6px; padding: 16px 18px; border: 1px solid var(--apf-line, #dbe3ea); border-top: 4px solid var(--apf-c, #9aa5b1); border-radius: 10px; background: #fff; }
.apf-cmp-cat.is-tie { border-top-color: #c3ccd5; }
.apf-cmp .apf-cmp-cat p, .apf-cmp-cat p { margin: 0 !important; }
.apf-cmp-cat__title { display: flex; align-items: center; gap: 8px; color: var(--apf-muted, #5f6c79); font-size: 13px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.apf-cmp-cat__title .apf-icon { width: 18px; height: 18px; color: var(--apf-c, #5f6c79); }
.apf-cmp-cat__win { display: flex; align-items: center; gap: 8px; color: var(--apf-ink, #16212c); font-size: 18px; font-weight: 800; line-height: 1.3; }
.apf-cmp-cat__win i { flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--apf-c); }
.apf-cmp-cat.is-tie .apf-cmp-cat__win { color: var(--apf-muted, #5f6c79); font-size: 16px; }
.apf-cmp-cat__fact { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; color: var(--apf-muted, #5f6c79); font-size: 14px; }
.apf-cmp-cat__fact b { padding: 2px 8px; border-radius: 6px; background: #f1f4f7; color: #4a5868; font-variant-numeric: tabular-nums; }
.apf-cmp-cat__fact b.is-win { background: #e9f6df; color: #2f6f1a; }
.apf-cmp-cat__fact em { font-size: 12.5px; font-style: normal; font-weight: 700; }
.apf-cmp-cat__fact small { flex-basis: 100%; font-size: 12.5px; }
@media (max-width: 760px) {
	.apf-cmp-cats { grid-template-columns: 1fr; }
}


/* Compare: plugin PM1 chart legend on phones, compact chips side by side (up to four devices) */
@media (max-width: 760px) {
	.apf-cmp-pm1plugin .pm1c-legend { display: flex !important; flex-direction: row !important; flex-wrap: wrap; gap: 6px !important; width: 100%; }
	.apf-cmp-pm1plugin .pm1c-legend .pm1c-tag { margin: 0 !important; padding: 5px 10px !important; font-size: 13px !important; line-height: 1.3; }
	.apf-cmp-pm1plugin .pm1c-legend .pm1c-lswatch { width: 16px !important; margin-right: 6px !important; }
}


/* Compare verdict cards: a colour dot shows which device each number belongs to */
.apf-cmp-cat__fact b { display: inline-flex; align-items: center; gap: 6px; }
.apf-cmp-cat__fact b i { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--apf-c, #9aa5b1); }


/* Compare: per-speed tables, minimal card style */
.apf-x-speeds { gap: 14px; }
.apf-x-speed { overflow: hidden; border: 1px solid var(--x-line, #e3e8ee); border-top: 3px solid var(--apf-c, #9aa5b1); border-radius: 10px; background: #fff; }
.apf-x .apf-x-speed .apf-x-speed__name { margin: 0 !important; padding: 10px 14px !important; border-bottom: 1px solid var(--x-line, #e3e8ee); font-size: 14.5px; }
.apf-x-speed table { table-layout: fixed; }
.apf-x-speed th, .apf-x-speed td { padding: 8px 14px !important; border-bottom: 1px solid #eef2f6 !important; }
.apf-x-speed th:first-child, .apf-x-speed td:first-child { width: 40%; padding-left: 14px !important; }
.apf-x-speed thead th { background: #f5f9fd !important; color: #4a6178; font-size: 11px; }
.apf-x-speed tbody tr:nth-child(even) > * { background: #fafcfe !important; }
.apf-x-speed tbody tr:last-child > * { border-bottom: 0 !important; }
.apf-x-speed tbody th { color: #2c3e50; font-weight: 600; }
.apf-x-speed tbody td { color: var(--x-ink, #16212c); }
.apf-x-speed .apf-x-speed__none { margin: 0 !important; padding: 12px 14px !important; }
@media (max-width: 760px) {
	.apf-x-speed th, .apf-x-speed td { padding: 7px 8px !important; }
	.apf-x-speed th:first-child, .apf-x-speed td:first-child { width: 38%; padding-left: 10px !important; }
	.apf-x .apf-x-speed .apf-x-speed__name { padding: 9px 10px !important; }
}
.apf-x-speeds { align-items: start; }


/* Compare ranges on touch screens: tap the track, a popup shows the nearest fan speed (compare.js) */
.apf-rng { position: relative; }
.apf-rng__pop { position: absolute; z-index: 5; max-width: calc(100% - 16px); padding: 7px 11px; border-radius: 8px; background: var(--apf-navy, #173d5c); box-shadow: 0 8px 20px rgba(15, 42, 64, .28); color: #fff; font-size: 13px; font-weight: 700; line-height: 1.35; white-space: nowrap; pointer-events: none; animation: apf-rng-pop .14s ease; }
.apf-rng__pop[hidden] { display: none; }
.apf-rng__pop i { position: absolute; top: 100%; width: 0; height: 0; margin-left: -6px; border: 6px solid transparent; border-top-color: var(--apf-navy, #173d5c); }
@keyframes apf-rng-pop { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
@media not all and (hover: hover) and (pointer: fine) {
	.apf-rng__track { cursor: pointer; -webkit-tap-highlight-color: transparent; }
	.apf-rng__dot { transition: transform .12s ease; }
	.apf-rng__dot.is-active { z-index: 3; transform: translateY(-50%) scale(1.35); box-shadow: 0 0 0 4px rgba(23, 61, 92, .15); }
}

/* Compare ranges: hover a dot (desktop) to see the fan speed and its value */
@media (hover: hover) and (pointer: fine) {
	.apf-rng__dot { cursor: default; transition: transform .12s ease; }
	.apf-rng__dot::before { content: ""; position: absolute; inset: -8px; border-radius: 50%; }
	.apf-rng__dot:hover { z-index: 3; transform: translateY(-50%) scale(1.25); }
	.apf-rng__dot::after { content: attr(data-tip); position: absolute; bottom: calc(100% + 10px); left: 50%; padding: 5px 9px; border-radius: 6px; background: var(--apf-navy, #173d5c); box-shadow: 0 6px 16px rgba(15, 42, 64, .25); color: #fff; font-size: 12px; font-weight: 700; line-height: 1.3; white-space: nowrap; opacity: 0; visibility: hidden; transform: translateX(-50%) translateY(4px) scale(.8); transform-origin: bottom center; transition: opacity .12s ease, transform .12s ease; pointer-events: none; }
	.apf-rng__dot.is-left::after { left: -6px; transform: translateY(4px) scale(.8); transform-origin: bottom left; }
	.apf-rng__dot.is-right::after { right: -6px; left: auto; transform: translateY(4px) scale(.8); transform-origin: bottom right; }
	.apf-rng__dot:hover::after { opacity: 1; visibility: visible; transform: translateX(-50%) scale(.8); }
	.apf-rng__dot.is-left:hover::after, .apf-rng__dot.is-right:hover::after { transform: scale(.8); }
}


/* Compare specs (desktop): chips centred horizontally, still at the top of the cell */
@media (min-width: 761px) {
	.apf-x .apf-spec td.other-features, .apf-x .apf-spec td.best-suited-for { text-align: center !important; vertical-align: top !important; }
	.apf-x .apf-spec td.other-features span, .apf-x .apf-spec td.best-suited-for .best-for-item { margin: 0 3px 6px !important; }
}


/* Compare specs: colours as in the owner's mock-up (navy top line and group rows, light-blue labels) */
.apf-x-card--specs { border-top: 4px solid #1a5882 !important; }
.apf-x .apf-x-card--specs .apf-spec .apf-spec__group th { border-left: 0 !important; background: #1a5882 !important; color: #fff !important; font-size: 12.5px; letter-spacing: .1em; }
.apf-x .apf-x-card--specs .apf-spec tbody th[scope="row"] { background: #f3f8fc !important; color: #1f3b55 !important; }
@media (min-width: 761px) {
	.apf-x .apf-x-card--specs .apf-spec td .apf-spec__rate { max-width: none; margin: 0; }
	.apf-x .apf-x-card--specs .apf-spec tbody td { padding-left: 22px !important; padding-right: 22px !important; }
}
@media (max-width: 760px) {
	.apf-x .apf-x-card--specs .apf-x-tablewrap .apf-spec tr.apf-spec__group { background: #1a5882 !important; }
	.apf-x .apf-x-card--specs .apf-x-tablewrap .apf-spec tr.apf-spec__group th { color: #fff !important; }
	.apf-x .apf-x-card--specs .apf-x-tablewrap .apf-spec tbody th[scope="row"] { background: none !important; }
}


/* Compare: the same navy top line on every card */
.apf-x .apf-x-card, .apf-cmp-pm1plugin .pm1c-card { border-top: 4px solid #1a5882 !important; }

/* Compare: "Our pick" banner (navy, stands out above the category cards) */
.apf-cmp-pick { display: flex; align-items: center; gap: 20px; margin: 16px 0 20px; padding: 20px 24px; border-radius: 10px; border-left: 6px solid #f5b400; background: linear-gradient(120deg, #123f66 0%, #1a5882 100%); color: #dbe8f3; box-shadow: 0 6px 20px rgba(18, 63, 102, .18); }
.apf-cmp-pick p, .apf-cmp .apf-cmp-pick p { margin: 0 !important; }
.apf-cmp-pick__img { flex: none; display: block; width: 150px; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 8px; background: #fff; box-shadow: 0 0 0 2px rgba(255, 255, 255, .85); }
.apf-cmp-pick__img img { display: block; width: 100% !important; height: 100% !important; max-width: none; object-fit: cover; }
.apf-cmp-pick__body { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.apf-cmp-pick__eyebrow { display: inline-flex; align-items: center; gap: 7px; color: #ffd257; font-size: 12.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.apf-cmp-pick__eyebrow .apf-icon { width: 18px; height: 18px; color: #ffd257; }
.apf-cmp-pick__name { color: #fff; font-size: 26px; font-weight: 800; line-height: 1.2; }
.apf-cmp-pick__text { color: #dbe8f3; font-size: 15.5px; line-height: 1.55; }
.apf-cmp-pick__cta { flex: none; display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 210px; }
.apf-cmp-pick__cta .apf-amazon { width: 100%; min-height: 48px; font-size: 15.5px; }
.apf-cmp-pick__cta .apf-deal__time, .apf-cmp-pick__cta .apf-deal__time .apf-icon { color: #c9dbea !important; }
@media (max-width: 760px) {
	.apf-cmp-pick { flex-wrap: wrap; gap: 14px; padding: 16px; border-left-width: 0; border-top: 5px solid #f5b400; }
	.apf-cmp-pick__img { width: 104px; }
	.apf-cmp-pick__body { flex: 1 1 180px; }
	.apf-cmp-pick__name { font-size: 21px; }
	.apf-cmp-pick__text { flex-basis: 100%; font-size: 15px; }
	.apf-cmp-pick__cta { flex-basis: 100%; min-width: 0; }
}

/* Home buying guides on phones: photo on top, like the other card sections. */
@media (max-width: 640px) {
	.apf-guides__list .apf-row-card { grid-template-columns: 1fr !important; }
	.apf-guides__list .apf-row-card__media { position: relative; display: block; width: 100%; aspect-ratio: 1200 / 770; }
	.apf-guides__list .apf-row-card__media img { width: 100%; height: 100%; object-fit: cover; }
	.apf-guides__list .apf-row-card .apf-row-card__body { padding: 16px 18px 18px !important; }
	.apf-guides__list .apf-row-card__title { font-size: 19px; }
}

/* Home blog head on phones: left aligned like every other section head. */
@media (max-width: 760px) {
	.apf-blog .apf-section__head { align-items: flex-start; text-align: left; }
}

/* "Price as of" trigger on dark backgrounds (Our pick banner, or any .apf-on-dark wrapper):
   a light translucent pill instead of the pale blue one, so the text stays readable. */
.apf-cmp-pick .apf-deal__time:hover,
.apf-cmp-pick .apf-deal__time:focus-visible,
.apf-cmp-pick .apf-deal__time[aria-expanded="true"],
.apf-on-dark .apf-deal__time:hover,
.apf-on-dark .apf-deal__time[aria-expanded="true"],
.apf-on-dark .prices-updated:hover { background: rgba(255, 255, 255, .14) !important; color: #fff !important; opacity: 1; }
.apf-cmp-pick .apf-deal__time:hover .apf-icon,
.apf-cmp-pick .apf-deal__time[aria-expanded="true"] .apf-icon,
.apf-on-dark .apf-deal__time:hover .apf-icon,
.apf-on-dark .apf-deal__time[aria-expanded="true"] .apf-icon { color: #fff !important; }
.apf-cmp-pick .apf-deal__time:focus-visible { outline-color: #ffd257; }

/* Compare specs on phones: one sticky row with the device names instead of the name in every cell */
@media (max-width: 760px) {
	.apf-x .apf-x-card--specs { overflow: clip; }
	.apf-x .apf-x-tablewrap .apf-spec thead { display: block !important; position: sticky; top: var(--apf-spec-head-top, 0px); z-index: 15; background: #f3f8fc; border-bottom: 1px solid #cfe1f1; transition: background-color .2s ease, box-shadow .2s ease; }
	.apf-x .apf-x-tablewrap .apf-spec thead tr { border-top: 0; padding: 10px 16px; }
	.apf-x .apf-x-tablewrap .apf-spec thead th:first-child { display: none !important; }
	.apf-x .apf-x-tablewrap .apf-spec thead th { grid-column: auto !important; min-width: 0; color: var(--x-ink, #16212c) !important; font-size: 13.5px; line-height: 1.3; }
	.apf-x .apf-x-tablewrap .apf-spec thead .apf-x-dev { display: flex; align-items: flex-start; gap: 7px; font-weight: 800; overflow-wrap: anywhere; }
	.apf-x .apf-x-tablewrap .apf-spec thead .apf-x-dev i { flex: none; width: 10px; height: 10px; margin-top: 4px; border-radius: 50%; background: var(--apf-c); box-shadow: 0 0 0 2px #fff; }
	.apf-x .apf-x-tablewrap .apf-spec thead.is-stuck { background: #1a5882; border-bottom-color: #1a5882; box-shadow: 0 6px 14px rgba(15, 42, 64, .22); }
	.apf-x .apf-x-tablewrap .apf-spec thead.is-stuck th { color: #fff !important; }
	/* Cells: no name and no dot; the column order matches the sticky names row above. */
	.apf-x .apf-x-tablewrap .apf-spec td::before { content: none !important; display: none !important; }
	.apf-x .apf-x-tablewrap .apf-spec tr > td { position: relative !important; }
}

/* Up to 1000px the logo row is sticky too: the compare jump links stick below logo row + disclosure. */
@media (max-width: 1000px) {
	.apf-cmp-jump { top: calc(var(--apf-header-h, 72px) + var(--apf-sticky-h, 0px) + 6px) !important; }
	.apf-cmp-section { scroll-margin-top: calc(var(--apf-header-h, 72px) + var(--apf-sticky-h, 0px) + 72px); }
}
@media (max-width: 760px) {
	.apf-x .apf-x-tablewrap .apf-spec thead.is-stuck th, .apf-x .apf-x-tablewrap .apf-spec thead.is-stuck .apf-x-dev { color: #fff !important; }
}

/* Compare test results on phones: same sticky device row as the spec table, no name in every cell */
@media (max-width: 760px) {
	.apf-x .apf-x-card:has(.apf-res) { overflow: clip; }
	.apf-res__row--head { display: grid !important; position: sticky; top: var(--apf-spec-head-top, 0px); z-index: 15; padding: 10px 16px !important; border-bottom: 1px solid #cfe1f1; background: #f3f8fc; transition: background-color .2s ease, box-shadow .2s ease; }
	.apf-res__row--head > .apf-res__label { display: none; }
	.apf-res__row--head .apf-res__head { min-width: 0; }
	.apf-res__row--head .apf-x-dev { display: flex; align-items: flex-start; gap: 7px; color: var(--x-ink, #16212c); font-size: 13.5px; font-weight: 800; line-height: 1.3; overflow-wrap: anywhere; }
	.apf-res__row--head .apf-x-dev i { flex: none; width: 10px; height: 10px; margin-top: 4px; border-radius: 50%; background: var(--apf-c); box-shadow: 0 0 0 2px #fff; }
	.apf-res__row--head .apf-res__cover { padding-left: 17px; color: var(--x-muted, #6b7785); font-size: 11.5px; }
	.apf-res__row--head.is-stuck { background: #1a5882; border-bottom-color: #1a5882; box-shadow: 0 6px 14px rgba(15, 42, 64, .22); }
	.apf-res__row--head.is-stuck .apf-x-dev { color: #fff !important; }
	.apf-res__row--head.is-stuck .apf-res__cover { display: none; }
	.apf-res__dev { display: none !important; }
}

/* Comment text formatting: links, bold, lists, quotes and code like the article text */
.apf-comment__text a, .apf-comment__text a:visited { color: #1a6fb0; font-weight: 700; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; transition: color .15s ease, text-decoration-color .15s ease; }
.apf-comment__text a:hover, .apf-comment__text a:focus-visible { color: var(--apf-navy, #16324f); text-decoration-thickness: 2px; }
.apf-comment__text strong, .apf-comment__text b { color: var(--apf-ink, #16212c); font-weight: 700; }
.apf-comment__text em, .apf-comment__text i { font-style: italic; }
.apf-comment__text ul, .apf-comment__text ol { margin: 4px 0 12px !important; padding: 0 0 0 22px !important; }
.apf-comment__text ul { list-style: disc !important; }
.apf-comment__text ol { list-style: decimal !important; }
.apf-comment__text li { display: list-item; margin: 0 0 6px !important; padding: 0 !important; list-style: inherit !important; }
.apf-comment__text li::before { content: none !important; }
.apf-comment__text li::marker { color: #1a5882; font-weight: 700; }
.apf-comment__text blockquote { margin: 6px 0 12px !important; padding: 8px 14px !important; border-left: 3px solid #3498db; border-radius: 0 6px 6px 0; background: #f3f8fc; color: var(--apf-text); font-size: 15px; font-style: normal; }
.apf-comment__text blockquote p:last-child { margin-bottom: 0 !important; }
.apf-comment__text code { padding: 1px 6px; border-radius: 4px; background: #eef2f6; font-size: .9em; }
.apf-comment__text img { max-width: 100%; height: auto; border-radius: 6px; }
.apf-comment__text blockquote, .apf-comment__text blockquote p { font-family: var(--apf-font) !important; font-size: 15px !important; line-height: 1.6 !important; font-style: normal !important; }
.apf-comment__text blockquote::before, .apf-comment__text blockquote::after { content: none !important; display: none !important; }

/* Tooltips: more air between the heading, the score rows and the text */
.apf-ftip__inner { padding: 14px 16px; }
.apf-ftip p, .apf-ftip li { margin-bottom: 8px !important; line-height: 1.55 !important; }
.apf-ftip .popup-heading { margin-bottom: 10px !important; font-size: 13.5px !important; line-height: 1.35 !important; }
.apf-ftip .popup-scores { gap: 8px; margin: 0 0 12px !important; padding-bottom: 12px; border-bottom: 1px solid rgba(255, 255, 255, .16); }
.apf-ftip .popup-scores:last-child { margin-bottom: 0 !important; padding-bottom: 0; border-bottom: 0; }
.apf-ftip .popup-scores p { gap: 10px; margin: 0 !important; line-height: 1.35 !important; }
.apf-ftip .popup-scores span { min-width: 40px; padding: 3px 8px; font-variant-numeric: tabular-nums; }

/* About / Testing number strips: as many columns as numbers (the counts come from the plugins) */
.apf-pg ul.apf-pg-stats.apf-pg-stats--5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.apf-pg ul.apf-pg-stats.apf-pg-stats--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.apf-pg ul.apf-pg-stats.apf-pg-stats--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
/* Long numbers (7,000,000+) shrink to fit their column instead of running out of it. */
.apf-pg .apf-pg-stats li { container-type: inline-size; }
.apf-pg .apf-pg-stats strong { white-space: nowrap; }
/* 7,000,000+ where it fits, 7M+ in a narrow box (apf_number_html()). */
.apf-pg-stats strong span, .apf-yt__stats strong span { color: inherit; font: inherit; letter-spacing: inherit; }
.apf-num__short { display: none; }
@container (max-width: 125px) {
	.apf-pg .apf-pg-stats strong { font-size: 24px; }
}
@container (max-width: 186px) {
	.apf-num__long { display: none; }
	.apf-num__short, .apf-num__short[hidden] { display: inline; }
}
.apf-pg ul.apf-pg-stats--testing { margin-bottom: 28px !important; }
@media (max-width: 1000px) {
	.apf-pg ul.apf-pg-stats.apf-pg-stats--5 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
	.apf-pg ul.apf-pg-stats.apf-pg-stats--5, .apf-pg ul.apf-pg-stats.apf-pg-stats--4, .apf-pg ul.apf-pg-stats.apf-pg-stats--3:not(.apf-pg-stats--yt) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.apf-pg ul.apf-pg-stats:not(.apf-pg-stats--yt) li:nth-child(odd):last-child { grid-column: 1 / -1; }
}
/* Small phones: the YouTube numbers in two columns, total views on its own row below. */
@media (max-width: 480px) {
	.apf-pg ul.apf-pg-stats.apf-pg-stats--yt { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.apf-pg ul.apf-pg-stats--yt li:nth-child(3) { grid-column: 1 / -1; border-top: 1px solid var(--pg-line); border-left: 0; }
}

/* Deal box in articles: the price link is light (not bold); "Price as of" sits on its own line at the bottom */
.deal-box-in-content .deal-box-in-content-wrap p a, .deal-box-in-content .deal-box-in-content-wrap p u { font-weight: 400 !important; }
.deal-box-in-content .deal-box-in-content-wrap { display: grid !important; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 2px 14px !important; }
.deal-box-in-content .deal-box-in-content-wrap img { grid-row: 1; grid-column: 1; margin: 0 !important; }
.deal-box-in-content .deal-box-in-content-wrap p { grid-row: 1; grid-column: 2; order: 0 !important; width: auto !important; margin: 0 !important; padding: 0 !important; }
.deal-box-in-content .prices-updated.deal-box-in-content-p { grid-row: 2; grid-column: 1 / -1; justify-self: end; margin: 0 -8px -6px 0 !important; white-space: nowrap; }
@media (max-width: 760px) {
	.deal-box-in-content .prices-updated.deal-box-in-content-p { justify-self: start; margin: 4px 0 -4px -8px !important; }
}
/* Deal box: product name and price in the same colour */
.deal-box-in-content .deal-box-in-content-wrap p, .deal-box-in-content .deal-box-in-content-wrap p a, .deal-box-in-content .deal-box-in-content-wrap p u { color: var(--apf-ink, #16212c) !important; }

/* Verdict / rating boxes: the price block is the bottom of the same card, not a separate rounded card */
.our-verdict-box .cta-box.deal-cta, .device-rating-box .cta-box.deal-cta { margin: 0 !important; border: 0 !important; border-top: 1px solid var(--apf-line, #e3e8ee) !important; border-radius: 0 !important; box-shadow: none !important; }
.our-verdict-box, .device-rating-box { border-radius: 10px !important; }

/* Author box: room above and below the name */
.apf-author-box .apf-author-box__name { margin: 10px 0 16px !important; }
.apf-author-box .apf-author-box__name a, .apf-author-box .apf-author-box__name .fn { float: none !important; display: inline !important; }

/* Article CTA box under a product box (buying guides): it is the bottom of the box above it,
   so the same shadow, no own border, square top corners; the top line in the dark site blue. */
.cta-box.deal-cta:not(.comparison-cta) { border: 0 !important; border-radius: 0 0 4px 4px !important; box-shadow: 0 0 10px 0 rgba(0, 0, 0, .12) !important; }
.cta-box.deal-cta.deal-blue-border:not(.comparison-cta) { border-top: 4px solid #1a5882 !important; }
.our-verdict-box .cta-box.deal-cta, .device-rating-box .cta-box.deal-cta { box-shadow: none !important; border-top: 1px solid var(--apf-line, #e3e8ee) !important; border-radius: 0 !important; }
.our-verdict-box .cta-box.deal-cta.deal-blue-border, .device-rating-box .cta-box.deal-cta.deal-blue-border { border-top: 4px solid #1a5882 !important; }

/* Compare specs on phones with 3-4 devices: one column per device, the table scrolls sideways.
   The row labels stay in place; the names row (a copy made by compare.js) moves with the columns. */
.apf-spec-xhead, .apf-spec-xhint { display: none; }
@media (max-width: 760px) {
	.apf-x .apf-x-card--specs.is-xscroll .apf-x-tablewrap { overflow-x: auto !important; overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch; }
	.apf-x .apf-x-card--specs.is-xscroll .apf-spec, .apf-x .apf-x-card--specs.is-xscroll .apf-spec tbody { width: max-content !important; min-width: 100% !important; }
	.apf-x .apf-x-card--specs.is-xscroll .apf-spec thead { display: none !important; }
	.apf-x .apf-x-card--specs.is-xscroll .apf-spec tbody tr:not(.apf-spec__group) { grid-template-columns: repeat(var(--apf-n, 3), 160px) !important; }
	.apf-x .apf-x-card--specs.is-xscroll .apf-spec tbody tr > th[scope="row"],
	.apf-x .apf-x-card--specs.is-xscroll .apf-spec tr.apf-spec__group th { position: sticky !important; left: 16px; display: block; width: calc(var(--apf-xw, 100vw) - 32px) !important; justify-self: start; }
	.apf-x .apf-x-card--specs.is-xscroll .apf-spec tr.apf-spec__group { width: 100%; }
	.apf-spec-xhint { display: block; margin: 0 !important; padding: 8px 16px 0; color: var(--x-muted, #6b7785); font-size: 12.5px; font-weight: 600; transition: opacity .3s ease; }
	.apf-spec-xhint.is-done { opacity: .45; }
	.apf-spec-xhead { display: block; position: sticky; top: var(--apf-spec-head-top, 0px); z-index: 15; overflow: hidden; margin-top: 8px; padding: 10px 0; border-bottom: 1px solid #cfe1f1; background: #f3f8fc; transition: background-color .2s ease, box-shadow .2s ease; }
	.apf-spec-xhead__track { display: grid; grid-template-columns: repeat(var(--apf-n, 3), 160px); gap: 14px; width: max-content; padding: 0 16px; will-change: transform; }
	.apf-spec-xhead__cell { min-width: 0; color: var(--x-ink, #16212c); font-size: 13.5px; line-height: 1.3; }
	.apf-spec-xhead .apf-x-dev { display: flex; align-items: flex-start; gap: 7px; font-weight: 800; overflow-wrap: anywhere; }
	.apf-spec-xhead .apf-x-dev i { flex: none; width: 10px; height: 10px; margin-top: 4px; border-radius: 50%; background: var(--apf-c); box-shadow: 0 0 0 2px #fff; }
	.apf-spec-xhead.is-stuck { background: #1a5882; border-bottom-color: #1a5882; box-shadow: 0 6px 14px rgba(15, 42, 64, .22); }
	.apf-spec-xhead.is-stuck .apf-x-dev { color: #fff; }
}

/* Compare picker: searchable device list (compare.js) */
.apf-cb { position: relative; width: 100%; min-width: 0; }
.apf-cb__btn { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 48px; margin: 0; padding: 6px 12px 6px 8px; border: 1px solid var(--apf-line, #d5dde5); border-radius: 6px; background: #fff; color: var(--apf-ink, #16212c); font: inherit; font-size: 15px; font-weight: 600; line-height: 1.25; text-align: left; cursor: pointer; transition: border-color .15s ease, box-shadow .15s ease; }
.apf-cb__btn:hover { border-color: #9fb6cb; }
.apf-cb__btn:focus-visible, .apf-cb.is-open .apf-cb__btn { border-color: #1a5882; outline: 0; box-shadow: 0 0 0 3px rgba(26, 88, 130, .16); }
.apf-cb__btn .apf-cb__name { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.apf-cb__btn .apf-cb__name.is-empty { padding-left: 4px; color: var(--apf-muted, #6b7785); font-weight: 500; }
.apf-cb__caret { flex: none; width: 10px; height: 10px; margin-left: 2px; border-right: 2px solid #4a5868; border-bottom: 2px solid #4a5868; transform: translateY(-3px) rotate(45deg); transition: transform .15s ease; }
.apf-cb.is-open .apf-cb__caret { transform: translateY(2px) rotate(-135deg); }
.apf-cb__img { flex: none; display: block; width: 36px; height: 36px; overflow: hidden; border-radius: 5px; background: #f1f4f7; }
.apf-cb__img img { display: block; width: 100% !important; height: 100% !important; object-fit: cover; }
.apf-cb .apf-rating.apf-cb__rate { flex: none; padding: 2px 6px; font-size: 13px; line-height: 1.3; }
.apf-cb__pop { position: absolute; top: calc(100% + 6px); left: 0; z-index: 60; width: max(100%, 320px); max-width: calc(100vw - 24px); overflow: hidden; border: 1px solid #cfdbe6; border-radius: 8px; background: #fff; box-shadow: 0 14px 34px rgba(15, 42, 64, .18); }
.apf-cmp-picker__slot:nth-child(n+4) .apf-cb__pop { right: 0; left: auto; }
.apf-cb__pop[hidden] { display: none; }
.apf-cb__search { display: block; width: 100%; margin: 0; padding: 12px 14px 12px 38px; border: 0; border-bottom: 1px solid var(--apf-line, #e3e8ee); border-radius: 0; background: #f7fafc url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b7785' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E") 13px 50% / 17px no-repeat; color: var(--apf-ink, #16212c); font: inherit; font-size: 16px; outline: 0; box-shadow: none; }
.apf-cb__search:focus { background-color: #fff; }
.apf-cb__list { max-height: min(340px, 55vh); margin: 0 !important; padding: 4px 0 !important; overflow-y: auto; list-style: none; overscroll-behavior: contain; }
.apf-cb__list li { margin: 0 !important; list-style: none; }
.apf-cb__list li::before { content: none !important; }
.apf-cb__head { padding: 10px 14px 4px !important; color: var(--apf-muted, #6b7785); font-size: 11.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.apf-cb__opt { display: flex; align-items: center; gap: 10px; padding: 7px 12px !important; color: var(--apf-ink, #16212c); font-size: 14.5px; font-weight: 600; line-height: 1.3; cursor: pointer; }
.apf-cb__opt .apf-cb__name { flex: 1 1 auto; min-width: 0; }
.apf-cb__opt .apf-cb__name small { display: block; margin-top: 2px; color: var(--apf-muted, #6b7785); font-size: 12px; font-weight: 500; }
.apf-cb__opt.is-active { background: #eaf3fb; }
.apf-cb__opt[aria-selected="true"] { box-shadow: inset 3px 0 0 #1a5882; }
.apf-cb__opt.is-taken { cursor: not-allowed; opacity: .5; }
.apf-cb__opt.is-taken.is-active { background: none; }
.apf-cb__opt.is-clear { color: #a22d1a; font-size: 13.5px; font-weight: 700; }
.apf-cb__none { padding: 14px !important; color: var(--apf-muted, #6b7785); font-size: 14px; }
@media (hover: hover) {
	.apf-cb__opt:not(.is-taken):hover { background: #f3f8fc; }
}
@media (max-width: 760px) {
	.apf-cb__pop { width: 100%; max-width: none; }
	.apf-cmp-picker__slot:nth-child(n+4) .apf-cb__pop { right: auto; left: 0; }
	.apf-cb__list { max-height: min(300px, 48vh); }
}
@media (min-width: 761px) and (max-width: 1000px) {
	.apf-cmp-picker__slot .apf-cb__pop { right: auto; left: 0; }
	.apf-cmp-picker__slot:nth-child(odd) .apf-cb__pop { right: 0; left: auto; }
}
/* Picker button: long names wrap to two lines instead of being cut */
.apf-cb__btn .apf-cb__name { display: -webkit-box; overflow: hidden; white-space: normal; text-overflow: clip; -webkit-line-clamp: 2; -webkit-box-orient: vertical; font-size: 14.5px; line-height: 1.25; }

/* About: the numbers strip sits close to the next section (no double section padding) */
.apf-pg-sec--stats { padding-bottom: 0 !important; }
.apf-pg-sec--stats + .apf-pg-sec { padding-top: 48px; }
@media (max-width: 760px) {
	.apf-pg-sec--stats + .apf-pg-sec { padding-top: 32px; }
}
/* Picker button: the same fixed height empty or with a device (photo, two-line name, rating) */
.apf-cb__btn { height: 52px; min-height: 52px; padding-top: 0; padding-bottom: 0; }
.apf-cb__btn .apf-cb__name { font-size: 14px; line-height: 1.2; }
.apf-cb__btn .apf-cb__name.is-empty { font-size: 15px; }
.apf-cb__btn .apf-cb__img { width: 38px; height: 38px; }
.apf-cmp-picker__slot > span { min-height: 22px; line-height: 22px; }
.apf-cmp-picker__slot > span small { line-height: 22px; }

/* Compare: section heads above the cards (eyebrow, title, short text), like "Time to PM1 zero" */
.apf-cmp-shead { margin-bottom: 16px; }
.apf-cmp-shead .apf-section__title { margin-bottom: 6px !important; }
.apf-cmp-shead .apf-cmp-shead__text { max-width: none; margin: 0 !important; color: var(--apf-muted, #5f6c79); font-size: 15.5px; line-height: 1.6; }
.apf-x-chart .apf-x-card__head { align-items: center; }
@media (max-width: 760px) {
	.apf-cmp-shead .apf-cmp-shead__text { font-size: 14.5px; }
}
/* Sticky device names rows: every name starts at the top, also when another name wraps to two lines */
@media (max-width: 760px) {
	.apf-res__row--head, .apf-x .apf-x-tablewrap .apf-spec thead tr, .apf-spec-xhead__track { align-items: start !important; }
	.apf-res__row--head .apf-res__head { align-self: start !important; justify-content: flex-start; }
}

/* Brand assets page: logos to download, badges with embed code, guidelines */
.apf-brand-logo { display: flex; flex-direction: column; min-width: 0; overflow: hidden; border: 1px solid var(--pg-line, #e3e8ee); border-radius: 12px; background: #fff; box-shadow: 0 1px 2px rgba(16, 24, 40, .04); }
.apf-brand-logo__preview { display: block; line-height: 0; border-bottom: 1px solid var(--pg-line, #e3e8ee); }
.apf-brand-logo__preview.is-dark { background: #000; }
.apf-brand-logo__preview img { display: block; width: 100%; height: auto; aspect-ratio: 1024 / 538; object-fit: cover; }
.apf-brand-logo__body { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 20px; padding: 18px 22px 20px; }
.apf-brand-logo__body h3, .apf-brand-badge h3 { margin: 0 0 4px !important; padding: 0 !important; color: var(--apf-ink, #16212c); font-size: 18px; font-weight: 800; line-height: 1.3; text-transform: none; }
.apf-brand-logo__body h3::before, .apf-brand-logo__body h3::after, .apf-brand-badge h3::before, .apf-brand-badge h3::after { content: none !important; }
.apf-brand-logo__body p { margin: 0 !important; color: var(--apf-muted, #5f6c79); font-size: 14.5px; line-height: 1.5; }
.apf-brand-logo__body .apf-button, .apf-brand-badge .apf-button { display: inline-flex; align-items: center; gap: 8px; }
.apf-brand-logo__body .apf-icon { width: 18px; height: 18px; }
.apf-brand-badges { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.apf-brand-badge { display: flex; flex-direction: column; gap: 12px; min-width: 0; padding: 20px; border: 1px solid var(--pg-line, #e3e8ee); border-radius: 12px; background: #fff; box-shadow: 0 1px 2px rgba(16, 24, 40, .04); }
.apf-brand-badge__preview { display: grid; place-items: center; min-height: 170px; padding: 16px; border-radius: 8px; background: #f3f8fc; }
.apf-brand-badge__preview img { display: block; max-width: 100%; max-height: 140px; width: auto; height: auto; }
.apf-brand-badge h3 { margin: 4px 0 0 !important; }
.apf-brand-badge__code { display: block; width: 100%; min-height: 0; margin: 0; padding: 10px 12px; border: 1px solid var(--pg-line, #e3e8ee); border-radius: 6px; background: #f7f9fb; color: #4a5868; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12px; line-height: 1.5; resize: none; overflow: auto; white-space: pre-wrap; word-break: break-all; }
.apf-brand-badge__code:focus { border-color: #1a5882; outline: 0; box-shadow: 0 0 0 3px rgba(26, 88, 130, .14); }
.apf-brand-badge__actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; margin-top: auto; }
.apf-brand-badge__actions .apf-button.is-copied { background: #2f6f1a; border-color: #2f6f1a; }
.apf-brand-badge__dl { color: var(--apf-blue-700, #1a5882); font-size: 14.5px; font-weight: 700; text-decoration: none; }
.apf-brand-badge__dl:hover { text-decoration: underline; }
.apf-brand-rules { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 0 !important; padding: 0 !important; list-style: none; }
.apf-brand-rules li { display: flex; gap: 12px; margin: 0 !important; padding: 20px !important; border: 1px solid var(--pg-line, #e3e8ee); border-radius: 12px; background: #fff; color: var(--apf-text, #34424f); font-size: 15px; line-height: 1.6; list-style: none; }
.apf-brand-rules li::before { content: none !important; }
.apf-brand-rules .apf-icon { flex: none; width: 22px; height: 22px; padding: 3px; border-radius: 50%; background: #e9f6df; color: #2f6f1a; }
.apf-brand-rules strong { display: block; margin-bottom: 2px; color: var(--apf-ink, #16212c); }
@media (max-width: 900px) {
	.apf-brand-rules { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
	.apf-brand-logo__body { padding: 16px; }
	.apf-brand-logo__body .apf-button, .apf-brand-badge__actions .apf-button { width: 100%; justify-content: center; }
	.apf-brand-badges { grid-template-columns: 1fr; }
	.apf-brand-badge { padding: 16px; }
}

/* Rating colours: the same three colours as the scores in the reviews (plugin headings):
   green rgb(145 217 45), orange #ff7033, red #c9322b. */
:root { --apf-score-green: #91d92d; --apf-score-orange: #ff7033; --apf-score-red: #c9322b; }
/* Filled score on photo cards (home, archives), like an opened review score. */
.apf-score--green { background: var(--apf-score-green) !important; color: #fff !important; }
.apf-score--orange { background: var(--apf-score-orange) !important; color: #fff !important; }
.apf-score--red { background: var(--apf-score-red) !important; color: #fff !important; }
/* Outlined rating pills (deals, quiz, TRDB, widgets, compare picker), like the review heading score. */
.apf-rating--green { border-color: var(--apf-score-green) !important; background: #fff !important; color: var(--apf-score-green) !important; }
.apf-rating--orange { border-color: var(--apf-score-orange) !important; background: #fff !important; color: var(--apf-score-orange) !important; }
.apf-rating--red { border-color: var(--apf-score-red) !important; background: #fff !important; color: var(--apf-score-red) !important; }
.apf-rating { border-width: 2px !important; }
.apf-rating small { color: inherit; opacity: .85; }
/* Score summary in the tooltips. */
.apf-ftip .popup-scores span { background: var(--apf-score-green) !important; }
.apf-ftip .popup-scores span.score-orange { background: var(--apf-score-orange) !important; }
.apf-ftip .popup-scores span.score-red { background: var(--apf-score-red) !important; }

/* Deal box: one slim row again. "Price as of" stays at the bottom, but on the right of the same row
   (not a row of its own); on phones it goes under the text. */
@media (min-width: 761px) {
	.deal-box-in-content .deal-box-in-content-wrap { grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; }
	.deal-box-in-content .prices-updated.deal-box-in-content-p { grid-row: 1; grid-column: 3; align-self: end; justify-self: end; margin: 0 -8px -8px 8px !important; }
}

/* "Short on time" picks (buying guides): the chips share the class name with the Test Results Database
   shortlist chips (which leave room for a remove button on the right); give them even padding. */
.apf-hurry .apf-chip { display: inline-block; max-width: 100%; padding: 4px 12px; white-space: normal; line-height: 1.4; }

/* "Top 5 best ..." widget (.widget_best, written in a Custom HTML widget): ranked list in the
   site style: every number in the same round badge, so all names start on one line. */
.widget_best .widget_best-wrap { display: flex; flex-direction: column; gap: 0; font-size: 15px; counter-reset: none; }
.widget_best .widget_best-wrap a { position: relative; display: grid !important; grid-template-columns: 30px minmax(0, 1fr) 16px; align-items: center; gap: 12px; margin: 0 !important; padding: 11px 6px 11px 4px !important; border-radius: 0 !important; border-bottom: 1px solid var(--apf-line, #e3e8ee); background: transparent !important; color: var(--apf-ink, #16212c) !important; font-weight: 600; line-height: 1.35; text-decoration: none !important; transition: background-color .15s ease, color .15s ease; }
.widget_best .widget_best-wrap a:last-child { border-bottom: 0; }
.widget_best .widget_best-wrap a::after { content: ""; width: 8px; height: 8px; border-top: 2px solid #9fb2c4; border-right: 2px solid #9fb2c4; transform: rotate(45deg); justify-self: center; transition: border-color .15s ease, transform .15s ease; }
.widget_best .widget_best-wrap a span { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; margin: 0 !important; padding: 0 !important; border-radius: 50%; background: #eaf3fb !important; color: #1a5882; font-size: 14px; font-weight: 800; line-height: 1; }
.widget_best .widget_best-wrap a:first-child span { background: var(--apf-score-green, #91d92d) !important; color: #16212c; }
.widget_best .widget_best-wrap a:hover { background: #f3f8fc !important; color: #1a5882 !important; }
.widget_best .widget_best-wrap a:hover::after { border-color: #1a5882; transform: translateX(2px) rotate(45deg); }
.widget_best .widget_best-wrap a:focus-visible { outline: 2px solid var(--apf-brand, #3498db); outline-offset: -2px; }
.widget .widget.widget_best, .textwidget > .widget_best { margin: 0 !important; padding: 0 !important; border: 0 !important; background: none !important; box-shadow: none !important; }
/* Compare picker: the Compare button as tall as the device fields, on the same line */
.apf-cmp-picker .apf-cmp-picker__body > .apf-button { height: 44px; min-height: 44px; align-self: end; padding-top: 0; padding-bottom: 0; }
/* Device fields 44px high, like the Compare button and the other fields on the site */
.apf-cb__btn { height: 44px; min-height: 44px; gap: 8px; padding: 0 10px 0 6px; }
.apf-cb__btn .apf-cb__img { width: 32px; height: 32px; border-radius: 4px; }
.apf-cb__btn .apf-cb__name { font-size: 13.5px; line-height: 1.15; }
.apf-cb__btn .apf-cb__name.is-empty { font-size: 15px; }
.apf-cb__btn .apf-rating.apf-cb__rate { padding: 1px 5px; font-size: 12px; }
/* Footer: "Cookie settings" (APF Cookie Consent plugin) after the legal links, same look */
.apf-footer__legal .apf-footer__cookie { color: #fff; font-size: 14.5px; font-weight: inherit; text-decoration: none; }
.apf-footer__legal .apf-footer__cookie::before { content: "\b7"; display: inline-block; margin: 0 8px 0 0; color: rgba(255, 255, 255, .6); }
.apf-footer__legal .apf-footer__cookie:hover { text-decoration: underline; }
/* Compare spec table (desktop, tablet): narrower label column, so 3-4 devices get wider columns and buttons */
@media (min-width: 761px) {
	.apf-x .apf-spec tr > :first-child { width: 22%; }
	.apf-x .apf-spec--n3 tr > :first-child { width: 18%; }
	.apf-x .apf-spec--n4 tr > :first-child { width: 15%; }
	.apf-x .apf-spec--n4 tr > th:first-child { padding-left: 20px !important; }
}
@media (min-width: 761px) {
	.apf-x .apf-spec .apf-spec__buy td > .apf-amazon { max-width: none; padding: 0 10px; gap: 5px; font-size: 14px; white-space: nowrap; }
	.apf-x .apf-spec .apf-spec__buy td > .apf-amazon del { font-size: 12.5px; }
}
/* Local profile photos (functions/avatars.php): never stretched */
img.avatar { object-fit: cover; }
/* Spec card: the title moved above the card, so the table starts right under the card top (no white strip) */
.apf-x .apf-x-card--specs > .apf-x-tablewrap:first-child, .apf-x .apf-x-card--specs > .apf-spec-xhead + .apf-x-tablewrap { margin-top: 0 !important; }
@media (max-width: 760px) {
	.apf-spec-xhead { margin-top: 0 !important; }
	.apf-spec-xhint { padding: 8px 16px; background: #fff; }
}

/* Device type tabs (TRDB, compare picker, deals) on very narrow phones: one tab per row, so long names
   like "Air quality monitors" stay on one line. The active tab is marked on the left. */
@media (max-width: 420px) {
	.apf-trdb__types { grid-auto-flow: row !important; grid-template-columns: 1fr !important; }
	.apf-trdb__type { justify-content: flex-start; min-height: 44px; padding: 0 14px; border-bottom: 0 !important; text-align: left; }
	.apf-trdb__type + .apf-trdb__type { border-left: 0 !important; border-top: 1px solid var(--apf-line); }
	.apf-trdb__type.is-active, .apf-trdb__type[aria-selected="true"], .apf-trdb__type[aria-pressed="true"] { box-shadow: inset 4px 0 0 var(--apf-brand, #3498db); }
	.apf-trdb__type > :last-child:not(.apf-icon):not(:only-child) { margin-left: auto; }
}
/* Compare empty state: space between the text and the button */
.apf-cmp-empty p { margin: 0 !important; }
.apf-cmp-empty p + p { margin-top: 22px !important; }


/* Compare: quiet "Share this comparison" button (link style, muted; turns green after copying) */
.apf-cmp-share { display: flex; justify-content: flex-end; margin: -6px 0 10px; }
.apf-cmp-share__btn { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; margin: 0; padding: 4px 10px; border: 1px solid transparent; border-radius: 999px; background: none; color: var(--apf-muted, #5f6c79); font: inherit; font-size: 13.5px; font-weight: 600; cursor: pointer; transition: color .15s ease, background-color .15s ease, border-color .15s ease; }
.apf-cmp-share__btn .apf-icon { width: 16px; height: 16px; }
.apf-cmp-share__btn:hover { border-color: #d6e2ec; background: #f3f8fc; color: #1a5882; }
.apf-cmp-share__btn:focus-visible { outline: 2px solid var(--apf-brand, #3498db); outline-offset: 2px; }
.apf-cmp-share__btn.is-done { border-color: #bfe3b0; background: #eef8e7; color: #2f6f1a; }

/* Compare: remove button, SVG icon centred */
.apf-cmp-head__remove { padding: 0; font-size: 0; }
.apf-cmp-head__remove svg { display: block; width: 16px; height: 16px; stroke-width: 2.2; }

/* Home hero: larger author photo with a white ring */
.apf-hero__author { gap: 14px; font-size: 14px; }
.apf-hero__author img { flex: none; width: 56px; height: 56px !important; aspect-ratio: 1; border: 3px solid #fff; border-radius: 50%; box-shadow: 0 2px 8px rgba(15, 42, 64, .14); object-fit: cover; }
.apf-hero__author strong { font-size: 15px; }

/* Revision history: ". Revision history (N)" next to the date; the list opens on click as a small
   popover over the text, so the header never grows */
.apf-revlog__sep { margin: 0 6px; color: var(--apf-muted); font-weight: 400; }
.apf-revlog { position: relative; display: inline-block; margin: 0; font-size: inherit; font-weight: 400; vertical-align: baseline; }
.apf-revlog__toggle { display: inline-flex; align-items: center; gap: 3px; color: var(--apf-muted); line-height: inherit; cursor: pointer; list-style: none; }
.apf-revlog__toggle::-webkit-details-marker { display: none; }
.apf-revlog__toggle::marker { content: ""; }
.apf-revlog__toggle:hover span:first-child { color: var(--apf-blue); text-decoration: underline; text-underline-offset: 2px; }
.apf-revlog__toggle:focus-visible { outline: none; border-radius: 3px; box-shadow: var(--apf-focus); }
.apf-revlog__count { color: var(--apf-muted); }
.apf-revlog__count::before { content: "("; }
.apf-revlog__count::after { content: ")"; }
.apf-revlog__chev { width: 12px !important; height: 12px !important; transition: transform .15s ease; }
.apf-revlog[open] .apf-revlog__chev { transform: rotate(180deg); }
.apf-revlog__pop { position: absolute; z-index: 40; top: calc(100% + 8px); left: 0; width: min(600px, calc(100vw - 32px)); overflow: hidden; border: 1px solid var(--apf-line); border-radius: var(--apf-radius-lg); background: var(--apf-white); box-shadow: 0 12px 30px rgba(15, 42, 64, .16); }
.apf-revlog__list { position: relative; max-height: min(360px, 60vh); margin: 0 !important; padding: 14px 18px 6px 34px !important; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: var(--apf-line) transparent; list-style: none !important; }
.apf-revlog__list { background: linear-gradient(var(--apf-line), var(--apf-line)) no-repeat 20px 22px / 1px calc(100% - 40px); background-attachment: local; }
.apf-revlog__item[hidden] { display: none !important; }
.apf-revlog__all { display: block; width: 100%; margin: 0; padding: 10px 18px; border: 0; border-top: 1px solid var(--apf-line-soft); background: var(--apf-bg-soft); color: var(--apf-blue); font: inherit; font-size: 13.5px; font-weight: 700; text-align: left; cursor: pointer; }
.apf-revlog__all:hover { background: var(--apf-bg-tint); text-decoration: underline; }
.apf-revlog__item { position: relative; display: block; margin: 0 0 10px !important; padding: 0 !important; color: var(--apf-text); font-size: 14px; font-weight: 400; line-height: 1.45; }
.apf-revlog__item::before { content: ""; position: absolute; top: 6px; left: -17px; width: 7px; height: 7px; border-radius: 50%; background: var(--apf-line); }
.apf-revlog__item.is-latest::before { background: var(--apf-blue); }
.apf-revlog__item time { display: block; color: var(--apf-muted); font-size: 12.5px; font-weight: 600; }
@media (max-width: 600px) {
	.apf-revlog__sep { display: none; }
	.apf-revlog { display: block; margin: 4px 0 8px; }
	.apf-revlog__list { max-height: 55vh; }
}

/* Avatars always round (never stretched by a non-square 2x image) */
img.avatar { aspect-ratio: 1 / 1; object-fit: cover; }

/* Air quality tool (page-aqi.php) */
.apf-aqi__search { position: relative; }
.apf-aqi__search .apf-hero__search-field { width: 100%; }
.apf-aqi__results { position: absolute; z-index: 30; top: calc(100% + 6px); right: 0; left: 0; margin: 0; padding: 6px; border: 1px solid var(--apf-line); border-radius: var(--apf-radius-lg); background: var(--apf-white); box-shadow: 0 12px 30px rgba(15, 42, 64, .16); list-style: none; }
.apf-aqi__results li { margin: 0; padding: 9px 12px; border-radius: var(--apf-radius); color: var(--apf-ink); cursor: pointer; }
.apf-aqi__results li.is-active, .apf-aqi__results li:hover { background: var(--apf-bg-soft); color: var(--apf-blue); }
.apf-aqi__results .apf-aqi__none { color: var(--apf-muted); cursor: default; }
.apf-aqi__locate { display: inline-flex; align-items: center; gap: 8px; margin-top: 12px; }
.apf-aqi__locate .apf-icon { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.apf-aqi__cities { display: flex; flex-wrap: wrap; gap: 8px; }
.apf-aqi__city { padding: 8px 14px; border: 1px solid var(--apf-line); border-radius: 999px; background: var(--apf-white); color: var(--apf-navy); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; transition: border-color .15s ease, background-color .15s ease; }
.apf-aqi__city:hover { border-color: var(--apf-blue); }
.apf-aqi__city.is-active { border-color: var(--apf-navy); background: var(--apf-navy); color: #fff; }
.apf-aqi__levels { margin: 0 !important; padding: 0 !important; overflow: hidden; border: 1px solid var(--apf-line); border-radius: var(--apf-radius-lg); background: var(--apf-white); list-style: none !important; }
.apf-aqi__levels li { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 14px; align-items: center; margin: 0 !important; padding: 10px 14px; border-top: 1px solid var(--apf-line-soft); color: var(--apf-text); font-size: 15px; line-height: 1.35; }
.apf-aqi__levels li:first-child { border-top: 0; }
.apf-aqi__levels li:nth-child(even) { background: var(--apf-bg-soft); }
.apf-aqi__levels strong { justify-self: start; min-width: 82px; padding: 4px 10px; border-radius: 999px; background: var(--c); color: var(--t, #16212c); font-size: 13px; font-weight: 800; font-variant-numeric: tabular-nums; text-align: center; white-space: nowrap; }
.apf-aqi__hero { border-bottom-color: var(--aqi) !important; }
.apf-aqi__hero .apf-calc__hero-unit { display: inline-block; margin-left: 10px; padding: 3px 10px; border-radius: 999px; background: var(--aqi); color: #16212c; font-size: 15px; font-weight: 700; vertical-align: middle; }
.apf-aqi__scale { position: relative; height: 10px; margin: 4px 0 22px; border-radius: 999px; background: linear-gradient(90deg, #00c853 0 16.6%, #ffd600 16.6% 33.3%, #ff9100 33.3% 50%, #e53935 50% 66.6%, #8e24aa 66.6% 100%); }
.apf-aqi__marker { position: absolute; top: 50%; width: 20px; height: 20px; border: 3px solid #fff; border-radius: 50%; box-shadow: 0 1px 4px rgba(15, 42, 64, .35); transform: translate(-50%, -50%); transition: left .4s ease; }
.apf-calc__panel.is-loading { opacity: .6; transition: opacity .2s; }
.apf-aqi__list { display: grid; gap: 12px; margin: 0 !important; padding: 0 !important; list-style: none !important; }
.apf-aqi__pick { display: grid; grid-template-columns: 34px 72px minmax(0, 1fr) auto; gap: 14px; align-items: center; margin: 0 !important; padding: 12px 16px; border: 1px solid var(--apf-line); border-radius: var(--apf-radius-lg); background: var(--apf-white); }
.apf-aqi__rank { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--apf-bg-tint); color: var(--apf-navy); font-weight: 800; }
.apf-aqi__pick img { width: 72px; height: 72px; object-fit: contain; }
.apf-aqi__pick-body a { color: var(--apf-ink); text-decoration: none; }
.apf-aqi__pick-body a:hover { color: var(--apf-blue); }
.apf-aqi__pick-body small { display: block; color: var(--apf-muted); font-size: 14px; }
.apf-aqi__pick-link { color: var(--apf-blue); font-weight: 700; white-space: nowrap; }
@media (max-width: 600px) {
	.apf-aqi__pick { grid-template-columns: 30px 56px minmax(0, 1fr); }
	.apf-aqi__pick img { width: 56px; height: 56px; }
	.apf-aqi__pick-link { grid-column: 3; }
}
.apf-aqi__search .apf-hero__search-field { display: flex; align-items: center; gap: 10px; width: 100%; max-width: none; min-height: 50px; padding: 0 14px; border: 1px solid var(--apf-line); border-radius: var(--apf-radius-lg); background: var(--apf-white); box-shadow: none; }
.apf-aqi__search .apf-hero__search-field:focus-within { border-color: var(--apf-blue); box-shadow: var(--apf-focus); }
.apf-aqi__search .apf-hero__search-field input { flex: 1 1 auto; width: auto; min-width: 0; height: 48px; margin: 0; padding: 0; border: 0 !important; background: transparent; box-shadow: none !important; color: var(--apf-ink); font-size: 16px; outline: none; }
.apf-aqi__search .apf-hero__search-field .apf-icon { flex: none; width: 18px; height: 18px; color: var(--apf-muted); }

@media (max-width: 900px) {
	.apf-aqi .apf-calc__panel { order: -1; }
}
.apf-aqi__picks { margin-top: 44px; padding-top: 32px; border-top: 1px solid var(--apf-line); }
.apf-aqi__picks .apf-section__lead { margin: 10px 0 0 !important; }
.apf-aqi__picks .apf-aqi__list { margin-top: 22px !important; }
@media (max-width: 900px) {
	.apf-aqi__picks { margin-top: 30px; }
}
.apf-aqi__noimg { display: block; width: 72px; height: 72px; border-radius: var(--apf-radius); background: var(--apf-bg-soft); }
@media (max-width: 600px) {
	.apf-aqi__noimg { width: 56px; height: 56px; }
}
/* Air quality: columns may shrink below the input's natural width (320px phones) */
.apf-aqi .apf-calc__card, .apf-aqi .apf-calc__step { grid-template-columns: minmax(0, 1fr); }
.apf-aqi__search .apf-hero__search-field input { flex: 1 1 0; width: 100%; }
@media (max-width: 900px) {
	.apf-aqi .apf-calc { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 380px) {
	.apf-aqi__levels li { grid-template-columns: 88px minmax(0, 1fr); gap: 10px; padding: 9px 10px; font-size: 14px; }
	.apf-aqi__levels strong { min-width: 76px; padding: 4px 8px; }
	.apf-aqi__city { padding: 7px 12px; font-size: 13.5px; }
}
@media (max-width: 420px) {
	.apf-aqi__hero .apf-calc__hero-value { display: flex; flex-wrap: wrap; align-items: center; column-gap: 10px; row-gap: 6px; }
	.apf-aqi__hero .apf-calc__hero-unit { margin-left: 0; padding: 3px 10px; border-radius: 12px; font-size: 13px; line-height: 1.3; }
	.apf-aqi .apf-calc__bar-label { font-size: 13px; white-space: nowrap; }
}
.apf-aqi .apf-calc__bar { grid-template-columns: 78px minmax(0, 1fr) 40px; }
.apf-revlog__all[hidden] { display: none; }

/* Admin bar on the site: the old global "img { height: auto !important }" undid WordPress' 16px,
   so the local 150px profile photo showed at full size. */
#wpadminbar #wp-admin-bar-my-account.with-avatar > a img.avatar,
#wpadminbar #wp-admin-bar-my-account.with-avatar > .ab-empty-item img.avatar { width: 16px !important; height: 16px !important; max-width: none; }
#wpadminbar #wp-admin-bar-user-info img.avatar { width: 64px !important; height: 64px !important; max-width: none; float: none; }

/* Legal pages (page-legal.php): Privacy Policy, Disclaimer and Disclosure. Readable column, no sidebar. */
.apf-legal { max-width: 780px; color: var(--apf-text); font-family: var(--apf-font); }
.apf-legal__content { font-size: 17px; line-height: 1.75; }
.apf-legal__content > * { margin-top: 0; }
.apf-legal__content p { margin: 0 0 18px !important; }
.apf-legal__content h2 { margin: 44px 0 14px !important; padding: 0 !important; border: 0 !important; background: none !important; color: var(--apf-ink); font-size: 26px; font-weight: 800; letter-spacing: -.02em; line-height: 1.25; text-align: left; text-transform: none; }
.apf-legal__content h2::before, .apf-legal__content h2::after, .apf-legal__content h3::before, .apf-legal__content h3::after { content: none !important; display: none !important; }
.apf-legal__content > h2:first-child { margin-top: 0 !important; }
.apf-legal__content h3 { margin: 28px 0 8px !important; padding: 0 !important; border: 0 !important; background: none !important; color: var(--apf-ink); font-size: 19px; font-weight: 700; line-height: 1.35; text-transform: none; }
.apf-legal__content ul, .apf-legal__content ol { margin: 0 0 20px !important; padding-left: 22px !important; }
.apf-legal__content li { margin: 0 0 8px !important; }
.apf-legal__content ul li { list-style: disc; }
.apf-legal__content ol li { list-style: decimal; }
.apf-legal__content a { color: var(--apf-blue); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.apf-legal__content a:hover { color: var(--apf-navy); }
.apf-legal__content strong { color: var(--apf-ink); }
.apf-legal__content hr, .apf-legal__content .wp-block-separator { margin: 40px 0 18px !important; border: 0 !important; border-top: 1px solid var(--apf-line) !important; background: none !important; opacity: 1; }
.apf-legal__content hr + p em, .apf-legal__content .wp-block-separator + p em { color: var(--apf-muted); font-size: 15px; }
.apf-legal__content .apf-consent-policy { margin: 6px 0 28px; }
.apf-legal__content :target { scroll-margin-top: calc(var(--apf-sticky-h) + 20px); }
@media (max-width: 600px) {
	.apf-legal__content { font-size: 16px; line-height: 1.7; }
	.apf-legal__content h2 { margin-top: 34px !important; font-size: 22px; }
	.apf-legal__content h3 { font-size: 18px; }
}
.apf-legal__content .apf-consent-policy__actions { margin-top: 16px !important; }
