/* Security plugins comparison page (inc/compare-plugins.php, content pages/meilleurs-plugins-securite-wordpress).
   Tables (state icons, zebra, row + column highlight, our row tinted, sticky header / first column, cards on
   phones), profile cards with logo and "Best for" box, profile -> recommendation table, protection layers diagram, attack
   animation, in-content table of contents. Tokens from site.css, Pro badge from pro.css. */

.is-compare-plugins { --cp-top: 77px; --cp-tint: #f2f7ff; --cp-hl: #eaf2ff; --cp-zebra: #f8faff; }
.is-compare-plugins.admin-bar { --cp-top: 109px; }
@media (max-width: 960px) { .is-compare-plugins { --cp-top: 67px; } .is-compare-plugins.admin-bar { --cp-top: 99px; } }

/* ------------------------------------------------------------------ 1. In-content table of contents (< 1180px) */
.cp-toc { border: 1px solid var(--edge); border-radius: 14px; background: #fff; box-shadow: var(--shadow-sm); margin: 0 0 2rem; }
.cp-toc summary { cursor: pointer; list-style: none; display: flex; align-items: center; gap: 10px; padding: 14px 18px; font-weight: 800; font-size: .95rem; }
.cp-toc summary::-webkit-details-marker { display: none; }
.cp-toc summary .icon { width: 19px; height: 19px; color: var(--blue); flex: none; }
.cp-toc summary span { flex: 1; }
.cp-toc summary .icon-chevron { transition: transform .2s ease; color: var(--muted); }
.cp-toc details[open] summary .icon-chevron { transform: rotate(180deg); }
.cp-toc ol { list-style: none; margin: 0; padding: 0 12px 12px; display: grid; gap: 2px; counter-reset: cptoc; }
.cp-toc li { counter-increment: cptoc; margin: 0; }
.cp-toc a { display: flex; gap: 8px; font-size: .9rem; line-height: 1.4; color: #3f5373; text-decoration: none; padding: 6px 8px; border-radius: 7px; }
.cp-toc a::before { content: counter(cptoc); color: var(--blue); font-weight: 800; min-width: 1.2em; }
.cp-toc a:hover { color: var(--blue); background: #f2f6ff; }
@media (min-width: 1180px) { .cp-toc { display: none; } }

/* ------------------------------------------------------------------ 2. State key and icons */
.cp-ico { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; flex: none; }
.cp-ico svg { width: 13px; height: 13px; stroke-width: 3.2; }
.cp-ico .icon-partial { width: 15px; height: 15px; }
.cp-ico .icon-limited { width: 15px; height: 15px; }
.is-free > .cp-ico { background: #dff6eb; color: var(--green-text); }
.is-yes > .cp-ico { background: #e3edff; color: #1559d6; }
.is-paid > .cp-ico { background: #fff1d6; color: #b45309; }
.is-limited > .cp-ico { background: #fff1d6; color: #b45309; }
.is-no > .cp-ico { background: #eef1f6; color: #7b879a; }
.is-no > .cp-ico svg { width: 11px; height: 11px; stroke-width: 2.8; }

.entry-content .cp-key { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 18px; padding: 12px 16px; margin: 0 0 1.1rem; background: var(--light); border: 1px solid var(--edge); border-radius: 12px; font-size: .84rem; color: #3a4d6e; }
.entry-content .cp-key li { display: inline-flex; align-items: center; gap: 7px; margin: 0; line-height: 1.3; }
.cp-key b { color: var(--ink); }

/* ------------------------------------------------------------------ 3. Comparison tables */
.entry-content .cp-table-wrap { margin: 0 0 2.2rem; max-width: 100%; }
.entry-content .cp-table { width: 100%; border-collapse: separate; border-spacing: 0; table-layout: fixed; background: #fff; border: 1px solid var(--edge); border-radius: 14px; box-shadow: var(--shadow-sm); font-size: .84rem; margin: 0; }
.entry-content .cp-table caption { caption-side: bottom; text-align: left; font-size: .8rem; color: var(--muted); padding: 10px 2px 0; line-height: 1.5; }
.entry-content .cp-table th, .entry-content .cp-table td {
	border: 0; border-bottom: 1px solid var(--line); padding: 9px 8px; vertical-align: top; text-align: left;
	background: #fff; color: #24395f; font-size: inherit; text-transform: none; letter-spacing: 0; line-height: 1.35;
	transition: background-color .12s ease;
}
.entry-content .cp-table td + td, .entry-content .cp-table th + td { border-left: 1px solid var(--line); }
.entry-content .cp-table thead th {
	position: sticky; top: var(--cp-top); z-index: 3; vertical-align: bottom; padding: 11px 8px 10px;
	background: #f6f9ff; border-bottom: 2px solid var(--edge); color: var(--ink);
	font-size: .8rem; font-weight: 800; letter-spacing: 0; text-transform: none; line-height: 1.25; hyphens: auto;
}
.entry-content .cp-table thead th:first-child { border-top-left-radius: 14px; }
.entry-content .cp-table thead th:last-child { border-top-right-radius: 14px; }
.entry-content .cp-table thead th[data-tip] { cursor: help; }
.entry-content .cp-table thead th[data-tip] > span[aria-hidden] { text-decoration: underline dotted #9fb3d4; text-underline-offset: 3px; }
/* Tooltip with the full criterion (hover or keyboard focus). */
.entry-content .cp-table thead th[data-tip]::after {
	content: attr(data-tip); position: absolute; top: calc(100% + 6px); left: 50%; transform: translateX(-50%); z-index: 6;
	width: max-content; max-width: 220px; padding: 7px 10px; border-radius: 8px; background: var(--ink); color: #fff;
	font-size: .76rem; font-weight: 600; letter-spacing: 0; text-transform: none; line-height: 1.35; white-space: normal;
	box-shadow: 0 8px 22px rgba(16, 36, 73, .22); opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .12s ease;
}
.entry-content .cp-table thead th[data-tip]:last-child::after { left: auto; right: 4px; transform: none; }
.entry-content .cp-table thead th[data-tip]:hover::after, .entry-content .cp-table thead th[data-tip]:focus-visible::after { opacity: 1; visibility: visible; }
.entry-content .cp-table thead th:focus-visible { outline: 2px solid var(--blue); outline-offset: -3px; border-radius: 6px; }

/* Name column */
.entry-content .cp-table .cp-name { font-weight: 750; color: var(--ink); width: 23%; vertical-align: middle; }
.entry-content .cp-table thead .cp-name-h { width: 23%; }
.cp-name a { display: flex; align-items: center; gap: 9px; color: inherit; text-decoration: none; }
.cp-name a:hover span { color: var(--blue); text-decoration: underline; text-underline-offset: 2px; }
.cp-name .cp-logo { width: 26px; height: 26px; border-radius: 6px; flex: none; background: #fff; box-shadow: 0 0 0 1px var(--edge); }
.cp-tags { display: flex; flex-wrap: wrap; gap: 4px; margin: 6px 0 0 35px; }
.entry-content .cp-name .wpm-tag { margin: 0; top: 0; font-size: .6rem; padding: 2px 7px 2px 6px; gap: 4px; }
.entry-content .cp-name .wpm-tag::before { width: 10px; height: 10px; }

/* State cells: icon, short label (visible for Pro / Partial / Not advertised, text alternative otherwise; all
   visible on phones), optional note. */
.cp-table .cp-c { white-space: normal; }
.cp-table .cp-c > .cp-ico { width: 24px; height: 24px; vertical-align: middle; }
.cp-table .cp-c > .cp-ico svg { width: 14px; height: 14px; }
.cp-table .cp-c b { font-weight: 750; font-size: .8rem; line-height: 1.25; hyphens: auto; }
.cp-table .cp-c.has-label b { display: block; margin-top: 4px; }
.cp-table .cp-c small { display: block; font-size: .72rem; color: var(--muted); font-weight: 550; margin-top: 4px; line-height: 1.3; hyphens: auto; }
@media (min-width: 641px) {
	.cp-table .cp-c:not(.has-label) > b { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
}
.is-free > b { color: var(--green-text); }
.is-paid > b, .is-limited > b { color: #8a4b00; }
.is-paid.has-label > b { color: #4a2fc0; }
.is-no > b { color: #5e6e88; font-weight: 650; }
.is-yes > b { color: #1559d6; }

/* Zebra, row hover, column highlight (header hover / focus or any cell hover) */
.entry-content .cp-table tbody tr:nth-child(even) > * { background: var(--cp-zebra); }
.entry-content .cp-table tbody tr:nth-child(even) > th { background: #f7f9fe; }
.entry-content .cp-table tbody tr:hover > * { background: var(--cp-hl); }
.entry-content .cp-table tbody tr:last-child > * { border-bottom: 0; }
.entry-content .cp-table tbody tr:last-child > :first-child { border-bottom-left-radius: 14px; }
.entry-content .cp-table tbody tr:last-child > :last-child { border-bottom-right-radius: 14px; }
.cp-table:has(thead th:nth-child(2):is(:hover, :focus-visible), tbody td:nth-child(2):hover) :is(td, th):nth-child(2),
.cp-table:has(thead th:nth-child(3):is(:hover, :focus-visible), tbody td:nth-child(3):hover) :is(td, th):nth-child(3),
.cp-table:has(thead th:nth-child(4):is(:hover, :focus-visible), tbody td:nth-child(4):hover) :is(td, th):nth-child(4),
.cp-table:has(thead th:nth-child(5):is(:hover, :focus-visible), tbody td:nth-child(5):hover) :is(td, th):nth-child(5),
.cp-table:has(thead th:nth-child(6):is(:hover, :focus-visible), tbody td:nth-child(6):hover) :is(td, th):nth-child(6),
.cp-table:has(thead th:nth-child(7):is(:hover, :focus-visible), tbody td:nth-child(7):hover) :is(td, th):nth-child(7),
.cp-table:has(thead th:nth-child(8):is(:hover, :focus-visible), tbody td:nth-child(8):hover) :is(td, th):nth-child(8) { background: var(--cp-hl); }
.cp-table:has(thead th:nth-child(2):is(:hover, :focus-visible), tbody td:nth-child(2):hover) thead th:nth-child(2),
.cp-table:has(thead th:nth-child(3):is(:hover, :focus-visible), tbody td:nth-child(3):hover) thead th:nth-child(3),
.cp-table:has(thead th:nth-child(4):is(:hover, :focus-visible), tbody td:nth-child(4):hover) thead th:nth-child(4),
.cp-table:has(thead th:nth-child(5):is(:hover, :focus-visible), tbody td:nth-child(5):hover) thead th:nth-child(5),
.cp-table:has(thead th:nth-child(6):is(:hover, :focus-visible), tbody td:nth-child(6):hover) thead th:nth-child(6),
.cp-table:has(thead th:nth-child(7):is(:hover, :focus-visible), tbody td:nth-child(7):hover) thead th:nth-child(7),
.cp-table:has(thead th:nth-child(8):is(:hover, :focus-visible), tbody td:nth-child(8):hover) thead th:nth-child(8) { background: #dce8ff; box-shadow: inset 0 -2px 0 var(--blue); }
/* The cell under the pointer: strongest. */
.entry-content .cp-table tbody td:hover { background: #dce8ff; }

/* Our row: brand tint, blue edge (same wording rules as the others). */
.entry-content .cp-table tbody tr.is-ours > * { background: var(--cp-tint); border-top: 1px solid #cfe0ff; }
.entry-content .cp-table tbody tr.is-ours > :first-child { box-shadow: inset 4px 0 0 var(--blue); }
.entry-content .cp-table tbody tr.is-ours:hover > * { background: #e4eeff; }

/* Prices table: wider text columns */
.cp-table.is-prices .cp-name { width: 24%; }
.cp-table.is-prices td { font-size: .82rem; }
.cp-table.is-prices td strong { color: var(--ink); }
.cp-table.is-prices .cp-col-installs { width: 19%; }
.cp-table.is-prices .cp-col-update { width: 19%; }

.cp-table-note { font-size: .8rem; color: var(--muted); margin: -1.4rem 0 2.2rem; line-height: 1.5; }

/* Tablets: the table keeps its columns, scrolls inside its box with the header row and the name column pinned. */
@media (min-width: 641px) and (max-width: 760px) {
	.entry-content .cp-table-wrap { overflow: auto; max-height: min(78vh, 760px); border-radius: 14px; border: 1px solid var(--edge); -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; }
	.entry-content .cp-table-wrap .cp-table { min-width: 700px; border: 0; border-radius: 0; box-shadow: none; }
	.entry-content .cp-table-wrap .cp-table caption { position: sticky; left: 0; padding: 10px 12px; }
	.entry-content .cp-table thead th { top: 0; }
	.entry-content .cp-table th[scope="row"], .entry-content .cp-table thead th:first-child { position: sticky; left: 0; z-index: 2; box-shadow: 1px 0 0 var(--edge); }
	.entry-content .cp-table thead th:first-child { z-index: 4; }
	.entry-content .cp-table-wrap .cp-table.is-prices { min-width: 660px; }
}

/* Phones: one card per plugin (logo + name, then each criterion with its label). */
@media (max-width: 640px) {
	.entry-content .cp-table, .cp-table tbody, .cp-table tr, .cp-table th, .cp-table td { display: block; }
	.entry-content .cp-table { border: 0; box-shadow: none; background: none; border-radius: 0; }
	.entry-content .cp-table { display: flex; flex-direction: column; }
	.entry-content .cp-table caption { display: block; order: 9; padding: 2px 2px 0; }
	.cp-table .cp-c.has-label b { display: inline; margin: 0 0 0 6px; }
	.cp-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
	.entry-content .cp-table tbody tr { display: grid; grid-template-columns: 1fr 1fr; background: #fff; border: 1px solid var(--edge); border-radius: 14px; box-shadow: var(--shadow-sm); margin: 0 0 12px; overflow: hidden; }
	.cp-table.is-prices tbody tr { grid-template-columns: 1fr; }
	.entry-content .cp-table tbody tr > * { background: #fff; border: 0; border-top: 1px solid var(--line); padding: 9px 12px; }
	.entry-content .cp-table td + td { border-left: 0; }
	.entry-content .cp-table tbody tr > td:nth-of-type(even) { border-left: 1px solid var(--line); }
	.cp-table.is-prices tbody tr > td:nth-of-type(even) { border-left: 0; }
	.entry-content .cp-table tbody tr:nth-child(even) > *, .entry-content .cp-table tbody tr:hover > *, .entry-content .cp-table tbody td:hover { background: #fff; }
	.entry-content .cp-table .cp-name { grid-column: 1 / -1; width: auto; border-top: 0; background: var(--light); padding: 11px 12px; font-size: .95rem; }
	.entry-content .cp-table tbody tr:last-child > :first-child, .entry-content .cp-table tbody tr:last-child > :last-child { border-radius: 0; }
	.cp-name a { flex-wrap: wrap; }
	.cp-name .cp-logo { width: 32px; height: 32px; }
	.cp-tags { margin: 0 0 0 auto; }
	.cp-table td[data-label]::before { content: attr(data-label); display: block; font-size: .66rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
	.entry-content .cp-table tbody tr.is-ours { border-color: #b9d0fb; box-shadow: 0 0 0 1px #b9d0fb, var(--shadow-sm); }
	.entry-content .cp-table tbody tr.is-ours > * { background: #fff; border-top-color: var(--line); }
	.entry-content .cp-table tbody tr.is-ours > .cp-name { background: var(--cp-tint); box-shadow: inset 4px 0 0 var(--blue); }
	/* the odd last criterion spans the card */
	.cp-table:not(.is-prices) tbody tr > td:last-child:nth-of-type(odd) { grid-column: 1 / -1; }
}

/* ------------------------------------------------------------------ 4. Profile -> recommendation table (.cp-profiles)
   One full-width row per profile: icon + profile, need, recommended combination (plugin chips linking to the
   profiles), budget. Rows look like cards (border-spacing); phones: one stacked card per profile. */
.entry-content .cp-profiles { margin: 0 0 2.4rem; }
.entry-content .cp-prof-table { width: 100%; table-layout: fixed; border-collapse: separate; border-spacing: 0 10px; margin: -10px 0 0; background: none; font-size: .9rem; }
.entry-content .cp-prof-table th, .entry-content .cp-prof-table td { padding: 16px 16px; border: 0; vertical-align: top; text-align: left; background: #fff; }
.entry-content .cp-prof-table thead th { padding: 6px 16px 0; background: none; border: 0; font-size: .68rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.entry-content .cp-prof-table .cp-prof-h1 { width: 23%; }
.entry-content .cp-prof-table .cp-prof-h2 { width: 26%; }
.entry-content .cp-prof-table .cp-prof-h3 { width: 33%; }
.entry-content .cp-prof-table .cp-prof-h4 { width: 18%; }
/* Row card: borders on the cells, rounded ends, accent bar by budget (green: free, violet: paid / Pro). */
.entry-content .cp-prof-table .cp-prof > * { border-top: 1px solid var(--edge); border-bottom: 1px solid var(--edge); transition: background-color .16s ease; }
.entry-content .cp-prof-table .cp-prof > :first-child { border-left: 1px solid var(--edge); border-radius: 14px 0 0 14px; box-shadow: inset 4px 0 0 #9fdcbd; }
.entry-content .cp-prof-table .cp-prof.is-paid > :first-child { box-shadow: inset 4px 0 0 #8f74f5; }
.entry-content .cp-prof-table .cp-prof > :last-child { border-right: 1px solid var(--edge); border-radius: 0 14px 14px 0; }
.entry-content .cp-prof-table .cp-prof:hover > * { border-color: #bfd2ff; background: #fbfdff; }
.entry-content .cp-prof-table .cp-prof-name { font-weight: 780; color: var(--ink); font-size: .98rem; line-height: 1.3; padding-left: 20px; }
.cp-prof-name .cp-choice-icon { margin: 0 0 10px; }
.cp-prof-name > span:last-child { display: block; }
.entry-content .cp-prof-table .cp-prof-need { color: #3a4d6e; line-height: 1.5; font-size: .88rem; }
.entry-content .cp-prof-table .cp-prof-combo .cp-picks { margin: 0; gap: 10px; }
.entry-content .cp-prof-table .cp-prof-budget { background: linear-gradient(180deg, #f6fbf8, #fff 70%); }
.entry-content .cp-prof-table .cp-prof.is-paid .cp-prof-budget { background: linear-gradient(180deg, #f6f3ff, #fff 70%); }
.entry-content .cp-prof-table .cp-prof:hover .cp-prof-budget { background: linear-gradient(180deg, #eef8f2, #fbfdff 70%); }
.entry-content .cp-prof-table .cp-prof.is-paid:hover .cp-prof-budget { background: linear-gradient(180deg, #efeaff, #fbfdff 70%); }
.cp-prof-budget strong { display: block; font-size: 1.02rem; font-weight: 800; line-height: 1.3; color: var(--green-text); letter-spacing: -.01em; }
.cp-prof.is-paid .cp-prof-budget strong { color: #3b2fc9; }
.cp-prof-budget small { display: block; margin-top: 5px; font-size: .78rem; line-height: 1.45; color: var(--muted); }
.entry-content .cp-prof-links { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 4px 0 0; font-size: .88rem; }
.cp-choice-icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 11px; background: #eaf2ff; color: var(--blue); flex: none; }
.cp-choice-icon svg { width: 21px; height: 21px; }
.cp-prof.is-paid .cp-choice-icon { background: #f0ebff; color: #5b3be6; }
@media (max-width: 760px) {
	.entry-content .cp-prof-table, .cp-prof-table tbody, .cp-prof-table tr, .cp-prof-table th, .cp-prof-table td { display: block; width: auto; }
	.entry-content .cp-prof-table { margin: 0; }
	.cp-prof-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
	.entry-content .cp-prof-table .cp-prof { margin: 0 0 12px; border: 1px solid var(--edge); border-radius: 16px; overflow: hidden; background: #fff; box-shadow: inset 4px 0 0 #9fdcbd, var(--shadow-sm); }
	.entry-content .cp-prof-table .cp-prof.is-paid { box-shadow: inset 4px 0 0 #8f74f5, var(--shadow-sm); }
	.entry-content .cp-prof-table .cp-prof > *, .entry-content .cp-prof-table .cp-prof > :first-child, .entry-content .cp-prof-table .cp-prof > :last-child, .entry-content .cp-prof-table .cp-prof:hover > * { border: 0; border-radius: 0; box-shadow: none; background: none; }
	.entry-content .cp-prof-table th, .entry-content .cp-prof-table td { padding: 0 16px 0 20px; }
	.entry-content .cp-prof-table .cp-prof-name { display: flex; align-items: center; gap: 12px; padding: 16px 16px 10px 20px; font-size: 1.02rem; }
	.cp-prof-name .cp-choice-icon { margin: 0; }
	.entry-content .cp-prof-table .cp-prof-need { padding-bottom: 12px; }
	.entry-content .cp-prof-table .cp-prof-combo { padding-bottom: 14px; }
	.entry-content .cp-prof-table .cp-prof-combo::before, .entry-content .cp-prof-table .cp-prof-budget::before {
		content: attr(data-label); content: attr(data-label) / "";
		display: block; margin: 0 0 6px; font-size: .66rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted);
	}
	.entry-content .cp-prof-table td.cp-prof-budget, .entry-content .cp-prof-table .cp-prof:hover td.cp-prof-budget { padding: 12px 16px 14px 20px; border-top: 1px solid var(--line); background: #f6fbf8; }
	.entry-content .cp-prof-table .cp-prof.is-paid td.cp-prof-budget { background: #f6f3ff; }
}

.entry-content .cp-picks { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 8px; }
.entry-content .cp-picks li { margin: 0; font-size: .8rem; line-height: 1.35; }
.cp-pick-role { display: block; font-size: .68rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.cp-pick-links { display: flex; flex-wrap: wrap; gap: 5px; }
.cp-pick-links a, .cp-tools a { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px 3px 4px; border-radius: 100px; background: #f4f7fc; border: 1px solid var(--edge); color: var(--ink); font-weight: 650; text-decoration: none; font-size: .78rem; line-height: 1.3; }
.cp-pick-links a:hover, .cp-tools a:hover { border-color: var(--blue); color: var(--blue); background: #fff; }
.cp-pick-links .cp-logo, .cp-tools .cp-logo { width: 18px; height: 18px; border-radius: 4px; }
.cp-pick-links em, .cp-tools em { font-style: normal; font-size: .66rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: #8a4b00; }
.cp-pick-links em.is-free { color: var(--green-text); }
.cp-pick-links em.is-pro, .cp-tools em.is-pro { color: #4a2fc0; }
.cp-pick-links a.is-ours, .cp-tools .is-ours a { background: var(--cp-tint); border-color: #cfe0ff; }

/* ------------------------------------------------------------------ 5. Plugin profiles */
.entry-content .cp-profile { border: 1px solid var(--edge); border-radius: 18px; padding: 20px 22px 6px; margin: 0 0 18px; background: #fff; box-shadow: var(--shadow-sm); scroll-margin-top: calc(var(--cp-top) + 16px); }
.entry-content .cp-profile.is-ours { background: linear-gradient(180deg, var(--cp-tint), #fff 140px); border-color: #cfe0ff; box-shadow: inset 4px 0 0 var(--blue), var(--shadow-sm); }
.cp-profile-head { display: flex; align-items: center; gap: 16px; margin: 0 0 14px; }
.cp-profile-head .cp-logo { width: 64px; height: 64px; border-radius: 14px; flex: none; background: #fff; box-shadow: 0 0 0 1px var(--edge), 0 4px 12px rgba(16, 36, 73, .06); }
.entry-content .cp-profile-head h3 { margin: 0 0 3px; font-size: 1.22rem; line-height: 1.3; }
.entry-content .cp-profile-head h3 .wpm-tag { top: -1px; }
.entry-content .cp-tagline { margin: 0; color: var(--muted); font-size: .93rem; line-height: 1.45; }
.entry-content .cp-ideal { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; align-items: start; background: #f2fbf6; border: 1px solid #c9ebd8; border-radius: 13px; padding: 12px 14px; margin: 0 0 14px; }
.cp-ideal-icon { grid-row: span 3; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: #dff6eb; color: var(--green-text); }
.cp-ideal-icon svg { width: 19px; height: 19px; }
.entry-content .cp-ideal-title { margin: 0; font-size: .74rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--green-text); }
.entry-content .cp-chips { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 2px 0 4px; padding: 0; }
.entry-content .cp-chips li { margin: 0; padding: 3px 10px; border-radius: 100px; background: #fff; border: 1px solid #b5e1c9; color: #0b5b3e; font-size: .78rem; font-weight: 700; line-height: 1.35; }
.entry-content .cp-ideal p:not(.cp-ideal-title) { margin: 0; font-size: .9rem; line-height: 1.5; color: #24395f; }
.entry-content .cp-profile > p { font-size: .97rem; }
@media (max-width: 560px) {
	.entry-content .cp-profile { padding: 16px 15px 4px; }
	.cp-profile-head { gap: 12px; align-items: flex-start; }
	.cp-profile-head .cp-logo { width: 52px; height: 52px; border-radius: 12px; }
	.entry-content .cp-ideal { grid-template-columns: 1fr; }
	.cp-ideal-icon { display: none; }
}

/* ------------------------------------------------------------------ 6. Figures: shared head */
.cp-layers, .cp-attack { margin: 0 0 2.4rem; background: #fff; border: 1px solid var(--edge); border-radius: 18px; padding: 20px 20px 18px; box-shadow: var(--shadow-sm); }
.cp-fig-head { display: block; margin: 0 0 14px; }
.cp-fig-title { display: block; font-weight: 800; font-size: 1.08rem; color: var(--ink); line-height: 1.3; }
.cp-fig-sub { display: block; font-size: .86rem; color: var(--muted); line-height: 1.5; margin-top: 3px; }

/* ------------------------------------------------------------------ 7. Protection layers diagram */
.cp-layers-edge { margin: 0 0 6px; text-align: center; }
.cp-layers-edge span { display: inline-flex; align-items: center; gap: 7px; font-size: .78rem; font-weight: 700; color: #3a4d6e; padding: 4px 12px; border-radius: 100px; background: var(--light); border: 1px dashed #b9c9e3; }
.cp-layers-edge .icon { width: 15px; height: 15px; color: var(--blue); }
.cp-layers-group { margin: 14px 0 8px; font-size: .7rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; color: #1559d6; display: flex; align-items: center; gap: 10px; }
.cp-layers-group::after { content: ""; flex: 1; height: 1px; background: var(--edge); }
.entry-content .cp-layers-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; position: relative; }
/* request path: a vertical line on the left that goes through the layers */
.entry-content .cp-layers-list::before { content: ""; position: absolute; left: 21px; top: 6px; bottom: 6px; width: 2px; background: repeating-linear-gradient(180deg, #b9c9e3 0 6px, transparent 6px 11px); }
.entry-content .cp-layer { position: relative; margin: 0 0 0 calc(var(--d, 0) * 0px); padding: 11px 12px 11px 54px; border: 1px solid var(--edge); border-radius: 13px; background: linear-gradient(90deg, #f7faff, #fff 55%); }
.cp-layer.is-ours { background: linear-gradient(90deg, #e6efff, var(--cp-tint) 60%); border-color: #b9d0fb; box-shadow: inset 4px 0 0 var(--blue); }
.cp-layer-head { display: block; }
.cp-layer-icon { position: absolute; left: 8px; top: 10px; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: #fff; border: 1px solid #cfdcf3; color: var(--blue); }
.cp-layer-icon svg { width: 17px; height: 17px; }
.cp-layer.is-ours .cp-layer-icon { background: var(--blue); border-color: var(--blue); color: #fff; }
.cp-layer-text { display: block; }
.cp-layer-name { display: block; font-size: .93rem; color: var(--ink); line-height: 1.35; }
.cp-layer-n { color: var(--blue); }
.cp-layer-desc { display: block; font-size: .8rem; color: var(--muted); line-height: 1.45; margin-top: 1px; }
.entry-content .cp-tools { list-style: none; display: flex; flex-wrap: wrap; gap: 5px; margin: 8px 0 0; padding: 0; }
.entry-content .cp-tools li { margin: 0; }
.cp-tool.is-paid a { background: #fff; border-style: dashed; }
.entry-content .cp-layer-note { margin: 7px 0 0; font-size: .78rem; color: #4d5f7d; font-style: italic; line-height: 1.4; }
.entry-content .cp-layers-legend { margin: 12px 0 0; font-size: .78rem; color: var(--muted); line-height: 1.5; }

/* ------------------------------------------------------------------ 8. Attack animation */
.cp-attack { --head: 40px; --row: 42px; --lane: 54px; --cycle: 11s; }
.cp-stage { position: relative; border-radius: 14px; background: #0f2147; color: #dfe8fb; padding: 0 0 8px; overflow: hidden; }
.cp-stage-head { display: grid; grid-template-columns: 1fr repeat(var(--lanes), var(--lane)); align-items: center; height: var(--head); padding: 0 10px 0 14px; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.cp-stage-src { display: inline-flex; align-items: center; gap: 7px; font-size: .74rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #9fb8ea; }
.cp-stage-src .icon { width: 15px; height: 15px; }
.cp-stage .cp-lane-n { justify-self: center; }
.cp-lane-n { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: #2a4580; color: #fff; font-size: .72rem; font-weight: 800; flex: none; }
.cp-stage-body { position: relative; display: grid; grid-template-columns: 1fr repeat(var(--lanes), var(--lane)); grid-template-rows: repeat(var(--rows, 8), var(--row)); padding: 0 10px 0 14px; }
.cp-row { grid-column: 1 / -1; display: flex; align-items: center; gap: 9px; border-bottom: 1px solid rgba(255, 255, 255, .07); font-size: .8rem; font-weight: 650; color: #c9d7f3; min-width: 0; margin: 0 -10px 0 -14px; padding: 0 0 0 14px; }
.cp-row:nth-child(even) { background: rgba(255, 255, 255, .03); }
.cp-row.is-split { border-top: 1px dashed rgba(159, 184, 234, .45); }
.cp-row.is-surface { background: rgba(23, 101, 244, .28); color: #fff; box-shadow: inset 4px 0 0 #6ea0ff; }
.cp-row-icon { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 7px; background: rgba(255, 255, 255, .08); color: #9fc0ff; flex: none; }
.cp-row-icon svg { width: 14px; height: 14px; }
.cp-row-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: calc(100% - var(--lanes) * var(--lane) - 40px); }
.cp-lane { grid-row: 1 / -1; position: relative; z-index: 1; }
.cp-trail { position: absolute; left: 50%; top: -10px; width: 2px; margin-left: -1px; height: calc(var(--row) * (var(--stop) + .5) + 10px); background: linear-gradient(180deg, rgba(255, 120, 120, .05), rgba(255, 120, 120, .55)); }
.cp-lane.is-detected .cp-trail { background: linear-gradient(180deg, rgba(255, 196, 92, .05), rgba(255, 196, 92, .6)); }
.cp-bot { position: absolute; left: 50%; top: 0; width: 26px; height: 26px; margin: -13px 0 0 -13px; display: grid; place-items: center; border-radius: 8px; background: #ff7b7b; color: #5b0d0d; box-shadow: 0 0 0 3px rgba(255, 123, 123, .25);
	transform: translateY(calc(var(--row) * (var(--stop) + .5))); opacity: .35; }
.cp-lane.is-detected .cp-bot { background: #ffc45c; color: #4a2c00; box-shadow: 0 0 0 3px rgba(255, 196, 92, .25); }
.cp-bot svg { width: 16px; height: 16px; }
.cp-hit { position: absolute; left: 50%; top: calc(var(--row) * (var(--stop) + .5)); transform: translate(-50%, -50%); display: grid; justify-items: center; gap: 1px; z-index: 2; }
.cp-hit .icon { width: 24px; height: 24px; padding: 4px; border-radius: 50%; background: #e5484d; color: #fff; stroke-width: 3; box-shadow: 0 0 0 4px rgba(229, 72, 77, .3); }
.cp-lane.is-detected .cp-hit .icon { background: #f59e0b; color: #2b1900; box-shadow: 0 0 0 4px rgba(245, 158, 11, .3); }
.cp-hit b { font-size: .58rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: #fff; background: rgba(15, 33, 71, .85); padding: 0 4px; border-radius: 4px; white-space: nowrap; }
/* Playing (JavaScript, visible, no reduced motion): the bots travel down to their layer, one after the other. */
.cp-attack.is-anim .cp-bot { animation: cp-fall var(--cycle) cubic-bezier(.45, .05, .55, .95) infinite backwards; animation-delay: calc(var(--n) * 1.1s); opacity: 0; }
.cp-attack.is-anim .cp-hit { animation: cp-hit var(--cycle) ease infinite backwards; animation-delay: calc(var(--n) * 1.1s); opacity: 0; }
.cp-attack.is-anim .cp-trail { animation: cp-trail var(--cycle) linear infinite backwards; animation-delay: calc(var(--n) * 1.1s); transform-origin: top; }
@keyframes cp-fall {
	0% { transform: translateY(-14px); opacity: 0; }
	4% { opacity: 1; }
	38% { transform: translateY(calc(var(--row) * (var(--stop) + .5))); opacity: 1; }
	44% { transform: translateY(calc(var(--row) * (var(--stop) + .5))) scale(.6); opacity: 0; }
	100% { transform: translateY(calc(var(--row) * (var(--stop) + .5))); opacity: 0; }
}
@keyframes cp-hit {
	0%, 37% { opacity: 0; transform: translate(-50%, -50%) scale(.4); }
	42% { opacity: 1; transform: translate(-50%, -50%) scale(1.15); }
	46%, 88% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
	96%, 100% { opacity: 0; transform: translate(-50%, -50%) scale(1); }
}
@keyframes cp-trail {
	0% { transform: scaleY(0); opacity: 1; }
	38% { transform: scaleY(1); opacity: 1; }
	88% { transform: scaleY(1); opacity: 1; }
	100% { transform: scaleY(1); opacity: 0; }
}
.entry-content .cp-attack-legend { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 8px; }
.entry-content .cp-attack-legend li { display: flex; gap: 10px; align-items: flex-start; margin: 0; font-size: .87rem; line-height: 1.5; color: #24395f; }
.cp-attack-legend .cp-lane-n { background: #e5484d; margin-top: 1px; }
.cp-attack-legend .is-detected .cp-lane-n { background: #b45309; }
.cp-legend-layer { font-weight: 700; color: #1559d6; }
.cp-attack-controls { margin-top: 14px; }
.cp-attack-toggle { display: inline-flex; align-items: center; gap: 8px; }
.cp-attack-toggle .i-pause, .cp-attack-toggle.is-playing .i-play { display: none; }
.cp-attack-toggle.is-playing .i-pause { display: block; }
@media (max-width: 640px) {
	.cp-attack { --row: 40px; --lane: 30px; --head: 36px; padding: 16px 12px 14px; }
	.cp-row-name { white-space: normal; line-height: 1.15; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; max-width: calc(100% - var(--lanes) * var(--lane) - 12px); }
	.cp-stage-head, .cp-stage-body { padding-right: 6px; padding-left: 10px; }
	.cp-row { margin: 0 -6px 0 -10px; padding-left: 10px; }
	.cp-layers { padding: 16px 12px 14px; }
	.cp-row { font-size: .7rem; gap: 6px; }
	.cp-row-icon { display: none; }
	.cp-stage-src { font-size: .66rem; }
	.cp-hit b { display: none; }
	.cp-hit .icon { width: 20px; height: 20px; }
	.cp-bot { width: 20px; height: 20px; margin: -10px 0 0 -10px; border-radius: 6px; }
	.cp-bot svg { width: 13px; height: 13px; }
	.entry-content .cp-layer { padding-left: 48px; }
	.entry-content .cp-layers-list::before { left: 19px; }
}
@media (prefers-reduced-motion: reduce) {
	.cp-prof > * { transition: none; }
}

/* ------------------------------------------------------------------ 9. Trademark note */
.entry-content .cp-trademark { font-size: .8rem; color: var(--muted); border-top: 1px solid var(--line); padding-top: 12px; margin-top: 1.6rem; }
