/* ====================================================================
   ArsenalPC Blog Global Stylesheet
   ==================================================================== */

.single-post {
    --apc-red: #c0392b;
    --apc-dark: #111111;
    --apc-mid: #444444;
    --apc-muted: #888888;
    --apc-border: #d4d4d0;
    --apc-bg: #ffffff;
    --apc-bg-soft: #f7f7f4;
    --apc-green: #1a7a42;
}

/* Use Flexbox on the parent container to reorder elements */
.single-post .single-content {
    display: flex;
    flex-direction: column;
    max-width: 100%;
    margin: 0 auto;
}

/* 1. Image: Move to the top */
.single-post .post-thumbnail {
    order: 1;
    margin-bottom: 2em;
}

/* 2. Tags: Move to appear right after the image, before the title */
.single-post .entry-taxonomy {
    order: 2;
    text-align: center;
    margin-top: 0;
    margin-bottom: 2em;
}

/* 3. Header (Title, Category, Date): Position after tags */
.single-post .entry-header {
    order: 3;
    text-align: center;
    max-width: 100%;
    margin: 0 auto 3em auto;
    padding: 0 20px;
}

/* 4. Main Content: Position after all header/meta info */
.single-post .entry-content {
    order: 4;
    width: 100%;
}

/* 5. Comments Section: Ensure it remains at the bottom */
.single-post #comments {
    order: 5;
}

/* ====================================================================
   Header Meta - Category, Date, Reading Time
   ==================================================================== */

.single-post .entry-meta {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5em;
    font-size: 16px;
    margin-top: 1.2em;
    margin-bottom: 0.5em;
}

.single-post .categories-link a {
    text-decoration: none !important;
    font-weight: 600 !important;
    color: var(--apc-red) !important;
    background-color: var(--color-primary-light) !important;
    padding: 6px 12px;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.single-post .categories-link a:hover {
    background-color: var(--apc-red) !important;
    color: #ffffff !important;
}

.single-post .posted-on {
    position: relative;
    padding-left: 22px;
    color: #555;
    font-weight: 500;
}

.single-post .posted-on::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23555555" width="16px" height="16px"><path d="M19 4h-1V2h-2v2H8V2H6v2H5c-1.11 0-1.99.9-1.99 2L3 20a2 2 0 0 0 2 2h14c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 16H5V10h14v10zM5 8V6h14v2H5z"/></svg>');
    background-repeat: no-repeat;
    background-size: contain;
}

.single-post .posted-on a {
    text-decoration: none !important;
    color: #555 !important;
    font-weight: 500 !important;
}

.single-post .posted-on a:hover {
    color: #000 !important;
}

/* Article meta header bar (Last Updated / Reading Time) */
/* ====================================================================
   Tags
   ==================================================================== */

.single-post .entry-taxonomy .tags-links {
    font-size: 16px;
}

.single-post .entry-taxonomy .tags-links > span {
    display: none;
}

.single-post .entry-taxonomy .tags-links a {
    display: inline-block;
    background-color: #f0f0f0;
    color: #444;
    padding: 4px 10px;
    margin: 3px;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 500;
    text-decoration: none !important;
    transition: all 0.3s ease;
}

.single-post .entry-taxonomy .tags-links a:hover {
    background-color: #ddd;
    color: #000;
}

/* ====================================================================
   CSS Custom Properties
   ==================================================================== */

.single-post .entry-content {
    --color-primary: var(--apc-red);
    --color-primary-light: #fde2dd;
    --color-heading: #1d2d35;
    --color-text: #34495e;
    --color-border: #dce4e9;
    --color-background: #f7f9fa;
    --color-success: #28a745;
    --color-success-light: #eaf6ec;
    --color-warning: #ffc107;
    --color-warning-light: #fff8e1;
    --color-danger: #dc3545;
    --color-danger-light: #fdf0f0;
    --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --border-radius: 0;
    --box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    --transition: all 0.3s ease;
}

.single-post .entry-content ul,
.single-post .entry-content ol,
.single-post .entry-content ul.wp-block-list,
.single-post .entry-content ol.wp-block-list {
    padding-left: 0;
    margin: 0 0 1.5em;
    list-style: none;
}

/* Top-level bullet markers — red square that matches the flat/sharp design
   language (no rounding, brand red, sized to track the line). Scoped to
   direct ul children of entry-content so module-specific lists (highlight-
   box, pc-col, explainer-sidebar, etc.) keep their bespoke markers. */
.single-post .entry-content > ul > li,
.single-post .entry-content > ul.wp-block-list > li {
    position: relative;
    padding-left: 1.5em;
    margin-bottom: 0.55em;
    line-height: 1.7;
}
.single-post .entry-content > ul > li::before,
.single-post .entry-content > ul.wp-block-list > li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.65em;
    width: 0.55em;
    height: 0.55em;
    background: var(--apc-red);
}

/* Top-level numbered lists — counter-driven badge with the number in brand
   red, right-aligned, separated from the body by a thin red rule. Reads as
   a deliberate editorial choice rather than the default browser numerals. */
.single-post .entry-content > ol,
.single-post .entry-content > ol.wp-block-list {
    counter-reset: apc-ol-counter;
}
.single-post .entry-content > ol > li,
.single-post .entry-content > ol.wp-block-list > li {
    position: relative;
    padding-left: 2.6em;
    margin-bottom: 0.6em;
    line-height: 1.7;
    counter-increment: apc-ol-counter;
    list-style: none;
}
.single-post .entry-content > ol > li::before,
.single-post .entry-content > ol.wp-block-list > li::before {
    content: counter(apc-ol-counter);
    position: absolute;
    left: 0;
    top: 0;
    width: 1.9em;
    padding-right: 0.6em;
    text-align: right;
    color: var(--apc-red);
    font-weight: 800;
    font-size: 1em;
    line-height: 1.7;
    border-right: 2px solid var(--apc-red);
}

/* Nested lists keep the browser defaults (disc / decimal) so the top-level
   custom marker style stays the editorial focal point. Slightly tighter
   margin so they don't dominate. */
.single-post .entry-content ul ul,
.single-post .entry-content ol ol,
.single-post .entry-content ul ol,
.single-post .entry-content ol ul {
    padding-left: 1.5em;
    margin: 0.4em 0 0.6em;
    list-style: revert;
}
.single-post .entry-content ul ul li,
.single-post .entry-content ol ol li,
.single-post .entry-content ul ol li,
.single-post .entry-content ol ul li {
    padding-left: 0;
    list-style: revert;
    margin-bottom: 0.3em;
}
.single-post .entry-content ul ul li::before,
.single-post .entry-content ol ol li::before,
.single-post .entry-content ul ol li::before,
.single-post .entry-content ol ul li::before {
    content: none;
}

/* ====================================================================
   Typography
   ==================================================================== */

.single-post .entry-content {
    font-family: var(--font-sans);
    color: var(--color-text);
    font-size: 18px;
    line-height: 1.7;
}

.single-post .entry-content > * {
    margin-bottom: 1.5em;
}

.single-post .entry-content > *:first-child {
    margin-top: 0 !important;
}

.single-post .entry-content h1,
.single-post .entry-content h2,
.single-post .entry-content h3,
.single-post .entry-content h4 {
    font-family: var(--font-sans);
    color: var(--color-heading);
    font-weight: 700;
    line-height: 1.3;
}

.single-post .entry-content h2,
.single-post .entry-content h3 {
    margin-top: 1em;
    margin-bottom: 1em;
}

.single-post .entry-content h1.wp-block-heading {
    font-size: 2.8rem;
    font-weight: 800;
    border-bottom: 4px solid var(--color-primary);
    padding-bottom: 0.4em;
    margin-top: 0;
}

.single-post .entry-content h2.apc-section-heading,
.single-post .post-content h2.apc-section-heading {
    position: relative;
    display: block;
    margin: 28px auto 16px;
    padding: 12px 32px 10px;
    width: 100%;
    max-width: 760px;
    font-size: clamp(0.95rem, 1.6vw, 1.2rem);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #ffffff;
    line-height: 1.1;
    text-align: center;
    border: none;
    z-index: 0;
}

.single-post .entry-content h2.apc-section-heading::before,
.single-post .post-content h2.apc-section-heading::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 200vw;
    height: 2px;
    background: #575757;
    transform: translate(-95%, -50%);
    z-index: -2;
    opacity: 0.9;
}

.single-post .entry-content h2.apc-section-heading::after,
.single-post .post-content h2.apc-section-heading::after {
    content: '';
    position: absolute;
    inset: 0;
    background: #353535;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
    clip-path: polygon(14px 0, calc(100% - 14px) 0, 100% 100%, 0 100%);
    z-index: -1;
}

@supports not (clip-path: polygon(14px 0, calc(100% - 14px) 0, 100% 100%, 0 100%)) {
    .single-post .entry-content h2.apc-section-heading::after,
    .single-post .post-content h2.apc-section-heading::after {
        clip-path: none;
    }
}

.single-post .entry-content h1,
.single-post .entry-content h2,
.single-post .entry-content h3,
.single-post .entry-content h4 {
    font-family: var(--font-sans);
    color: #111;
    font-weight: 800;
    line-height: 1.2;
}

/* H3 sub-heading — sits visually UNDER the apc-section-heading H2 banner.
   Left-aligned, red accent bar on the left, distinctly smaller than the H2 banner
   so the hierarchy reads correctly (H2 = section, H3 = sub-topic). */
.single-post .entry-content h3,
.single-post .post-content h3 {
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: 0.005em;
    padding: 6px 0 6px 14px;
    border-left: 3px solid var(--apc-red);
    margin: 28px 0 12px;
    color: var(--apc-dark);
    line-height: 1.3;
    text-transform: none;
}

/* H4 — used inside modules (faq-item headings, spec-table product names, etc.).
   Keep it neutral; module-level CSS can override where needed. */
.single-post .entry-content h4,
.single-post .post-content h4 {
    font-size: 1.05rem;
    font-weight: 700;
    margin: 16px 0 8px;
    color: var(--apc-dark);
}

.single-post .entry-content p {
    margin-bottom: 1.25em;
}

.single-post .entry-content a {
    color: var(--apc-red);
    text-decoration: none;
    font-weight: 700;
}

.single-post .entry-content a:hover {
    color: var(--apc-dark);
    text-decoration: underline;
}

/* ====================================================================
   APC Table of Contents (Elementor)
   ==================================================================== */

/* WordPress-generated title */
.single-post .entry-header h2.entry-title {
    font-size: 2.8rem;
    font-weight: 800;
    border-bottom: 4px solid var(--apc-red);
    padding-bottom: 0.4em;
    margin-bottom: 0;
    color: #1d2d35;
    line-height: 1.3;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    max-width: 100%;
}

/* ====================================================================
   Featured Snippet Target
   ==================================================================== */

.single-post .entry-content .featured-snippet-target {
    background: var(--color-primary-light);
    border-left: 4px solid var(--color-primary);
    padding: 16px 20px;
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
    font-size: 1.05rem;
    line-height: 1.7;
    margin: 20px 0;
    color: var(--color-heading);
}

/* ====================================================================
   Highlight Box (green - key takeaways, advantages)
   ==================================================================== */

.single-post .entry-content .highlight-box {
    background: var(--apc-bg-soft);
    border: 1px solid var(--apc-border);
    border-left: 5px solid var(--apc-red);
    padding: 24px 28px;
    margin: 25px 0;
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
}

.single-post .entry-content .highlight-box ul {
    margin: 16px 0 0 1.4em !important;
    padding-left: 1rem !important;
}

.single-post .entry-content .highlight-box li {
    list-style: disc;
    padding-left: 0 !important;
    color: var(--apc-mid);
}

/* ====================================================================
   Pro Tip Box (yellow)
   ==================================================================== */

.single-post .entry-content .pro-tip {
    background: var(--color-warning-light);
    border: 1px solid var(--color-warning);
    border-left-width: 5px;
    border-radius: var(--border-radius);
    padding: 20px 25px;
    margin: 25px 0;
}

.single-post .entry-content .pro-tip::before {
    content: "Pro Tip: ";
    font-weight: 700;
    color: #c79100;
}

/* ====================================================================
   Warning Box (amber - cautions, caveats)
   ==================================================================== */

.single-post .entry-content .warning-box {
    background: #fff3cd;
    border-left: 5px solid #e6a817;
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
    padding: 20px 25px;
    margin: 25px 0;
    color: #5a4000;
}

.single-post .entry-content .warning-box::before {
    content: "Warning: ";
    font-weight: 700;
    color: #856404;
}

/* ====================================================================
   FAQ Section - Full Styling
   ==================================================================== */

.single-post .entry-content .faq-section {
    margin: 40px 0;
}

.single-post .entry-content .faq-section > h2.wp-block-heading {
    margin-bottom: 28px;
}

.single-post .entry-content .faq-item {
    border: 1px solid var(--color-border, #dce4e9);
    margin-bottom: 12px;
    background: var(--apc-bg, #ffffff);
    transition: var(--transition);
}

.single-post .entry-content .faq-item.is-open {
    border-color: var(--apc-dark, #111111);
}

.single-post .entry-content .faq-question {
    width: 100%;
    text-align: left;
    border: none;
    background: var(--color-primary, #c0392b);
    color: #fff;
    padding: 16px 52px 16px 20px;
    font-weight: 700;
    font-size: 1rem;
    line-height: 1.5;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    position: relative;
    margin: 0;
    font-family: inherit;
    appearance: none;
    -webkit-appearance: none;
    border-radius: 0;
}

.single-post .entry-content .faq-question:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 3px;
}

.single-post .entry-content .faq-question::after {
    content: '+';
    font-size: 20px;
    font-weight: 800;
    transition: var(--transition);
}

.single-post .entry-content .faq-item.is-open .faq-question::after {
    transform: rotate(45deg);
}

.single-post .entry-content .faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: var(--color-background, #f7f9fa);
    padding: 0 20px;
    margin: 0;
    color: var(--color-text, #34495e);
}

.single-post .entry-content .faq-answer p {
    margin: 0;
    color: var(--color-text, #34495e);
    padding: 0;
    border: 0;
    background: none;
    max-height: none;
    opacity: 1;
    overflow: visible;
    transition: none;
}

.single-post .entry-content .faq-item.is-open .faq-answer {
    padding: 18px 20px;
    max-height: 1000px;
}

.single-post .entry-content .faq-answer a {
    color: var(--color-primary);
    font-weight: 600;
}

/* ====================================================================
   Benchmark Table
   ==================================================================== */

.single-post .entry-content .benchmark-table {
    width: 100%;
    border-collapse: collapse;
    margin: 30px 0;
    box-shadow: var(--box-shadow);
    border-radius: var(--border-radius);
    overflow: hidden;
}

.single-post .entry-content .benchmark-table th {
    background: var(--apc-red);
    color: white;
    padding: 15px;
    text-align: left;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 16px;
    letter-spacing: 0.5px;
}

.single-post .entry-content .benchmark-table td {
    padding: 15px;
    border-bottom: 1px solid var(--color-border);
}

.single-post .entry-content .benchmark-table tr:nth-child(even) {
    background: var(--color-background);
}

.single-post .entry-content .benchmark-table tr:last-child td {
    border-bottom: none;
}

.single-post .entry-content .benchmark-table caption {
    caption-side: top;
    font-size: 16px;
    color: #555;
    font-style: italic;
    padding-bottom: 8px;
    text-align: left;
}

/* Highlight a winning/recommended row */
.single-post .entry-content .benchmark-table tr.table-winner td {
    background: var(--color-success-light);
    font-weight: 600;
    color: var(--color-heading);
}

/* ====================================================================
   Comparison Grid (two-column cards - alternative to tables, Type B)
   ==================================================================== */

.single-post .entry-content .comparison-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 25px 0;
}

.single-post .entry-content .comparison-card {
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    padding: 20px;
    background: var(--color-background);
}

.single-post .entry-content .comparison-card h4 {
    margin-top: 0;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--color-primary);
    color: var(--color-heading);
}

@media (max-width: 640px) {
    .single-post .entry-content .comparison-grid {
        grid-template-columns: 1fr;
    }
}

/* ====================================================================
   Build Tier Headers
   ==================================================================== */

.single-post .entry-content .build-tier-header {
    background: linear-gradient(135deg, #1d2d35 0%, #2c3e50 100%);
    border-radius: var(--border-radius);
    padding: 25px 30px;
    margin: 40px 0 30px;
    text-align: center;
    box-shadow: 0 8px 20px rgba(29, 45, 53, 0.15);
    position: relative;
    overflow: hidden;
}

.single-post .entry-content .build-tier-header::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
}

.single-post .entry-content .build-tier-header.entry::before {
    background: var(--color-success);
}

.single-post .entry-content .build-tier-header.performance::before {
    background: #FF9800;
}

.single-post .entry-content .build-tier-header.ultimate::before {
    background: #9C27B0;
}

.single-post .entry-content .build-tier-label {
    font-size: 1.1rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    display: inline-block;
    position: relative;
}

/* ====================================================================
   Content Section Wrapper
   ==================================================================== */

.single-post .entry-content .content-section {
    margin: 25px 0;
    padding: 0;
}

/* ====================================================================
   CTA Button
   ==================================================================== */

.single-post .entry-content .cta-button {
    display: block !important;
    width: fit-content;
    background: var(--color-primary);
    color: white;
    padding: 14px 32px;
    text-decoration: none;
    border-radius: var(--border-radius);
    font-weight: 700;
    margin: 30px auto !important;
    transition: var(--transition);
    box-shadow: 0 4px 10px rgba(192, 57, 43, 0.2);
    text-align: center;
    clear: both;
}

.single-post .entry-content p + .cta-button,
.single-post .entry-content div + .cta-button,
.single-post .entry-content ul + .cta-button {
    margin-top: 30px !important;
}

.single-post .entry-content .cta-button:hover {
    background: var(--color-heading);
    color: white;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(29, 45, 53, 0.3);
}

/* ====================================================================
   Chart Container (Chart.js)
   ==================================================================== */

.single-post .entry-content .chart-container {
    position: relative;
    margin: 30px 0;
    background: var(--color-background);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    padding: 20px;
    box-shadow: var(--box-shadow);
}

.single-post .entry-content .chart-container canvas {
    max-width: 100%;
    display: block;
    margin: 0 auto;
}

.single-post .entry-content .chart-caption {
    text-align: center;
    font-size: 16px;
    color: #666;
    font-style: italic;
    margin-top: 10px;
    margin-bottom: 0;
}

/* ====================================================================
   Article Signature Modules
   ==================================================================== */

.single-post .apc-verdict-banner,
.single-post .apc-stat-trio,
.single-post .apc-side-narrative,
.single-post .apc-tier-ladder,
.single-post .apc-feature-dots,
.single-post .apc-pull-quote,
.single-post .apc-decision-card,
.single-post .apc-section-timeline,
.single-post .apc-hero-stat,
.single-post .apc-persona-grid,
.single-post .apc-xray-list,
.single-post .apc-quick-hits,
.single-post .apc-tldr-callout,
.single-post .apc-spec-table,
.single-post .apc-buy-skip,
.single-post .apc-upgrade-matrix,
.single-post .apc-score-bars,
.single-post .apc-explainer-sidebar {
    margin: 48px 0;
}

.single-post .apc-verdict-banner {
    display: grid;
    grid-template-columns: 8px 1fr;
    background: var(--apc-dark);
    color: #fff;
    box-shadow: 6px 6px 0 rgba(0, 0, 0, 0.08);
}

.single-post .apc-verdict-banner__accent {
    background: var(--apc-red);
}

.single-post .apc-verdict-banner__body {
    padding: 24px 32px;
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: nowrap;
}

.single-post .apc-verdict-banner__thumb {
    width: 110px;
    height: 110px;
    flex-shrink: 0;
    position: relative;
    display: block;
    transition: transform 0.2s ease, filter 0.2s ease;
}

.single-post .apc-verdict-banner__thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    filter: drop-shadow(0 12px 25px rgba(255, 77, 0, 0.35));
}

.single-post .apc-verdict-banner__thumb:hover {
    transform: scale(1.08);
    filter: drop-shadow(0 18px 30px rgba(255, 77, 0, 0.45));
}

/* When the verdict banner has a component image attached (article-labs visuals
   step), bump the thumb size so it reads as the hero element of the banner
   instead of a small icon. Stack thumb above text on narrow viewports. */
.single-post .apc-verdict-banner.has-component .apc-verdict-banner__thumb {
    width: 160px;
    height: 160px;
}
@media (max-width: 640px) {
    .single-post .apc-verdict-banner.has-component .apc-verdict-banner__body {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    .single-post .apc-verdict-banner.has-component .apc-verdict-banner__thumb {
        width: 120px;
        height: 120px;
        align-self: center;
    }
}

.single-post .apc-verdict-banner__content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.single-post .apc-verdict-banner__label {
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 12px;
}

.single-post .apc-verdict-banner__text {
    font-size: 22px;
    line-height: 1.35;
    font-weight: 800;
    margin: 0 0 6px 0 !important;
}

.single-post .apc-verdict-banner__text strong,
.single-post .apc-verdict-banner__sub strong {
    color: #fff;
}

.single-post .apc-verdict-banner__sub em {
    color: rgba(255, 255, 255, 0.9);
}

.single-post .apc-verdict-banner__text em {
    color: var(--apc-red);
    font-style: normal;
}

.single-post .apc-highlight-chip {
    color: var(--apc-red);
    font-size: 1.1em;
    font-weight: 800;
}

.single-post .apc-highlight-stat {
    font-size: 1.05em;
    color: #fff;
}

.single-post .apc-verdict-banner__sub {
    font-size: 16px;
    margin-top: 12px;
    color: rgba(255, 255, 255, 0.8);
    max-width: 640px;
}

@media (max-width: 640px) {
    .single-post .apc-verdict-banner__body {
        flex-direction: column;
        align-items: center;
    }

    .single-post .apc-verdict-banner__content {
        text-align: left;
        align-items: flex-start;
    }

    .single-post .apc-verdict-banner__thumb {
        align-self: flex-start;
    }
}

.single-post .apc-stat-trio {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1px;
    border: 1px solid var(--apc-border);
    background: var(--apc-border);
}

.single-post .apc-stat {
    background: var(--apc-bg);
    padding: 28px 24px;
    display: flex;
    flex-direction: column;
}

.single-post .apc-stat__value {
    font-size: 44px;
    font-weight: 900;
    line-height: 1;
    color: var(--apc-dark);
    letter-spacing: -0.02em;
}

.single-post .apc-stat__value.is-negative {
    color: var(--apc-red);
}

.single-post .apc-stat__value.is-positive {
    color: var(--apc-green);
}

.single-post .apc-stat__label {
    font-size: 16px;
    font-weight: 700;
    color: var(--apc-mid);
    margin-top: 10px;
}

.single-post .apc-stat__context {
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid var(--apc-border);
    font-size: 14px;
    color: var(--apc-muted);
}

.single-post .apc-side-narrative {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    border-top: 3px solid var(--apc-dark);
    border: 1px solid var(--apc-border);
    background: var(--apc-bg);
}

.single-post .apc-side-narrative__col {
    padding: 28px;
    background: var(--apc-bg);
    display: flex;
    flex-direction: column;
}

.single-post .apc-side-narrative__col + .apc-side-narrative__col {
    border-left: 1px solid var(--apc-border);
}

.single-post .apc-side-narrative__col:nth-child(2) {
    background: var(--apc-bg-soft);
}

/* Specificity guard: `.apc-side-narrative__col p { color: var(--apc-mid); }`
   below sets all paragraph text in the column to mid-gray. The __col prefix
   here bumps the rule to 0,3,0+ so our label colors win cleanly without
   !important. The label content can be either plain text or a link — both
   targeted so links don't inherit the entry-content red. On hover, links
   pick up the brand red so the affordance is still discoverable. */
.single-post .apc-side-narrative__col .apc-side-narrative__label,
.single-post .apc-side-narrative__col .apc-side-narrative__label a {
    font-size: 14px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    padding: 4px 10px;
    display: inline-block;
    margin-bottom: 12px;
    background: var(--apc-dark);
    color: #fff;
    text-decoration: none;
}
/* The <a> sits inside the <p class="__label">, so it shouldn't have its own
   block-level padding/margin/background — those belong to the <p>. */
.single-post .apc-side-narrative__col .apc-side-narrative__label a {
    background: transparent;
    padding: 0;
    margin: 0;
    display: inline;
}
.single-post .apc-side-narrative__col .apc-side-narrative__label a:hover {
    color: var(--apc-red);
    text-decoration: none;
}

.single-post .apc-side-narrative__col .apc-side-narrative__label.is-alt,
.single-post .apc-side-narrative__col:nth-child(2) .apc-side-narrative__label {
    background: #fff;
    color: var(--apc-dark);
    border: 1px solid var(--apc-dark);
    padding: 3px 9px;
}
.single-post .apc-side-narrative__col .apc-side-narrative__label.is-alt a,
.single-post .apc-side-narrative__col:nth-child(2) .apc-side-narrative__label a {
    color: var(--apc-dark);
}
.single-post .apc-side-narrative__col .apc-side-narrative__label.is-alt a:hover,
.single-post .apc-side-narrative__col:nth-child(2) .apc-side-narrative__label a:hover {
    color: var(--apc-red);
}

.single-post .apc-side-narrative__col h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 12px;
}

.single-post .apc-side-narrative__col p {
    font-size: 16px;
    color: var(--apc-mid);
    line-height: 1.7;
}

.single-post .apc-side-narrative__summary {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--apc-border);
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--apc-muted);
}

.single-post .apc-tier-ladder {
    background: var(--apc-bg);
    border: 1px solid var(--apc-border);
    border-top: 3px solid var(--apc-dark);
}

.single-post .apc-tier-ladder__header {
    border-bottom: 2px solid var(--apc-dark);
    padding: 14px 24px;
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 0.1em;
    font-weight: 800;
}

.single-post .apc-tier-ladder__row {
    display: grid;
    grid-template-columns: 40px 1fr auto;
    gap: 20px;
    align-items: center;
    padding: 16px 24px;
    border-bottom: 1px solid var(--apc-border);
}

.single-post .apc-tier-ladder__row:last-child {
    border-bottom: none;
}

.single-post .apc-tier-ladder__row.is-leader {
    background: var(--apc-dark);
    color: #fff;
}

.single-post .apc-tier-ladder__row.is-leader .apc-tier-ladder__rank,
.single-post .apc-tier-ladder__row.is-leader .apc-tier-ladder__name,
.single-post .apc-tier-ladder__row.is-leader .apc-tier-ladder__note {
    color: rgba(255, 255, 255, 0.85);
}

.single-post .apc-tier-ladder__rank {
    font-size: 20px;
    font-weight: 900;
    font-family: 'Space Mono', monospace;
    color: var(--apc-muted);
}

.single-post .apc-tier-ladder__info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.single-post .apc-tier-ladder__name {
    font-size: 16px;
    font-weight: 700;
}

.single-post .apc-tier-ladder__note {
    font-size: 16px;
    color: var(--apc-mid);
}

.single-post .apc-tier-ladder__row.is-leader .apc-tier-ladder__note {
    color: rgba(255, 255, 255, 0.7);
}

.single-post .apc-tier-ladder__tag {
    font-size: 14px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 4px 10px;
    border-radius: 0;
    background: #fff;
    color: var(--apc-dark);
    border: 1px solid var(--apc-border);
}

.single-post .apc-tier-ladder__tag.is-pick {
    background: var(--apc-red);
    color: #fff;
}

.single-post .apc-tier-ladder__tag.is-value {
    background: var(--apc-green);
    color: #fff;
}

.single-post .apc-tier-ladder__tag.is-alt {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

.single-post .apc-feature-dots {
    border: 1px solid var(--apc-border);
    border-top: 3px solid var(--apc-dark);
    background: var(--apc-bg);
    overflow-x: auto;
}

.single-post .apc-feature-dots__header,
.single-post .apc-feature-dots__row {
    display: grid;
    grid-template-columns: 220px repeat(auto-fit, minmax(120px, 1fr));
}

.single-post .apc-feature-dots__header {
    border-bottom: 2px solid var(--apc-dark);
}

.single-post .apc-feature-dots__feature {
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 700;
    background: var(--apc-bg-soft);
    border-right: 1px solid var(--apc-border);
}

.single-post .apc-feature-dots__product {
    padding: 12px 16px;
    text-align: center;
    border-left: 1px solid var(--apc-border);
    font-size: 14px;
    font-weight: 800;
    text-transform: uppercase;
}

.single-post .apc-feature-dots__product.is-active {
    background: var(--apc-dark);
    color: #fff;
}

.single-post .apc-feature-dots__row {
    border-bottom: 1px solid var(--apc-border);
}

.single-post .apc-feature-dots__row:last-child {
    border-bottom: none;
}

.single-post .apc-feature-dots__dot {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 16px 0;
    font-weight: 800;
    font-size: 14px;
    padding-left: 5%;
}

.single-post .apc-feature-dots__dot::before {
    content: '';
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 2px solid var(--apc-border);
    margin-right: 8px;
}

.single-post .apc-feature-dots__dot.is-yes::before {
    background: var(--apc-green);
    border-color: var(--apc-green);
}

.single-post .apc-feature-dots__dot.is-partial::before {
    background: var(--apc-red);
    opacity: 0.35;
}

.single-post .apc-feature-dots__dot.is-no::before {
    background: transparent;
}

.single-post .apc-pull-quote {
    position: relative;
    padding: 32px 36px;
    border-left: 6px solid var(--apc-red);
    background: var(--apc-bg-soft);
    font-size: 20px;
    font-weight: 700;
    line-height: 1.5;
    color: var(--apc-dark);
}

.single-post .apc-pull-quote cite {
    display: block;
    margin-top: 12px;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--apc-muted);
}

.single-post .apc-decision-card {
    border: 1px solid var(--apc-border);
    border-top: 4px solid var(--apc-dark);
    background: var(--apc-bg);
    padding: 32px;
    box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.04);
}

.single-post .apc-decision-card__label {
    font-size: 16px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--apc-muted);
    margin-bottom: 12px;
}

.single-post .apc-decision-card h3 {
    font-size: 22px;
    margin-bottom: 12px;
}

.single-post .apc-decision-card p {
    color: var(--apc-mid);
    margin-bottom: 0;
}

.single-post .apc-decision-card__cta {
    margin-top: 20px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 14px;
    color: var(--apc-red);
}

.single-post .apc-section-timeline {
    border: 1px solid var(--apc-border);
    border-top: 3px solid var(--apc-dark);
    background: var(--apc-bg);
    padding: 0;
    box-shadow: none;
}

.single-post .apc-section-timeline__title {
    margin: 0 !important;
    padding: 18px 24px;
    border-bottom: 2px solid var(--apc-dark);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 16px;
}

.single-post .apc-section-timeline__list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.single-post .apc-section-timeline__item {
    border-bottom: 1px solid var(--apc-border);
}

.single-post .apc-section-timeline__item:last-child {
    border-bottom: none;
}

.single-post .apc-related-card {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 24px;
    align-items: center;
    background: var(--apc-bg);
}

.single-post .apc-related-card__media {
    position: relative;
    width: 100%;
    min-width: 0;
    height: 100px;
    border-radius: 0;
    overflow: hidden;
    background: var(--apc-bg-soft);
}

.single-post .apc-related-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.single-post .apc-related-card__date {
    position: absolute;
    left: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.75);
    color: #fff;
    font-size: 14px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 6px 10px;
}

.single-post .apc-related-card__body {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-top: 8px;
}

.single-post .apc-related-card__category {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    background: var(--apc-dark);
    color: #fff;
    border-radius: 0;
    width: fit-content;
}

.single-post .apc-related-card__title {
    margin: 0;
    font-size: 18px;
    font-weight: 800;
    color: var(--apc-dark);
    text-decoration: none;
}

.single-post .apc-related-card__title:hover {
    color: var(--apc-red);
}

.single-post .apc-related-card__excerpt {
    margin: 0;
    color: var(--apc-mid);
    line-height: 1.5;
}

.single-post .apc-related-card__meta {
    margin: 0;
    font-size: 14px;
    text-transform: none;
    color: var(--apc-muted);
    display: flex;
    align-items: center;
    gap: 6px;
}

.single-post .apc-related-card__meta-sep {
    color: var(--apc-border);
}

@media (max-width: 640px) {
    .single-post .apc-related-card {
        flex-direction: column;
    }

    .single-post .apc-related-card__media {
        width: 100%;
        min-width: 100%;
        height: 160px;
    }
}

.single-post .apc-hero-stat {
    background: var(--apc-dark);
    color: #fff;
    padding: 48px 36px;
    text-align: center;
    border-radius: 0;
}

.single-post .apc-hero-stat__value {
    font-size: clamp(48px, 7vw, 88px);
    font-weight: 900;
    line-height: 1;
    letter-spacing: -0.02em;
}

.single-post .apc-hero-stat__label {
    font-size: 16px;
    font-weight: 700;
    margin-top: 12px;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: rgba(255, 255, 255, 0.7);
}

.single-post .apc-hero-stat__context {
    margin-top: 20px;
    font-size: 16px;
    color: rgba(255, 255, 255, 0.85);
}

.single-post .apc-persona-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1px;
    border: 1px solid var(--apc-border);
    background: var(--apc-border);
}

.single-post .apc-persona {
    background: var(--apc-bg);
    padding: 28px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.single-post .apc-persona__tag {
    font-size: 14px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--apc-red);
}

.single-post .apc-persona__title {
    font-size: 20px;
    font-weight: 800;
    line-height: 1.3;
    margin: 0;
}

.single-post .apc-persona__body {
    color: var(--apc-mid);
    margin: 0 0 12px;
}

.single-post .apc-persona__stat {
    border-top: 1px solid var(--apc-border);
    padding-top: 12px;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--apc-dark);
    margin-top: auto;
}

.single-post .apc-xray-list {
    background: var(--apc-dark);
    color: #fff;
    padding: 40px;
}

.single-post .apc-xray-list__title {
    font-size: 24px;
    font-weight: 900;
    text-transform: uppercase;
    margin-bottom: 24px;
    color: #fff;
}

.single-post .apc-xray-item {
    display: grid;
    grid-template-columns: 40px 1fr;
    gap: 20px;
    margin-bottom: 24px;
}

.single-post .apc-xray-item__num {
    font-size: 18px;
    font-weight: 800;
    color: var(--apc-red);
    font-family: 'Space Mono', monospace;
}

.single-post .apc-xray-item__body h4 {
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 16px;
    margin-bottom: 4px;
    color: #fff;
}

.single-post .apc-xray-item__body p {
    margin: 0;
    color: rgba(255, 255, 255, 0.7);
}

.single-post .apc-xray-list h3,
.single-post .apc-xray-list h4 {
    color: #fff;
}

/* Links inside the dark xray-list panel — global a:hover turns them
   black, which disappears against the dark bg. Keep the red accent
   for default and flip to white on hover. */
.single-post .apc-xray-list a {
    color: var(--apc-red);
}
.single-post .apc-xray-list a:hover {
    color: #fff;
}

.single-post .apc-quick-hits {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.single-post .apc-quick-hit {
    border: 1px solid var(--apc-border);
    padding: 24px;
    border-top: 6px solid var(--apc-dark);
    background: var(--apc-bg);
    box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.03);
}

/* Icon disc — was previously almost invisible (off-white bg on a white
   card). Now: high-contrast colored badge above the heading, signaling
   the card's role. The line-style SVGs from MODULE_REGISTRY are stroked
   white inside the disc so they read at glance. */
.single-post .apc-quick-hit__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    margin-bottom: 16px;
    color: #fff;
    background: var(--apc-dark);
    border: none;
    padding: 0;
    border-radius: 50%;
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.12);
    flex-shrink: 0;
}

.single-post .apc-quick-hit__icon svg {
    width: 26px;
    height: 26px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Per-position color treatment for the gem / catch / future trio so
   the cards read as a sequence without authors needing to add modifier
   classes. Top border color echoes the disc so each card's role is
   signaled twice. .is-warning is honored as an explicit override for
   articles that arrange the cards in a different order. */
.single-post .apc-quick-hits > .apc-quick-hit:nth-child(1) {
    border-top-color: var(--apc-green);
}
.single-post .apc-quick-hits > .apc-quick-hit:nth-child(1) .apc-quick-hit__icon {
    background: var(--apc-green);
}
.single-post .apc-quick-hits > .apc-quick-hit:nth-child(2),
.single-post .apc-quick-hit.is-warning {
    border-top-color: var(--apc-red);
}
.single-post .apc-quick-hits > .apc-quick-hit:nth-child(2) .apc-quick-hit__icon,
.single-post .apc-quick-hit.is-warning .apc-quick-hit__icon {
    background: var(--apc-red);
}
/* 3rd card keeps the default dark border + dark icon — reads as
   "the future / forward-looking / definitive" against the colored pair. */

.single-post .apc-quick-hit h4 {
    font-size: 16px;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.single-post .apc-quick-hit p {
    margin: 0;
    color: var(--apc-mid);
}

.single-post .apc-tldr-callout {
    background: var(--apc-bg-soft);
    border-left: 8px solid var(--apc-dark);
    padding: 36px;
    text-align: left;
}

.single-post .apc-tldr-callout h2 {
    font-size: clamp(28px, 6vw, 40px);
    font-weight: 900;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.single-post .apc-tldr-callout p {
    font-size: 18px;
    margin: 0;
    color: var(--apc-mid);
    max-width: 640px;
}

.single-post .apc-spec-table {
    border: 1px solid var(--apc-border);
    border-top: 4px solid var(--apc-dark);
    background: var(--apc-bg);
    overflow: visible;
    overflow-y: visible;
}

.single-post .apc-spec-table__scroll {
    width: 100%;
}

.single-post .apc-spec-table__products,
.single-post .apc-spec-table__row {
    display: grid;
    grid-template-columns: 220px repeat(auto-fit, minmax(180px, 1fr));
    overflow: visible;
}

.single-post .apc-spec-table__products {
    border-bottom: 3px solid var(--apc-dark);
    background: var(--apc-bg-soft);
}

.single-post .apc-spec-table__label {
    padding: 16px 20px;
    background: var(--apc-bg-soft);
    font-size: 14px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    border-right: 1px solid var(--apc-border);
}

.single-post .apc-spec-table__product {
    padding: 20px;
    text-align: center;
    border-left: 1px solid var(--apc-border);
    position: relative;
    padding-top: 36px;
    overflow: visible;
    background: var(--apc-bg);
}

.single-post .apc-spec-table__product.is-winner {
    background: var(--apc-dark);
    color: #fff;
}

.single-post .apc-spec-table__product.is-winner h4,
.single-post .apc-spec-table__product.is-winner .apc-spec-table__price {
    color: #fff;
}

.single-post .apc-spec-table__badge {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--apc-red);
    color: #fff;
    font-size: 14px;
    letter-spacing: 0.1em;
    padding: 4px 10px;
    text-transform: uppercase;
    border-radius: 0;
    z-index: 2;
}

.single-post .apc-spec-table__row {
    border-bottom: 1px solid var(--apc-border);
    background: var(--apc-bg);
}

.single-post .apc-spec-table__row:last-child {
    border-bottom: none;
}

.single-post .apc-spec-table__feature {
    padding: 14px 20px;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 800;
    background: var(--apc-bg-soft);
    border-right: 1px solid var(--apc-border);
}

.single-post .apc-spec-table__value {
    padding: 14px 20px;
    text-align: center;
    border-left: 1px solid var(--apc-border);
    font-size: 16px;
    color: var(--apc-mid);
}

.single-post .apc-spec-table__value.is-winner {
    background: rgba(0, 0, 0, 0.02);
    font-weight: 800;
    color: var(--apc-dark);
}

.single-post .apc-buy-skip {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    border: 1px solid var(--apc-border);
    background: var(--apc-bg);
    box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.04);
}

.single-post .apc-buy-skip__col {
    border-right: 1px solid var(--apc-border);
}

.single-post .apc-buy-skip__col:last-child {
    border-right: none;
}

.single-post .apc-buy-skip__header {
    padding: 18px 24px;
    font-size: 16px;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 10px;
}

.single-post .apc-buy-skip__header.is-buy {
    background: var(--apc-dark);
}

.single-post .apc-buy-skip__header.is-skip {
    background: var(--apc-red);
}

.single-post .apc-buy-skip__header::before {
    content: '';
    width: 18px;
    height: 18px;
    border-radius: 0;
    border: 2px solid #fff;
}

.single-post .apc-buy-skip__header.is-buy::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='2 6.5 4.5 9 10 3'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
}

.single-post .apc-buy-skip__header.is-skip::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12' fill='none' stroke='white' stroke-width='2' stroke-linecap='round'%3E%3Cline x1='2' y1='2' x2='10' y2='10'/%3E%3Cline x1='10' y1='2' x2='2' y2='10'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
}

.single-post .apc-buy-skip__item {
    padding: 20px 24px;
    border-bottom: 1px solid var(--apc-border);
}

.single-post .apc-buy-skip__item:last-child {
    border-bottom: none;
}

.single-post .apc-buy-skip__item strong {
    display: block;
    font-size: 16px;
    margin-bottom: 6px;
    color: var(--apc-dark);
}

.single-post .apc-buy-skip__item p,
.single-post .apc-buy-skip__item span {
    margin: 0;
    color: var(--apc-mid);
    line-height: 1.6;
}

.single-post .apc-upgrade-matrix {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid var(--apc-border);
    box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.03);
}

.single-post .apc-upgrade-matrix thead tr {
    background: var(--apc-bg-soft);
    border-bottom: 4px solid var(--apc-dark);
}

.single-post .apc-upgrade-matrix th {
    padding: 14px 20px;
    font-size: 14px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-align: left;
}

.single-post .apc-upgrade-matrix td {
    padding: 16px 20px;
    border-bottom: 1px solid var(--apc-border);
    font-size: 16px;
}

.single-post .apc-upgrade-matrix tr:hover td {
    background: var(--apc-bg-soft);
}

.single-post .apc-upgrade-matrix .apc-tag {
    display: inline-block;
    padding: 4px 10px;
    font-size: 14px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #fff;
    border-radius: 0;
}

.single-post .apc-tag--do {
    background: var(--apc-green);
}

.single-post .apc-tag--maybe {
    background: #d14900;
}

.single-post .apc-tag--skip {
    background: var(--apc-red);
}

.single-post .apc-score-bars {
    border: 1px solid var(--apc-border);
    background: var(--apc-bg);
}

.single-post .apc-score-bars__row {
    display: grid;
    grid-template-columns: 160px 1fr 80px;
    gap: 16px;
    padding: 16px 24px;
    border-bottom: 1px solid var(--apc-border);
    align-items: center;
}

.single-post .apc-score-bars__row:last-child {
    border-bottom: none;
}

.single-post .apc-score-bars__label {
    font-size: 16px;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--apc-mid);
}

.single-post .apc-score-bars__track {
    background: var(--apc-bg-soft);
    border: 1px solid var(--apc-border);
    height: 24px;
    position: relative;
}

.single-post .apc-score-bars__fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: var(--apc-green);
    color: #fff;
    font-size: 14px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 8px;
}

.single-post .apc-score-bars__value {
    text-align: right;
    font-size: 16px;
    font-weight: 700;
    white-space: nowrap;
}

.single-post .apc-explainer-sidebar {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 24px;
    align-items: stretch;
}

.single-post .apc-explainer-sidebar__body {
    background: var(--apc-bg);
    border: 1px solid var(--apc-border);
    padding: 28px;
}

/* Legacy light-theme block intentionally deleted — the dark-theme override further
   down the file fully replaces it. The two rules used to coexist, and the `::before`
   bullet from this block kept firing on the dark version (which had no left-padding
   on the li), causing bullets to sit on top of the text. Consolidating into the
   single dark block below fixes the overlap. */

/* ====================================================================
   Concept Parity Modules
   ==================================================================== */

.single-post .picks-heading {
    border-bottom: 4px solid var(--apc-dark);
    padding-bottom: 16px;
    margin: 48px 0 16px;
}

.single-post .picks-heading h2 {
    margin: 0 0 6px 0;
    font-size: 20px;
    text-transform: uppercase;
    letter-spacing: -0.01em;
    text-align: left;
}

.single-post .picks-heading span,
.single-post .picks-heading p {
    font-size: 14px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--apc-muted);
    margin: 0;
    text-align: left;
}

.single-post .pick-row {
    border: 1px solid var(--apc-border);
    background: var(--apc-bg);
    margin-bottom: 16px;
    box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.03);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.single-post .pick-row:hover {
    border-color: rgba(0, 0, 0, 0.25);
    box-shadow: 6px 6px 0 rgba(0, 0, 0, 0.05);
}

.single-post .pick-row-main {
    display: grid;
    grid-template-columns: 140px 1fr auto;
    align-items: stretch;
    cursor: pointer;
}

.single-post .pick-img-ph,
.single-post .pick-img {
    width: 140px;
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    letter-spacing: 0.08em;
}

.single-post .pick-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.single-post .pick-img.lazyloaded,
.single-post .pick-img img.lazyloaded {
    padding: 5px;
}

.single-post .pick-info {
    padding: 24px;
    border-left: 0;
    border-right: 1px solid var(--apc-border);
}

.single-post .pick-info .pick-label {
    font-size: 14px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--apc-red);
    margin-bottom: 6px;
}

.single-post .pick-info h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 800;
}

.single-post .pick-right {
    padding: 24px;
    text-align: right;
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: flex-end;
    min-width: 200px;
    background: #fafafa;
}

.single-post .pick-right .price-main,
.single-post .pick-price {
    font-size: 22px;
    font-weight: 800;
}

.single-post .price-sub,
.single-post .pick-savings {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    font-size: 16px;
    color: var(--apc-muted);
}

.single-post .price-old,
.single-post .pick-savings .is-old {
    text-decoration: line-through;
    color: var(--apc-muted);
}

.single-post .price-save,
.single-post .pick-savings .is-save {
    color: var(--apc-red);
    text-transform: uppercase;
    font-weight: 700;
}

.single-post .btn-see {
    margin-top: 12px;
    border: 2px solid var(--apc-red);
    background: var(--apc-red);
    color: #fff !important;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 800;
    padding: 10px 26px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none !important;
}

.single-post .btn-see:hover {
    background: transparent;
    color: var(--apc-red) !important;
}

.single-post .pick-row .accordion-toggle {
    border-top: 1px solid var(--apc-border);
    padding: 12px 20px;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-size: 11px;
    font-weight: 800;
    cursor: pointer;
    color: var(--apc-dark);
    text-align: center;
    transition: background 0.2s ease, color 0.2s ease;
}

.single-post .pick-row .accordion-toggle:hover {
    background: var(--apc-bg-soft);
}

.single-post .pick-row .accordion-toggle.open-state {
    color: var(--apc-red);
    background: var(--apc-bg-soft);
}

.single-post .pick-row .accordion-content {
    display: none;
    padding: 24px;
    border-top: 1px solid var(--apc-border);
    background: var(--apc-bg);
}

.single-post .pick-row .accordion-content.open {
    display: block;
}

.single-post .pros-cons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 32px;
    padding-top: 16px;
}

.single-post .pc-col {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.single-post .pc-col h5 {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 800;
    margin: 0;
    border-bottom: 2px solid var(--apc-border);
    padding-bottom: 6px;
}

.single-post .pc-col.pros h5 {
    color: var(--apc-dark);
    border-color: var(--apc-dark);
}

.single-post .pc-col.cons h5 {
    color: var(--apc-muted);
    border-color: var(--apc-border);
}

.single-post .pc-col ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.single-post .pc-col li {
    position: relative;
    padding: 8px 0 8px 24px;
    color: var(--apc-mid);
    border-bottom: 1px solid var(--apc-border);
    font-size: 14px;
}

.single-post .pc-col li:last-child {
    border-bottom: none;
}

.single-post .pc-col li::before {
    position: absolute;
    left: 0;
    top: 10px;
    font-weight: 800;
    font-size: 16px;
}

.single-post .pc-col.pros li::before {
    content: '+';
    color: var(--apc-green);
}

.single-post .pc-col.cons li::before {
    content: '−';
    color: var(--apc-red);
}

.single-post .pick-verdict {
    margin-top: 24px;
    padding: 16px;
    border-left: 4px solid var(--apc-red);
    background: var(--apc-bg-soft);
    font-size: 14px;
    color: var(--apc-dark);
}

.single-post .pick-verdict strong {
    display: block;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 12px;
    margin-bottom: 4px;
    color: var(--apc-red);
}

@media (max-width: 820px) {
    .single-post .pick-row-main {
        grid-template-columns: 110px minmax(0, 1fr);
        align-items: flex-start;
        gap: 14px;
    }

    .single-post .pick-img-ph,
    .single-post .pick-img {
        width: 100%;
        height: auto;
        max-width: 110px;
        min-height: 130px;
    }

    .single-post .pick-info {
        border-left: 0;
        border-right: none;
        border-top: none;
        border-bottom: none;
        padding: 12px 0 12px 16px;
    }

    .single-post .pick-info h3 {
        font-size: 18px;
    }

    .single-post .pick-right {
        padding: 16px;
        text-align: left;
        grid-column: 1 / -1;
        border-top: 1px solid var(--apc-border);
        margin-top: 8px;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
    }

    .single-post .pick-right .btn-see {
        margin-top: 0;
    }

    .single-post .price-sub,
    .single-post .pick-savings {
        justify-content: flex-start;
    }
}
@media (max-width: 640px) {
    .single-post .pros-cons-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

.single-post .bench-card {
    background: var(--apc-bg);
    border: 1px solid var(--apc-border);
    box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.03);
    margin: 48px 0;
}

.single-post .bench-header {
    padding: 20px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 4px solid var(--apc-dark);
    background: #fafafa;
}

.single-post .bench-header h3 {
    font-size: 16px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    margin: 0;
}

.single-post .bench-header span {
    font-size: 14px;
    color: var(--apc-muted);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.single-post .bench-row {
    padding: 16px 24px;
    border-bottom: 1px solid var(--apc-border);
    display: grid;
    grid-template-columns: 160px 1fr 100px;
    gap: 24px;
    align-items: center;
    transition: background 0.2s ease;
}

.single-post .bench-row:last-child {
    border-bottom: none;
}

.single-post .bench-row:hover {
    background: #fafafa;
}

.single-post .game-name {
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 4px;
}

.single-post .game-res {
    font-size: 14px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--apc-muted);
}

.single-post .bench-bars {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.single-post .bench-bar-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
}

.single-post .bench-bar-wrap span {
    font-size: 14px;
    font-weight: 800;
    width: 60px;
    flex-shrink: 0;
    text-transform: uppercase;
}

.single-post .bench-track {
    flex: 1;
    height: 20px;
    background: var(--apc-bg-soft);
    border: 1px solid var(--apc-border);
    position: relative;
    overflow: hidden;
}

.single-post .bench-fill {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    color: #fff;
    font-size: 14px;
    font-weight: 800;
    padding: 0 8px;
}

.single-post .bench-winner {
    font-size: 14px;
    font-weight: 800;
    text-align: right;
    text-transform: uppercase;
    padding-left: 12px;
    border-left: 1px solid var(--apc-border);
}

.single-post .verdict-strip {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    border: 1px solid var(--apc-border);
    background: var(--apc-bg);
    box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.03);
    margin: 48px 0;
}

.single-post .vs-item {
    padding: 32px 24px;
    border-right: 1px solid var(--apc-border);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.single-post .vs-item:last-child {
    border-right: none;
}

.single-post .vs-item.featured {
    background: var(--apc-dark);
    color: #fff;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.single-post .vs-persona {
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--apc-muted);
}

.single-post .vs-item.featured .vs-persona {
    color: rgba(255, 255, 255, 0.6);
}

.single-post .vs-pick {
    font-size: 20px;
    font-weight: 800;
    margin: 0;
}

.single-post .vs-item.featured .vs-pick {
    color: #fff;
}

.single-post .vs-reason {
    font-size: 16px;
    color: var(--apc-mid);
    line-height: 1.6;
    flex-grow: 1;
}

.single-post .vs-item.featured .vs-reason {
    color: rgba(255, 255, 255, 0.75);
}

.single-post .vs-flag {
    font-size: 14px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border-top: 2px solid var(--apc-red);
    padding-top: 12px;
    color: var(--apc-red);
}

.single-post .vs-item.featured .vs-flag {
    border-top-color: #fff;
    color: #fff;
}

.single-post .score-card {
    display: grid;
    grid-template-columns: 240px 1fr;
    border: 1px solid var(--apc-border);
    background: var(--apc-bg);
    margin: 48px 0;
}

.single-post .score-main {
    background: var(--apc-dark);
    color: #fff;
    padding: 32px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.single-post .score-main h3 {
    font-size: 16px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 16px;
}

.single-post .score-big {
    font-size: 72px;
    font-weight: 800;
    line-height: 1;
}

.single-post .score-big span {
    font-size: 24px;
    color: var(--apc-red);
}

.single-post .score-rows {
    padding: 24px 32px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    justify-content: center;
}

.single-post .s-row {
    display: grid;
    grid-template-columns: 160px 1fr 40px;
    align-items: center;
    gap: 24px;
}

.single-post .s-label {
    font-size: 16px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--apc-mid);
}

.single-post .s-track {
    height: 12px;
    background: var(--apc-bg-soft);
    border: 1px solid var(--apc-border);
    position: relative;
}

.single-post .s-fill {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    background: var(--apc-red);
}

.single-post .s-num {
    font-size: 16px;
    font-weight: 800;
    text-align: right;
    color: var(--apc-dark);
}

.single-post .qp-heading {
    border-bottom: 4px solid var(--apc-dark);
    padding-bottom: 12px;
    margin: 48px 0 0;
}

.single-post .qp-heading h2 {
    margin: 0;
    font-size: 22px;
    text-transform: uppercase;
    letter-spacing: -0.01em;
}

.single-post .qp-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    border: 1px solid var(--apc-border);
    border-top: none;
    background: var(--apc-bg);
    box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.03);
    margin-bottom: 48px;
}

.single-post .qp-item {
    border-right: 1px solid var(--apc-border);
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.single-post .qp-item:last-child {
    border-right: none;
}

.single-post .qp-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    background: #fff;
    position: relative;
    z-index: 5;
}

.single-post .qp-item-img {
    width: 100%;
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.4);
}

.single-post .qp-item-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex-grow: 1;
}

.single-post .qp-item-rank {
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--apc-muted);
}

.single-post .qp-item h4 {
    margin: 0;
    font-size: 18px;
    font-weight: 800;
}

.single-post .qp-item p {
    margin: 0;
    color: var(--apc-mid);
    flex-grow: 1;
}

.single-post .qp-item a {
    font-size: 16px;
    color: var(--apc-red);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-decoration: none;
}

.single-post .glossary-wrap {
    border: 1px solid var(--apc-border);
    margin: 48px 0;
}

.single-post .glossary-head {
    padding: 18px 24px;
    border-bottom: 2px solid var(--apc-dark);
}

.single-post .glossary-head h3 {
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 16px;
}

.single-post .gl-row {
    display: grid;
    grid-template-columns: 200px 1fr;
    border-bottom: 1px solid var(--apc-border);
    padding: 16px 24px;
    gap: 20px;
}

.single-post .gl-row:last-child {
    border-bottom: none;
}

.single-post .gl-term {
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 14px;
    color: var(--apc-mid);
}

.single-post .gl-def {
    margin: 0;
    color: var(--apc-mid);
}

.single-post .explainer-wrap {
    display: grid;
    grid-template-columns: 2fr 1fr;
    border: 1px solid var(--apc-border);
    background: var(--apc-bg);
    box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.03);
    margin: 48px 0;
}

.single-post .explainer-main {
    padding: 32px;
    border-right: 1px solid var(--apc-border);
}

.single-post .explainer-main h3 {
    margin: 0 0 16px;
    font-size: 20px;
    text-transform: uppercase;
    letter-spacing: -0.01em;
}

.single-post .explainer-main p {
    font-size: 16px;
    color: var(--apc-mid);
    line-height: 1.7;
}

.single-post .explainer-side {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 24px;
    background: var(--apc-bg-soft);
}

.single-post .callout {
    border: 2px solid var(--apc-dark);
    padding: 16px;
}

.single-post .callout.green {
    border-color: var(--apc-green);
}

.single-post .callout.red {
    border-color: var(--apc-red);
}

.single-post .callout-head {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 800;
    margin-bottom: 8px;
}

.single-post .callout-body {
    font-size: 16px;
    color: var(--apc-mid);
    line-height: 1.6;
}

.single-post .rivalry-block {
    display: flex;
    border: 4px solid var(--apc-dark);
    background: var(--apc-bg);
    position: relative;
    margin: 48px 0;
}

.single-post .rival-side {
    flex: 1;
    padding: 40px;
    position: relative;
}

.single-post .rival-side.left {
    background: #fafafa;
    border-right: 2px solid var(--apc-dark);
}

.single-post .rival-label {
    font-size: 14px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    display: inline-block;
    padding: 4px 12px;
    background: var(--apc-dark);
    color: #fff;
    margin-bottom: 20px;
}

.single-post .rival-side.right .rival-label {
    background: #eee;
    color: var(--apc-dark);
}

.single-post .rivalry-block blockquote {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    font-style: italic;
    line-height: 1.4;
    color: var(--apc-dark);
}

.single-post .vs-badge {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    background: var(--apc-red);
    color: #fff;
    padding: 12px 18px;
    font-weight: 900;
    font-size: 18px;
    z-index: 5;
    box-shadow: 0 10px 25px rgba(230, 0, 35, 0.3);
}

.single-post .log-wrap {
    border: 1px solid var(--apc-border);
    margin: 48px 0;
}

.single-post .log-header {
    background: #fafafa;
    border-bottom: 1px solid var(--apc-border);
    padding: 16px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.single-post .log-header h3 {
    margin: 0;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.single-post .log-entry {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 24px;
    padding: 24px;
    border-bottom: 1px solid var(--apc-border);
}

.single-post .log-entry:last-child {
    border-bottom: none;
}

.single-post .log-date {
    font-size: 14px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--apc-muted);
}

.single-post .log-body h4 {
    margin: 0 0 8px;
    font-size: 16px;
    font-weight: 800;
}

.single-post .log-body p {
    margin: 0;
    color: var(--apc-mid);
}

.single-post .box-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1px;
    background: var(--apc-border);
    border: 1px solid var(--apc-border);
    margin: 48px 0;
}

.single-post .box-item {
    background: var(--apc-bg);
    padding: 20px;
    text-align: center;
}

.single-post .box-item-img {
    height: 60px;
    background: var(--apc-bg-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    color: var(--apc-border);
    margin-bottom: 12px;
}

.single-post .box-item-name {
    font-size: 14px;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--apc-muted);
    letter-spacing: 0.08em;
}

@media (max-width: 767px) {
    .single-post .apc-verdict-banner {
        grid-template-columns: 100%;
    }

    .single-post .apc-feature-dots__header,
    .single-post .apc-feature-dots__row,
    .single-post .apc-spec-table__products,
    .single-post .apc-spec-table__row {
        grid-template-columns: repeat(2, minmax(160px, 1fr));
    }

    .single-post .apc-explainer-sidebar {
        grid-template-columns: 1fr;
    }
}

/* ====================================================================
   Responsive - Desktop max-width
    ==================================================================== */

@media (min-width: 768px) {
    .single-post .single-content,
    .single-post .entry-header,
    .single-post .entry-content {
        max-width: 1200px;
        width: 100%;
        margin: 0 auto;
    }
}

/* =============================================================================
 * Phase 6.6 — module visual revamp
 * ============================================================================= */

/* --- apc-stat-trio: middle stat becomes the hero -------------------------- */
.single-post .apc-stat-trio .apc-stat:nth-child(3n+2) {
    background: var(--apc-dark);
    color: #fff;
    position: relative;
    z-index: 2;
    box-shadow: 0 0 0 2px var(--apc-dark);
}
.single-post .apc-stat-trio .apc-stat:nth-child(3n+2) .apc-stat__value {
    color: var(--apc-red);
    font-size: 56px;
    text-shadow: 0 1px 0 rgba(0, 0, 0, 0.4);
}
.single-post .apc-stat-trio .apc-stat:nth-child(3n+2) .apc-stat__label {
    color: #fff;
}
.single-post .apc-stat-trio .apc-stat:nth-child(3n+2) .apc-stat__context {
    color: rgba(255, 255, 255, 0.82);
    border-top-color: rgba(255, 255, 255, 0.18);
}

/* --- apc-spec-table: fix blank columns ------------------------------------
 * Previous layout used grid-template-columns: 220px repeat(auto-fit, minmax(180px, 1fr))
 * which creates more tracks than products when the container is wide (the browser sizes
 * empty tracks even with auto-fit in some layouts). Flex sizes tracks by content count.
 */
.single-post .apc-spec-table__products,
.single-post .apc-spec-table__row {
    display: flex;
    grid-template-columns: none;
}
.single-post .apc-spec-table__label,
.single-post .apc-spec-table__feature {
    flex: 0 0 220px;
}
.single-post .apc-spec-table__product,
.single-post .apc-spec-table__value {
    flex: 1 1 0;
    min-width: 0;
}
@media (max-width: 640px) {
    .single-post .apc-spec-table__products,
    .single-post .apc-spec-table__row {
        flex-wrap: wrap;
    }
    .single-post .apc-spec-table__label,
    .single-post .apc-spec-table__feature {
        flex: 1 1 100%;
    }
}

/* --- apc-buy-skip: per-item check/x icons --------------------------------- */
.single-post .apc-buy-skip__item {
    position: relative;
    padding-left: 54px;
}
.single-post .apc-buy-skip__item::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 22px;
    width: 22px;
    height: 22px;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}
.single-post .apc-buy-skip__col:first-child .apc-buy-skip__item::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' viewBox='0 0 22 22' fill='none' stroke='%231a7a42' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='9'/%3E%3Cpath d='M6.5 11.5l3 3 6-7'/%3E%3C/svg%3E");
}
.single-post .apc-buy-skip__col:last-child .apc-buy-skip__item::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' viewBox='0 0 22 22' fill='none' stroke='%23c62828' stroke-width='2.5' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='9'/%3E%3Cline x1='7' y1='7' x2='15' y2='15'/%3E%3Cline x1='15' y1='7' x2='7' y2='15'/%3E%3C/svg%3E");
}

/* --- apc-side-narrative: hierarchy + scannable highlights ----------------- */
.single-post .apc-side-narrative__col h3 {
    font-size: 22px;
    font-weight: 800;
    line-height: 1.25;
    margin-bottom: 14px;
    color: var(--apc-dark);
}
.single-post .apc-side-narrative__col p strong {
    color: var(--apc-dark);
    font-weight: 800;
    /* Brand-tinted underline-style emphasis — replaces the yellow marker bg
       which read as text-highlighter pen and clashed with the editorial tone.
       Uses text-decoration so the line tracks the actual text (multi-line
       wraps included) and doesn't need padding/margin tricks. The thick
       underline + offset gives a deliberate "marker" feel without bg fill. */
    background: none;
    padding: 0;
    text-decoration: underline;
    text-decoration-color: var(--apc-red);
    text-decoration-thickness: 3px;
    text-underline-offset: 3px;
    text-decoration-skip-ink: none;
}
.single-post .apc-side-narrative__col p em {
    color: var(--apc-dark);
    font-weight: 600;
    font-style: normal;
    border-bottom: 1px dashed var(--apc-muted);
}
.single-post .apc-side-narrative__bottom,
.single-post .apc-side-narrative__summary {
    display: inline-block;
    margin-top: auto;
    align-self: flex-start;
    padding: 8px 14px;
    background: #fff;
    border-left: 3px solid var(--apc-red);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--apc-dark);
}

/* --- apc-explainer-sidebar: body highlights + dark sidebar ---------------- */
.single-post .apc-explainer-sidebar__body strong {
    background: linear-gradient(180deg, transparent 62%, #fff176 62%);
    font-weight: 700;
    padding: 0 1px;
}
.single-post .apc-explainer-sidebar__body h3 {
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 14px;
    color: var(--apc-dark);
}
.single-post .apc-explainer-sidebar__sidebar {
    background: var(--apc-dark);
    color: #fff;
    padding: 24px;
    border-left: 3px solid var(--apc-red);
}
.single-post .apc-explainer-sidebar__sidebar h4 {
    color: var(--apc-red);
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin: 0 0 14px;
}
.single-post .apc-explainer-sidebar__sidebar ul {
    list-style: none;
    margin: 0;
    padding: 0;
}
.single-post .apc-explainer-sidebar__sidebar li {
    color: rgba(255, 255, 255, 0.9);
    padding: 10px 0 10px 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
    font-size: 15px;
    line-height: 1.5;
    position: relative;
}
.single-post .apc-explainer-sidebar__sidebar li::before {
    content: '';
    position: absolute;
    width: 6px;
    height: 6px;
    background: var(--apc-red);
    left: 0;
    top: 18px;
}
.single-post .apc-explainer-sidebar__sidebar li:last-child {
    border-bottom: none;
}
.single-post .apc-explainer-sidebar__sidebar li strong {
    color: #fff;
    background: none;
}

/* --- apc-product-grid (new module in Phase 6.5) ---------------------------
 * Fixed-size image container (220px) beats aspect-ratio here — aspect-ratio +
 * auto-fill grid expands cards to whatever width is available, which in turn
 * makes the image container tall enough that a cropped product photo loses its
 * subject. Locking the image box to 220px and using object-fit: contain keeps
 * the whole product visible with consistent whitespace framing. */
.single-post .apc-product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 280px));
    justify-content: start;
    gap: 18px;
    margin: 32px 0;
}
.single-post .apc-product-card {
    display: flex;
    flex-direction: column;
    background: var(--apc-bg);
    border: 1px solid var(--apc-border);
    text-decoration: none !important;
    color: var(--apc-dark);
    transition: transform 150ms ease, box-shadow 150ms ease, border-color 150ms ease;
    overflow: hidden;
}
/* Override theme's default anchor styling inside cards (red / underlined). */
.single-post .entry-content a.apc-product-card,
.single-post .post-content a.apc-product-card {
    color: var(--apc-dark);
    font-weight: inherit;
}
.single-post .entry-content a.apc-product-card:hover,
.single-post .post-content a.apc-product-card:hover {
    color: var(--apc-dark);
    text-decoration: none;
}
.single-post .apc-product-card:hover {
    transform: translateY(-3px);
    box-shadow: 6px 6px 0 rgba(0, 0, 0, 0.08);
    border-color: var(--apc-dark);
}
.single-post .apc-product-card__img {
    height: 220px;
    padding: 16px;
    background: var(--apc-bg-soft);
    border-bottom: 1px solid var(--apc-border);
    display: flex;
    align-items: center;
    justify-content: center;
}
.single-post .apc-product-card__img img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}
.single-post .apc-product-card__body {
    padding: 14px 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.single-post .apc-product-card__category {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    color: var(--apc-muted);
    margin: 0;
}
.single-post .apc-product-card__title {
    font-size: 15px;
    font-weight: 700;
    margin: 0;
    line-height: 1.3;
    color: var(--apc-dark);
    /* Clamp to 2 lines so cards stay aligned regardless of title length. */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.6em;
}
.single-post .apc-product-card__price {
    font-size: 19px;
    font-weight: 800;
    color: var(--apc-dark);
    margin: auto 0 0;
    padding-top: 10px;
}
.single-post .apc-product-card__cta {
    display: block;
    padding: 11px 16px;
    background: var(--apc-dark);
    color: #fff !important;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    text-align: center;
    transition: background-color 120ms ease;
}
.single-post .apc-product-card:hover .apc-product-card__cta {
    background: var(--apc-red);
    color: #fff !important;
}
@media (max-width: 480px) {
    .single-post .apc-product-grid {
        grid-template-columns: 1fr;
    }
    .single-post .apc-product-card__img {
        height: 200px;
    }
}

/* Safety net — if the styling pass drops product-card children directly into the grid
   instead of wrapping them in <a class="apc-product-card">, those orphan pieces become
   their own grid cells and break the layout. Hide any direct-child piece that isn't a
   properly-wrapped card. The client-side repair pass handles 99% of cases; this CSS
   fallback catches the rest so broken output still looks sane. */
.single-post .apc-product-grid > .apc-product-card__img,
.single-post .apc-product-grid > .apc-product-card__body,
.single-post .apc-product-grid > .apc-product-card__cta {
    display: none;
}

/* ---------- Component thumbnails ---------- */
/* Shared thumbnail anchor — used across verdict-banner (existing), product-verdict,
   decision-card, spec-table, side-narrative, buy-skip, tier-ladder, hero-stat. Each
   module below slightly restyles its layout to accommodate the thumb slot gracefully
   whether or not an image landed in it. */

.single-post .apc-product-verdict__thumb,
.single-post .apc-decision-card__thumb,
.single-post .apc-hero-stat__thumb,
.single-post .apc-spec-table__thumb,
.single-post .apc-side-narrative__thumb,
.single-post .apc-buy-skip__thumb,
.single-post .apc-tier-ladder__thumb {
    display: block;
    flex-shrink: 0;
    position: relative;
    transition: transform 0.2s ease, filter 0.2s ease;
    text-decoration: none;
}
.single-post .apc-product-verdict__thumb img,
.single-post .apc-decision-card__thumb img,
.single-post .apc-hero-stat__thumb img,
.single-post .apc-spec-table__thumb img,
.single-post .apc-side-narrative__thumb img,
.single-post .apc-buy-skip__thumb img,
.single-post .apc-tier-ladder__thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}
.single-post .apc-product-verdict__thumb:hover,
.single-post .apc-decision-card__thumb:hover,
.single-post .apc-hero-stat__thumb:hover,
.single-post .apc-spec-table__thumb:hover,
.single-post .apc-side-narrative__thumb:hover,
.single-post .apc-buy-skip__thumb:hover,
.single-post .apc-tier-ladder__thumb:hover {
    transform: scale(1.08);
}

/* Product verdict banner — same layout as verdict-banner (dark body with __body
   flex container), thumb glow is slightly subtler to distinguish from the accent
   red verdict banner. */
.single-post .apc-product-verdict__body {
    padding: 24px 32px;
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: nowrap;
}
.single-post .apc-product-verdict__thumb {
    width: 110px;
    height: 110px;
}
.single-post .apc-product-verdict__thumb img {
    filter: drop-shadow(0 10px 22px rgba(255, 77, 0, 0.3));
}
.single-post .apc-product-verdict__thumb:hover img {
    filter: drop-shadow(0 14px 26px rgba(255, 77, 0, 0.42));
}

/* Decision card — thumb floats top-left, content flows to the right.
   The :has() guard means we ONLY switch the card to grid layout when a thumbnail
   is actually present. Without it, the card stays as its original block layout
   (stacked __label / h3 / p / __cta), which is what decision cards without a
   product reference need. Grid with `auto 1fr` collapses col-1 to zero when empty,
   so we could always apply it — but gating on :has() avoids any layout shift for
   older browsers without :has() support. */
.single-post .apc-decision-card:has(> .apc-decision-card__thumb) {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0 20px;
    align-items: start;
}
.single-post .apc-decision-card:has(> .apc-decision-card__thumb) > *:not(.apc-decision-card__thumb) {
    grid-column: 2;
}
.single-post .apc-decision-card__thumb {
    width: 88px;
    height: 88px;
    grid-row: 1 / -1;  /* span all rows so content flows to the right of the thumb */
}
.single-post .apc-decision-card__thumb img {
    filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.15));
}

/* Hero stat — thumb floats right of the big statistic, gated on :has() so cards
   without a thumbnail keep their original layout untouched. */
.single-post .apc-hero-stat:has(> .apc-hero-stat__thumb) {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0 24px;
    align-items: center;
}
.single-post .apc-hero-stat:has(> .apc-hero-stat__thumb) > *:not(.apc-hero-stat__thumb) {
    grid-column: 1;
}
.single-post .apc-hero-stat__thumb {
    grid-column: 2;
    grid-row: 1 / -1;
    width: 110px;
    height: 110px;
}
.single-post .apc-hero-stat__thumb img {
    filter: drop-shadow(0 10px 22px rgba(255, 77, 0, 0.28));
}

/* Spec table — thumb sits centered above each product column header (h4 + price).
   The existing .apc-spec-table__product is vertically stacked; the thumb drops in
   at the top without needing flex reordering. */
.single-post .apc-spec-table__thumb {
    width: 72px;
    height: 72px;
    margin: 0 auto 10px;
}
.single-post .apc-spec-table__thumb img {
    filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.12));
}

/* Side narrative — thumb sits above each side's content, centered. Works with any
   existing __side layout because the thumb is just a block-level child at the top. */
.single-post .apc-side-narrative__thumb {
    width: 96px;
    height: 96px;
    margin: 0 auto 14px;
}
.single-post .apc-side-narrative__thumb img {
    filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.15));
}

/* Buy-skip — thumb sits inside each column next to the header "Buy X if…" text.
   Column is currently block-stacked; thumb centers on top for visual balance. */
.single-post .apc-buy-skip__thumb {
    width: 80px;
    height: 80px;
    margin: 0 auto 10px;
}
.single-post .apc-buy-skip__thumb img {
    filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.12));
}

/* Tier ladder — small thumb inline next to the tier label. Inline-flex so the
   thumb shares the row with the existing tier header text/badge. */
.single-post .apc-tier-ladder__thumb {
    display: inline-block;
    vertical-align: middle;
    width: 52px;
    height: 52px;
    margin-right: 12px;
}
.single-post .apc-tier-ladder__thumb img {
    filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.1));
}

/* Mobile tweaks — stack the thumb above text on narrow viewports. Matching the
   :has() guards so only cards WITH thumbs get restacked. */
@media (max-width: 640px) {
    .single-post .apc-decision-card:has(> .apc-decision-card__thumb),
    .single-post .apc-hero-stat:has(> .apc-hero-stat__thumb) {
        grid-template-columns: 1fr;
    }
    .single-post .apc-decision-card:has(> .apc-decision-card__thumb) > *:not(.apc-decision-card__thumb),
    .single-post .apc-hero-stat:has(> .apc-hero-stat__thumb) > *:not(.apc-hero-stat__thumb) {
        grid-column: 1;
    }
    .single-post .apc-hero-stat__thumb,
    .single-post .apc-decision-card__thumb {
        grid-column: 1;
        grid-row: auto;
    }
    .single-post .apc-product-verdict__body {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* ====================================================================
   Article body images — match the module aesthetic.
   Cap tall (portrait) uploads so they don't dominate, frame in a soft-bg
   passe-partout that echoes .apc-product-card__img and .apc-tldr-callout.
   ==================================================================== */

/* The frame around figures (block editor + Classic editor variants),
   the WP post-thumbnail, and the Elementor "Post Featured Image" widget
   so featured images match body images. */
.single-post .entry-content figure.wp-block-image,
.single-post .entry-content figure:not(.wp-block-embed):not(.wp-block-table):not(.wp-block-pullquote):not(.wp-block-quote),
.single-post .post-thumbnail,
.single-post .elementor-widget-theme-post-featured-image {
    margin: 40px auto;
    padding: 20px;
    background: var(--apc-bg-soft);
    border: 1px solid var(--apc-border);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    text-align: center;
    box-sizing: border-box;
    max-width: 100%;
}

/* The image itself — preserves aspect ratio, caps both width and height.
   Wide images: width fills container. Tall images: height capped at 40vh
   and width auto-shrinks proportionally so they sit centered & narrow. */
.single-post .entry-content figure.wp-block-image img,
.single-post .entry-content figure img,
.single-post .entry-content > p > img:only-child,
.single-post .entry-content > img,
.single-post .post-thumbnail img,
.single-post .elementor-widget-theme-post-featured-image img {
    display: block;
    margin: 0 auto;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 40vh;
}

/* Free-standing <img> not wrapped in a figure — give it the same frame
   inline, since Classic editor + plugins sometimes emit bare <img>. */
.single-post .entry-content > p > img:only-child,
.single-post .entry-content > img {
    margin: 40px auto;
    padding: 20px;
    background: var(--apc-bg-soft);
    border: 1px solid var(--apc-border);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    box-sizing: border-box;
}

/* Caption — match the .apc-section-heading micro-label feel: uppercase,
   letter-spaced, muted. Sits inside the frame, below the image. */
.single-post .entry-content figure.wp-block-image figcaption,
.single-post .entry-content figure figcaption {
    margin: 14px 0 0;
    padding: 0 8px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--apc-muted);
    text-align: center;
    line-height: 1.4;
    font-style: normal;
}

/* Honor WP alignment classes — alignleft/alignright are typically used
   for small inline images that wrap text; the frame would feel heavy
   there, so flatten back to a clean image. */
.single-post .entry-content figure.alignleft,
.single-post .entry-content figure.alignright,
.single-post .entry-content img.alignleft,
.single-post .entry-content img.alignright {
    background: transparent;
    border: 0;
    padding: 0;
    box-shadow: none;
    max-width: 50%;
}

/* Mobile — frame too tight on narrow screens, ease padding & cap height. */
@media (max-width: 640px) {
    .single-post .entry-content figure.wp-block-image,
    .single-post .entry-content figure:not(.wp-block-embed):not(.wp-block-table):not(.wp-block-pullquote):not(.wp-block-quote),
    .single-post .entry-content > p > img:only-child,
    .single-post .entry-content > img,
    .single-post .post-thumbnail,
    .single-post .elementor-widget-theme-post-featured-image {
        margin: 28px auto;
        padding: 12px;
    }
    .single-post .entry-content figure.wp-block-image img,
    .single-post .entry-content figure img,
    .single-post .entry-content > p > img:only-child,
    .single-post .entry-content > img,
    .single-post .post-thumbnail img,
    .single-post .elementor-widget-theme-post-featured-image img {
        max-height: 40vh;
    }
}

/* ====================================================================
   Multi-column modules — collapse to a single column earlier so they
   don't get squished. Default auto-fit math kicks in too late at the
   narrow column widths defined per-module (220-260px); 900px feels
   right for a single-column reading width before things compress.
   ==================================================================== */
@media (max-width: 900px) {
    .single-post .apc-stat-trio,
    .single-post .apc-side-narrative,
    .single-post .apc-persona-grid,
    .single-post .apc-quick-hits,
    .single-post .apc-buy-skip,
    .single-post .apc-product-grid,
    .single-post .pros-cons-grid,
    .single-post .verdict-strip,
    .single-post .qp-grid {
        grid-template-columns: 1fr;
    }

    /* When side-narrative stacks, swap the divider from left-of-col
       to top-of-col so the visual seam still reads correctly. */
    .single-post .apc-side-narrative__col + .apc-side-narrative__col {
        border-left: 0;
        border-top: 1px solid var(--apc-border);
    }
}

/* ====================================================================
   Lightbox — wraps each article body image in a span so we can overlay
   a small "expand" icon button at the top-right corner. Clicking either
   the icon or the image opens a native <dialog> with the full-resolution
   render. Driven by js/apc-blog.js apc-lightbox IIFE.
   ==================================================================== */
.single-post .apc-lightbox-trigger {
    position: relative;
    display: inline-block;
    line-height: 0;
    max-width: 100%;
}
.single-post .apc-lightbox-trigger img {
    cursor: zoom-in;
}
.single-post .apc-lightbox-trigger__btn {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    padding: 0;
    margin: 0;
    border: 0;
    background: rgba(17, 17, 17, 0.78);
    color: #fff;
    cursor: pointer;
    opacity: 0;
    transform: translateY(-4px);
    transition: opacity 0.18s ease, transform 0.18s ease, background 0.15s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}
.single-post .apc-lightbox-trigger:hover .apc-lightbox-trigger__btn,
.single-post .apc-lightbox-trigger:focus-within .apc-lightbox-trigger__btn {
    opacity: 1;
    transform: translateY(0);
}
.single-post .apc-lightbox-trigger__btn:hover,
.single-post .apc-lightbox-trigger__btn:focus-visible {
    background: var(--apc-red);
    outline: none;
}
/* Touch devices have no hover state — keep the icon visible at lower
   contrast so it's still discoverable. */
@media (hover: none) {
    .single-post .apc-lightbox-trigger__btn {
        opacity: 0.85;
        transform: none;
    }
}

/* The dialog itself. Uses the native <dialog> + ::backdrop. Border-radius
   stays 0 to match the design language. */
dialog.apc-lightbox {
    border: 0;
    padding: 0;
    margin: 0;
    width: min(92vw, 1600px);
    height: min(92vh, 1200px);
    max-width: none;
    max-height: none;
    background: #111;
    color: #fff;
    overflow: hidden;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}
dialog.apc-lightbox::backdrop {
    background: rgba(0, 0, 0, 0.85);
}
.apc-lightbox__img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #000;
    cursor: zoom-out;
}
.apc-lightbox[data-loading="1"] .apc-lightbox__img {
    opacity: 0.4;
}
.apc-lightbox__close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    background: rgba(17, 17, 17, 0.85);
    color: #fff;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: background 0.15s ease;
}
.apc-lightbox__close:hover,
.apc-lightbox__close:focus-visible {
    background: var(--apc-red);
    outline: none;
}
.apc-lightbox__caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 14px 56px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85), rgba(0, 0, 0, 0));
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    text-align: center;
    pointer-events: none;
}
