/* WP Feint theme v2.6: comparison pages (inc/comparison.php). Layout = the article grid of site.css
   (.article-layout + .article-aside); this file adds the two-level table of contents, the related comparisons,
   the content components (.wpm-picks, .wpm-entry, .wpm-decide, .wpm-pillars, .wpm-method) and denser tables
   so that a 4 to 6 column comparison table fits the reading column from 1024px without scrolling. */

/* ------------------------------------------------------------------ Layout */
.cmp-layout { padding-top: 34px; }
.cmp-layout .entry-content > * { max-width: none; }
.cmp-layout .entry-content > .alignwide, .cmp-layout .entry-content > .alignfull { max-width: none; margin-left: 0; margin-right: 0; }

/* Collapsible summary: chevron (open on large screens, closed under 960px by site.js). */
.toc-cmp summary::after { content: ""; width: 18px; height: 18px; flex: none; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231765f4' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") center / 18px no-repeat; transition: transform .2s ease; }
.toc-cmp details[open] > summary::after { transform: rotate(180deg); }

/* Table of contents: H2 numbered (no inner scrollbar: the sidebar adapts, assets/js/site.js); at depth 3
   (filter "wpm_toc_depth") the product entries are indented under their section. */
.toc-cmp ol ol { margin: 0 0 4px 22px; padding: 0; list-style: none; display: grid; gap: 0; border-left: 2px solid #e6eefb; }
.toc-cmp ol ol a { font-size: .8rem; padding: 3px 8px; color: #4d6080; }
.toc-cmp ol ol a::before { content: none; }
.toc-cmp ol ol a.is-active { box-shadow: inset 2px 0 0 var(--blue); border-radius: 0 6px 6px 0; margin-left: -2px; }

/* ------------------------------------------------------------------ "Our picks at a glance" */
.entry-content .wpm-picks {
	position: relative; margin: 0 0 2.2rem; padding: 22px 24px 20px; border-radius: 16px;
	background: linear-gradient(135deg, #f3f7ff 0%, #ffffff 70%); border: 1px solid #d9e5fb;
	box-shadow: 0 10px 28px rgba(19, 54, 110, .06);
}
.entry-content .wpm-picks::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 4px; border-radius: 16px 0 0 16px; background: linear-gradient(180deg, var(--blue), var(--blue2)); }
.entry-content .wpm-picks > h2 { margin: 0 0 4px; font-size: 1.3rem; }
.entry-content .wpm-picks > p { margin: 0 0 12px; color: var(--muted); font-size: .92rem; }
.entry-content ul.wpm-picks-list { list-style: none; margin: 12px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.entry-content ul.wpm-picks-list > li {
	margin: 0; padding: 12px 14px; border-radius: 12px; background: #fff; border: 1px solid var(--edge);
	display: grid; gap: 2px; font-size: .9rem; line-height: 1.45; color: #3f5373;
}
.wpm-picks-for { display: block; font-size: .7rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
.entry-content .wpm-picks-list a { font-weight: 800; font-size: 1.02rem; color: var(--ink); text-decoration: none; }
.entry-content .wpm-picks-list a:hover { color: var(--blue); text-decoration: underline; }
.entry-content .wpm-picks-list a::after { content: " \2192"; color: var(--blue); }

/* ------------------------------------------------------------------ Product entry */
.entry-content .wpm-entry {
	position: relative; margin: 2.4rem 0; padding: 0 0 6px; border: 1px solid #dbe5f4; border-radius: 18px; background: #fff;
	box-shadow: 0 1px 2px rgba(16, 36, 73, .04), 0 14px 34px rgba(19, 54, 110, .07); overflow: hidden;
}
.entry-content .wpm-entry > * { margin-left: 24px; margin-right: 24px; }
.entry-content .wpm-entry > p { margin-top: .9rem; margin-bottom: 0; }
.entry-content .wpm-entry > .wp-block-list:not(.wpm-entry-facts) { margin-top: .9rem; }

/* Head: thumbnail + identity on a tinted band. */
.entry-content .wpm-entry-head {
	margin: 0; display: grid; grid-template-columns: 216px minmax(0, 1fr); gap: 22px; align-items: center;
	padding: 20px 24px; background: linear-gradient(135deg, #f4f8ff 0%, #fbfcff 100%); border-bottom: 1px solid #e3ebf7;
}
.entry-content .wpm-entry-head:not(:has(.wpm-entry-thumb)) { grid-template-columns: minmax(0, 1fr); }
.entry-content .wpm-entry-thumb { margin: 0; border-radius: 12px; overflow: hidden; background: #fff; border: 1px solid #d9e3f2; box-shadow: 0 6px 16px rgba(19, 54, 110, .1); aspect-ratio: 16 / 10; }
.entry-content .wpm-entry-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.entry-content .wpm-entry-thumb.is-logo { aspect-ratio: auto; width: 96px; height: 96px; padding: 14px; display: grid; place-items: center; }
.entry-content .wpm-entry-head:has(.wpm-entry-thumb.is-logo) { grid-template-columns: 96px minmax(0, 1fr); }
.entry-content .wpm-entry-thumb.is-logo img { object-fit: contain; }
.wpm-thumb-btn { all: unset; display: block; width: 100%; height: 100%; cursor: zoom-in; position: relative; }
.wpm-thumb-btn:focus-visible { box-shadow: var(--focus); border-radius: 12px; }
.wpm-thumb-btn::after { content: ""; position: absolute; right: 8px; bottom: 8px; width: 26px; height: 26px; border-radius: 8px; background: rgba(16, 36, 73, .72) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.4' stroke-linecap='round'%3E%3Ccircle cx='10.5' cy='10.5' r='6'/%3E%3Cpath d='M15 15l5 5M10.5 8v5M8 10.5h5'/%3E%3C/svg%3E") center / 16px no-repeat; opacity: .85; }
.entry-content .wpm-entry-id > * { margin: 0; }
.entry-content .wpm-entry-origin { display: flex; align-items: center; gap: 8px; font-size: .78rem; font-weight: 750; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.entry-content .wpm-entry-origin .flag { width: 21px; height: 14px; }
.entry-content h3.wpm-entry-title { margin: 4px 0 2px; font-size: clamp(1.45rem, 2.2vw, 1.85rem); line-height: 1.15; letter-spacing: -.01em; color: var(--ink); }
.entry-content .wpm-entry-hook { margin-top: 2px; font-size: 1.02rem; line-height: 1.45; color: #3a4f72; font-weight: 550; }
.entry-content .wpm-entry-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }

/* Chips (badges): model, price, best for, warning, publisher disclosure. */
.wpm-chip { display: inline-flex; align-items: center; gap: 6px; border-radius: 100px; padding: 4px 11px; font-size: .76rem; font-weight: 750; line-height: 1.35; background: #eef3fb; color: #2b4470; box-shadow: inset 0 0 0 1px #dbe4f3; }
.wpm-chip::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; opacity: .55; flex: none; }
.wpm-chip.is-model { background: #eaf2ff; color: #1553c7; box-shadow: inset 0 0 0 1px #cfe0fd; }
.wpm-chip.is-price { background: #e9f8f1; color: var(--green-text); box-shadow: inset 0 0 0 1px #c3e9d6; }
.wpm-chip.is-best { background: #fff; color: var(--ink); box-shadow: inset 0 0 0 1px #cdd9ec; }
.wpm-chip.is-warn { background: #fff4e3; color: #8a4b00; box-shadow: inset 0 0 0 1px #f4d6a8; }
.wpm-chip.is-owner { background: #f3efff; color: #4a2fc0; box-shadow: inset 0 0 0 1px #ddd2fd; }

/* Quick facts strip. */
.entry-content ul.wpm-entry-facts {
	list-style: none; margin: 18px 24px 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
	border: 1px solid #e3ebf7; border-radius: 12px; overflow: hidden; background: #e3ebf7; gap: 1px;
}
.entry-content ul.wpm-entry-facts > li { margin: 0; padding: 10px 14px; background: #fbfcff; font-size: .9rem; font-weight: 700; line-height: 1.4; color: var(--ink); }
.entry-content ul.wpm-entry-facts > li > span:first-child { display: block; margin-bottom: 2px; font-size: .68rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }

/* Strengths / limits in two coloured columns. */
.entry-content .wpm-entry-pc { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 18px; }
.entry-content .wpm-entry-pros, .entry-content .wpm-entry-cons { margin: 0; padding: 14px 16px 12px; border-radius: 12px; }
.entry-content .wpm-entry-pros { background: #f1fbf6; border: 1px solid #ccebdc; }
.entry-content .wpm-entry-cons { background: #fff6f4; border: 1px solid #f5d5cf; }
.entry-content .wpm-entry-pc-title { margin: 0 0 6px; font-size: .74rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.entry-content .wpm-entry-pros .wpm-entry-pc-title { color: var(--green-text); }
.entry-content .wpm-entry-cons .wpm-entry-pc-title { color: #a3301f; }
.entry-content .wpm-entry-pc ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.entry-content .wpm-entry-pc li { position: relative; margin: 0; padding-left: 26px; font-size: .9rem; line-height: 1.5; color: #2c3f60; }
.entry-content .wpm-entry-pc li::before { content: ""; position: absolute; left: 0; top: 2px; width: 18px; height: 18px; border-radius: 50%; background-position: center; background-repeat: no-repeat; background-size: 11px; }
.entry-content .wpm-entry-pros li::before { background-color: #d5f2e4; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230b7a52' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E"); }
.entry-content .wpm-entry-cons li::before { background-color: #fbe0db; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b3321f' stroke-width='3.4' stroke-linecap='round'%3E%3Cpath d='M7 7l10 10M17 7L7 17'/%3E%3C/svg%3E"); }

/* Who for / verdict / official site. */
.entry-content .wpm-entry-for { padding: 0; font-size: .95rem; }
.entry-content p.wpm-entry-verdict {
	margin: 16px 24px 18px; padding: 13px 16px 13px 46px; position: relative; border-radius: 12px; background: #f2f6ff; border: 1px solid #d6e3fb; color: #1d3358; font-size: .95rem; line-height: 1.5;
}
.entry-content p.wpm-entry-verdict::before { content: ""; position: absolute; left: 14px; top: 13px; width: 22px; height: 22px; border-radius: 7px; background: var(--blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center / 14px no-repeat; }
.entry-content p.wpm-entry-verdict strong:first-child { color: var(--blue-dark); }
.entry-content .wpm-entry-site { font-size: .86rem; color: var(--muted); }
.entry-content .wpm-entry > :last-child { margin-bottom: 18px; }

/* Ordinary H3 kept between entries (e.g. country groups) and grouped sub-sections. */
.entry-content .wpm-entry + h2, .entry-content .wpm-entry + h3 { margin-top: 2.6rem; }

/* ------------------------------------------------------------------ How to choose */
.entry-content ul.wpm-decide { list-style: none; margin: 1.2rem 0 1.6rem; padding: 0; display: grid; gap: 10px; }
.entry-content ul.wpm-decide > li {
	margin: 0; position: relative; padding: 13px 16px 13px 50px; border: 1px solid var(--edge); border-radius: 12px; background: #fff;
	font-size: .94rem; line-height: 1.5; box-shadow: var(--shadow-sm);
}
.entry-content ul.wpm-decide > li::before { content: ""; position: absolute; left: 14px; top: 14px; width: 24px; height: 24px; border-radius: 8px; background: #eaf2ff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231765f4' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 6l6 6-6 6'/%3E%3C/svg%3E") center / 15px no-repeat; }
.entry-content ul.wpm-decide > li > strong:first-child { color: var(--ink); }

/* ------------------------------------------------------------------ WP Feint pillars */
.entry-content .wpm-pillars { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 1.4rem 0 1.8rem; }
.entry-content .wpm-pillar { margin: 0; padding: 18px 18px 14px; border-radius: 14px; border: 1px solid var(--edge); background: linear-gradient(180deg, #fff 0%, #f8fbff 100%); box-shadow: var(--shadow-sm); }
.entry-content .wpm-pillar > * { margin: 0 0 8px; }
.entry-content .wpm-pillar > :last-child { margin-bottom: 0; }
.entry-content .wpm-pillar h3 { font-size: 1.08rem; display: flex; align-items: center; gap: 10px; }
.entry-content .wpm-pillar h3::before { content: ""; width: 10px; height: 10px; border-radius: 3px; background: linear-gradient(135deg, var(--blue), var(--blue2)); flex: none; }
.entry-content .wpm-pillar p, .entry-content .wpm-pillar li { font-size: .92rem; line-height: 1.55; }

/* ------------------------------------------------------------------ Methodology / disclosure box */
.entry-content .wpm-method { margin: 1.4rem 0 1.8rem; padding: 16px 20px; border-radius: 14px; background: #f8fafd; border: 1px dashed #c9d6ea; font-size: .92rem; }
.entry-content .wpm-method > * { margin: 0 0 8px; }
.entry-content .wpm-method > :last-child { margin-bottom: 0; }
.entry-content .wpm-method p, .entry-content .wpm-method li { font-size: .92rem; line-height: 1.55; color: #33476a; }

/* ------------------------------------------------------------------ Denser tables in the reading column */
.cmp-layout .entry-content figure.wpt table { font-size: .89rem; line-height: 1.5; }
.cmp-layout .entry-content .wpt th, .cmp-layout .entry-content .wpt td { padding: 12px 13px; overflow-wrap: break-word; hyphens: auto; -webkit-hyphens: auto; }
.cmp-layout .entry-content .wpt thead th { padding: 13px 13px 11px; font-size: .68rem; letter-spacing: .06em; }
.cmp-layout .entry-content .wpt tbody th[scope="row"] { min-width: 0; width: 17%; hyphens: manual; -webkit-hyphens: manual; overflow-wrap: normal; }
@media (max-width: 640px) { .cmp-layout .entry-content .wpt.is-stack tbody th[scope="row"] { width: auto; } }
.cmp-layout .entry-content .wpt td .flag { vertical-align: -2px; margin-right: 4px; }
@media (max-width: 1200px) {
	.cmp-layout .entry-content .wpt th, .cmp-layout .entry-content .wpt td { padding: 11px 10px; font-size: .86rem; }
	.cmp-layout .entry-content .wpt thead th { padding: 12px 10px 10px; font-size: .64rem; letter-spacing: .04em; }
}

/* ------------------------------------------------------------------ Related comparisons (after the content) */
.cmp-related { margin: 44px 0 10px; padding-top: 30px; border-top: 1px solid var(--line); }
.cmp-related h2 { margin: 0 0 16px; font-size: 1.35rem; }
.cmp-related-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.cmp-related-card { position: relative; display: flex; gap: 14px; align-items: flex-start; padding: 16px; border: 1px solid var(--edge); border-radius: 14px; background: #fff; box-shadow: var(--shadow-sm); transition: box-shadow .2s ease, transform .2s ease; }
.cmp-related-card:hover { box-shadow: var(--shadow); }
.cmp-related-card:focus-within { box-shadow: var(--focus); }
.cmp-related-card .icon-tile { width: 42px; height: 42px; border-radius: 12px; }
.cmp-related-link { font-weight: 800; color: var(--ink); text-decoration: none; line-height: 1.3; }
.cmp-related-link::after { content: ""; position: absolute; inset: 0; border-radius: 14px; }
.cmp-related-link:focus-visible { outline: none; }
.cmp-related-card p { margin: 4px 0 0; font-size: .85rem; line-height: 1.45; color: var(--muted); }

/* ------------------------------------------------------------------ Screenshot dialog (assets/js/comparison.js) */
.wpm-shot-dialog { padding: 0; border: 0; border-radius: 14px; max-width: min(1200px, calc(100vw - 32px)); max-height: calc(100vh - 32px); background: #fff; box-shadow: 0 30px 80px rgba(8, 20, 45, .45); overflow: auto; }
.wpm-shot-dialog::backdrop { background: rgba(10, 22, 46, .72); }
.wpm-shot-dialog img { display: block; width: 100%; height: auto; }
.wpm-shot-close { position: sticky; top: 10px; float: right; margin: 10px 10px -46px 0; z-index: 2; width: 36px; height: 36px; border-radius: 10px; border: 0; background: rgba(16, 36, 73, .85); color: #fff; font-size: 1.3rem; line-height: 1; cursor: pointer; }
.wpm-shot-close:focus-visible { box-shadow: var(--focus); }

/* ------------------------------------------------------------------ Tablets and phones */
@media (max-width: 960px) {
	.cmp-layout { padding-top: 26px; }
}
@media (max-width: 720px) {
	.entry-content ul.wpm-picks-list, .entry-content .wpm-entry-pc, .entry-content .wpm-pillars, .cmp-related-grid { grid-template-columns: minmax(0, 1fr); }
	.entry-content .wpm-entry-head { grid-template-columns: minmax(0, 1fr); gap: 14px; padding: 16px; }
	.entry-content .wpm-entry-head:has(.wpm-entry-thumb.is-logo) { grid-template-columns: 64px minmax(0, 1fr); }
	.entry-content .wpm-entry-thumb.is-logo { width: 64px; height: 64px; padding: 8px; }
	.entry-content .wpm-entry-thumb:not(.is-logo) { aspect-ratio: 16 / 8; }
	.entry-content .wpm-entry > * { margin-left: 16px; margin-right: 16px; }
	.entry-content ul.wpm-entry-facts { margin: 14px 16px 0; grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.entry-content p.wpm-entry-verdict { margin: 14px 16px 16px; }
	.entry-content .wpm-entry-head { margin: 0; }
	.entry-content .wpm-picks { padding: 18px 16px 16px; }
}

@media (prefers-reduced-motion: reduce) { .cmp-related-card, .cmp-related-card:hover { transition: none; transform: none; } }
@media print {
	.cmp-related, .wpm-thumb-btn::after { display: none; }
	.entry-content .wpm-entry { box-shadow: none; break-inside: avoid-page; }
}
@media (forced-colors: active) { .wpm-chip, .entry-content .wpm-entry, .cmp-related-card { border: 1px solid CanvasText; } }
.entry-content .wpm-entry-origin-extra { margin-left: 4px; padding-left: 10px; border-left: 1px solid #cdd9ec; text-transform: none; letter-spacing: 0; font-weight: 650; }
