/* ==========================================================================
   Exercise Comparison Page - Enhanced UI/UX Styles
   ========================================================================== */

/* CSS Custom Properties - Emerald Green Theme (matches substitution-engine) */
.excomp-comparison {
    /* Primary - Emerald Green */
    --excomp-primary: #059669;
    --excomp-primary-hover: #047857;
    --excomp-primary-light: rgba(5, 150, 105, 0.1);
    --excomp-primary-dark: #065f46;

    /* Accent - Cyan */
    --excomp-accent: #06b6d4;
    --excomp-accent-light: rgba(6, 182, 212, 0.1);

    /* Semantic Colors */
    --excomp-success: #16a34a;
    --excomp-success-light: #f0fdf4;
    --excomp-success-bg: #dcfce7;
    --excomp-error: #dc2626;
    --excomp-error-light: #fee2e2;
    --excomp-warning: #f59e0b;
    --excomp-warning-light: #fef3c7;

    /* Text - Warm Stone Palette */
    --excomp-text-primary: #1c1917;
    --excomp-text-secondary: #57534e;
    --excomp-text-muted: #78716c;

    /* Borders & Backgrounds */
    --excomp-border: #e7e5e4;
    --excomp-border-hover: #d6d3d1;
    --excomp-bg-subtle: #fafaf9;
    --excomp-bg-card: #fff;
    --excomp-bg-gradient: linear-gradient(135deg, #ecfdf5 0%, #f0fdfa 50%, #f5f5f4 100%);

    /* Border Radius */
    --excomp-radius-sm: 8px;
    --excomp-radius-md: 12px;
    --excomp-radius-lg: 16px;
    --excomp-radius-xl: 24px;

    /* Shadows */
    --excomp-shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
    --excomp-shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --excomp-shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.12);
    --excomp-shadow-card: 0 2px 8px rgba(0, 0, 0, 0.06);
    --excomp-shadow-glow: 0 0 20px rgba(5, 150, 105, 0.15);

    /* Transitions */
    --excomp-transition-fast: 150ms ease;
    --excomp-transition-normal: 200ms ease;
    --excomp-transition-slow: 300ms ease;
}

/* Base Container */
.excomp-comparison {
    max-width: 1100px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
    font-family: 'Plus Jakarta Sans', 'Outfit', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--excomp-text-primary);
}

/* Screen Reader Only */
.excomp-comparison .sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ==========================================================================
   Breadcrumbs - Enhanced Navigation
   ========================================================================== */
.excomp-breadcrumbs {
    margin-bottom: 2rem;
    padding: 0.75rem 1rem;
    background: var(--excomp-bg-subtle);
    border-radius: var(--excomp-radius-sm);
}

.excomp-breadcrumbs__list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 0.875rem;
    color: var(--excomp-text-muted);
    gap: 0.25rem;
}

.excomp-breadcrumbs__item {
    display: flex;
    align-items: center;
}

.excomp-breadcrumbs__item::after {
    content: '';
    display: inline-block;
    width: 16px;
    height: 16px;
    margin-left: 0.5rem;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2378716c' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m9 18 6-6-6-6'%3E%3C/path%3E%3C/svg%3E") no-repeat center;
    opacity: 0.6;
}

.excomp-breadcrumbs__item:last-child::after {
    display: none;
}

.excomp-breadcrumbs__item a {
    color: var(--excomp-primary);
    text-decoration: none;
    padding: 0.25rem 0;
    transition: color var(--excomp-transition-fast);
}

.excomp-breadcrumbs__item a:hover {
    color: var(--excomp-primary-hover);
    text-decoration: underline;
}

.excomp-breadcrumbs__item a:focus-visible {
    outline: 2px solid var(--excomp-primary);
    outline-offset: 2px;
    border-radius: 2px;
}

.excomp-breadcrumbs__item--current {
    color: var(--excomp-text-primary);
    font-weight: 600;
}

/* ==========================================================================
   Header Section - Enhanced Visual Hierarchy
   ========================================================================== */
.excomp-comparison__header {
    text-align: center;
    margin-bottom: 3rem;
}

.excomp-comparison__title {
    font-size: clamp(1.5rem, 4vw, 2.25rem);
    font-weight: 800;
    color: var(--excomp-text-primary);
    margin: 0 0 1.25rem;
    line-height: 1.2;
    letter-spacing: -0.025em;
}

.excomp-comparison__intro {
    font-size: 1.0625rem;
    color: var(--excomp-text-secondary);
    max-width: 720px;
    margin: 0 auto 1.75rem;
    line-height: 1.7;
}

/* ==========================================================================
   Similarity Badge - Enhanced Visual
   ========================================================================== */
.excomp-similarity {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    padding: 1rem 1.5rem;
    border-radius: 50px;
    border: 1px solid var(--excomp-border);
    box-shadow: var(--excomp-shadow-sm);
}

.excomp-similarity__label {
    font-size: 0.875rem;
    color: var(--excomp-text-muted);
    font-weight: 500;
}

.excomp-similarity__value {
    font-size: 1.375rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--excomp-primary) 0%, var(--excomp-accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.excomp-similarity__bar {
    width: 100px;
    height: 10px;
    background: var(--excomp-border);
    border-radius: 5px;
    overflow: hidden;
    position: relative;
}

.excomp-similarity__fill {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, var(--excomp-primary) 0%, var(--excomp-accent) 100%);
    border-radius: 5px;
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.excomp-similarity__fill::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: excomp-shimmer 2s infinite;
}

@keyframes excomp-shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* ==========================================================================
   Comparison Grid - Enhanced Layout
   ========================================================================== */
.excomp-comparison__grid {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
    align-items: start;
}

.excomp-comparison__vs {
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 4rem;
    position: sticky;
    top: 1rem;
}

.excomp-comparison__vs span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3.5rem;
    height: 3.5rem;
    background: linear-gradient(135deg, var(--excomp-text-primary) 0%, #44403c 100%);
    color: #fff;
    font-weight: 800;
    font-size: 1rem;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    letter-spacing: 0.05em;
}

/* ==========================================================================
   Exercise Cards - Enhanced Design
   ========================================================================== */
.excomp-exercise-card {
    background: var(--excomp-bg-card);
    border: 1px solid var(--excomp-border);
    border-radius: var(--excomp-radius-lg);
    overflow: hidden;
    box-shadow: var(--excomp-shadow-card);
    transition: box-shadow var(--excomp-transition-normal), transform var(--excomp-transition-normal);
}

.excomp-exercise-card:hover {
    box-shadow: var(--excomp-shadow-md);
    transform: translateY(-2px);
}

/* Card A - Emerald accent */
.excomp-comparison__grid > .excomp-exercise-card:first-child .excomp-exercise-card__header {
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
    border-bottom: 2px solid #6ee7b7;
}

/* Card B - Cyan accent */
.excomp-comparison__grid > .excomp-exercise-card:last-child .excomp-exercise-card__header {
    background: linear-gradient(135deg, #ecfeff 0%, #cffafe 100%);
    border-bottom: 2px solid #67e8f9;
}

.excomp-exercise-card__header {
    padding: 1.5rem;
    text-align: center;
}

.excomp-exercise-card__name {
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--excomp-text-primary);
    margin: 0;
    line-height: 1.3;
}

.excomp-exercise-card__image {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
    min-height: 200px;
}

.excomp-exercise-card__image img {
    max-width: 100%;
    height: auto;
    border-radius: var(--excomp-radius-sm);
    box-shadow: var(--excomp-shadow-sm);
}

.excomp-exercise-card__details {
    padding: 1.5rem;
    margin: 0;
}

.excomp-exercise-card__detail {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid #f5f5f4;
    transition: background var(--excomp-transition-fast);
}

.excomp-exercise-card__detail:hover {
    background: #fafaf9;
    margin: 0 -0.5rem;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
    border-radius: 4px;
}

.excomp-exercise-card__detail:last-child {
    border-bottom: none;
}

.excomp-exercise-card__detail dt {
    font-size: 0.875rem;
    color: var(--excomp-text-muted);
    font-weight: 500;
}

.excomp-exercise-card__detail dd {
    font-size: 0.9375rem;
    color: var(--excomp-text-primary);
    font-weight: 600;
    text-align: right;
    margin: 0;
    max-width: 55%;
}

.excomp-exercise-card__instructions {
    padding: 1.5rem;
    background: var(--excomp-bg-subtle);
    border-top: 1px solid var(--excomp-border);
}

.excomp-exercise-card__instructions h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--excomp-text-primary);
    margin: 0 0 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.excomp-exercise-card__instructions h4::before {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%232563eb' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14.5 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7.5L14.5 2z'%3E%3C/path%3E%3Cpolyline points='14 2 14 8 20 8'%3E%3C/polyline%3E%3Cline x1='16' x2='8' y1='13' y2='13'%3E%3C/line%3E%3Cline x1='16' x2='8' y1='17' y2='17'%3E%3C/line%3E%3Cline x1='10' x2='8' y1='9' y2='9'%3E%3C/line%3E%3C/svg%3E") no-repeat center;
}

.excomp-exercise-card__instructions ol {
    margin: 0;
    padding-left: 1.5rem;
    font-size: 0.9375rem;
    color: var(--excomp-text-secondary);
    counter-reset: step-counter;
    list-style: none;
}

.excomp-exercise-card__instructions li {
    padding: 0.5rem 0;
    position: relative;
    counter-increment: step-counter;
    padding-left: 0.5rem;
}

.excomp-exercise-card__instructions li::before {
    content: counter(step-counter);
    position: absolute;
    left: -1.5rem;
    width: 1.25rem;
    height: 1.25rem;
    background: var(--excomp-primary-light);
    color: var(--excomp-primary);
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ==========================================================================
   Card Label Badges (Exercise A / Exercise B)
   ========================================================================== */
.excomp-card-label {
    position: absolute;
    top: 1rem;
    left: 1rem;
    padding: 0.375rem 0.75rem;
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 6px;
    z-index: 10;
}

.excomp-card-label--a {
    background: #ecfdf5;
    color: var(--excomp-primary);
    border: 1px solid #a7f3d0;
}

.excomp-card-label--b {
    background: #ecfeff;
    color: var(--excomp-accent);
    border: 1px solid #a5f3fc;
}

.excomp-exercise-card {
    position: relative;
}

/* ==========================================================================
   Exercise Card Content
   ========================================================================== */
.excomp-exercise-card__content {
    padding: 1.25rem;
}

.excomp-exercise-card__name {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--excomp-text-primary);
    margin: 0 0 1rem;
    text-align: center;
}

.excomp-exercise-card__details {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

/* ==========================================================================
   Detail Rows with Icons
   ========================================================================== */
.excomp-detail-row {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid #f5f5f4;
}

.excomp-detail-row:last-child {
    border-bottom: none;
}

.excomp-detail-icon {
    flex-shrink: 0;
    color: var(--excomp-text-muted);
}

.excomp-detail-label {
    font-size: 0.8125rem;
    color: var(--excomp-text-muted);
    font-weight: 500;
    min-width: 70px;
}

.excomp-detail-value {
    font-size: 0.875rem;
    color: var(--excomp-text-primary);
    font-weight: 600;
    margin-left: auto;
    text-align: right;
}

/* ==========================================================================
   Badges (Difficulty, Movement Type)
   ========================================================================== */
.excomp-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.25rem 0.625rem;
    border-radius: 9999px;
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin-left: auto;
}

.excomp-badge--beginner {
    background: #dcfce7;
    color: #166534;
}

.excomp-badge--beginner::before {
    content: '';
    width: 6px;
    height: 6px;
    background: #22c55e;
    border-radius: 50%;
}

.excomp-badge--intermediate {
    background: #fef3c7;
    color: #92400e;
}

.excomp-badge--intermediate::before {
    content: '';
    width: 6px;
    height: 6px;
    background: #f59e0b;
    border-radius: 50%;
}

.excomp-badge--advanced {
    background: #fee2e2;
    color: #991b1b;
}

.excomp-badge--advanced::before {
    content: '';
    width: 6px;
    height: 6px;
    background: #ef4444;
    border-radius: 50%;
}

.excomp-badge--expert {
    background: #f3e8ff;
    color: #7c3aed;
}

.excomp-badge--expert::before {
    content: '';
    width: 6px;
    height: 6px;
    background: #8b5cf6;
    border-radius: 50%;
}

.excomp-badge--movement {
    background: #f1f5f9;
    color: var(--excomp-text-secondary);
}

/* ==========================================================================
   Secondary Muscles Pills
   ========================================================================== */
.excomp-secondary-muscles {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #f5f5f4;
}

.excomp-secondary-label {
    display: block;
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--excomp-text-muted);
    margin-bottom: 0.5rem;
}

.excomp-muscle-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
}

.excomp-muscle-pill {
    padding: 0.25rem 0.625rem;
    font-size: 0.75rem;
    font-weight: 500;
    border-radius: 9999px;
    background: #fff;
    border: 1px solid #e5e7eb;
    color: var(--excomp-text-secondary);
}

.excomp-muscle-pill--a {
    background: #ecfdf5;
    border-color: #a7f3d0;
    color: #065f46;
}

.excomp-muscle-pill--b {
    background: #ecfeff;
    border-color: #a5f3fc;
    color: #0e7490;
}

/* ==========================================================================
   Difficulty Badges - Enhanced (Legacy support)
   ========================================================================== */
.excomp-difficulty {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.excomp-difficulty--beginner {
    background: var(--excomp-success-bg);
    color: #166534;
}

.excomp-difficulty--beginner::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    background: #22c55e;
    border-radius: 50%;
}

.excomp-difficulty--intermediate {
    background: var(--excomp-warning-light);
    color: #92400e;
}

.excomp-difficulty--intermediate::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    background: var(--excomp-warning);
    border-radius: 50%;
}

.excomp-difficulty--advanced {
    background: var(--excomp-error-light);
    color: #991b1b;
}

.excomp-difficulty--advanced::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    background: var(--excomp-error);
    border-radius: 50%;
}

.excomp-difficulty--expert {
    background: #f3e8ff;
    color: var(--excomp-accent);
}

.excomp-difficulty--expert::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    background: var(--excomp-accent);
    border-radius: 50%;
}

/* ==========================================================================
   Content Sections - Enhanced
   ========================================================================== */
.excomp-section {
    margin-bottom: 2rem;
    background: var(--excomp-bg-card);
    border: 1px solid var(--excomp-border);
    border-radius: var(--excomp-radius-lg);
    padding: 1.75rem;
    box-shadow: var(--excomp-shadow-sm);
    transition: box-shadow var(--excomp-transition-normal);
}

.excomp-section:hover {
    box-shadow: var(--excomp-shadow-md);
}

.excomp-section__title {
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--excomp-text-primary);
    margin: 0 0 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--excomp-border);
}

.excomp-section__title::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 1.25em;
    background: linear-gradient(180deg, var(--excomp-primary) 0%, var(--excomp-accent) 100%);
    border-radius: 2px;
}

/* ==========================================================================
   Head-to-Head Comparison Card (Table Layout - matches React)
   ========================================================================== */
.excomp-h2h-card {
    background: var(--excomp-bg-card);
    border: 1px solid var(--excomp-border);
    border-radius: var(--excomp-radius-lg);
    overflow: hidden;
    box-shadow: var(--excomp-shadow-card);
    margin-bottom: 2rem;
}

.excomp-h2h-card__header {
    background: var(--excomp-bg-subtle);
    border-bottom: 1px solid var(--excomp-border);
    padding: 1rem 1.5rem;
    text-align: center;
}

.excomp-h2h-card__title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--excomp-text-primary);
    margin: 0;
}

/* Table */
.excomp-h2h-table-wrapper {
    overflow-x: auto;
}

.excomp-h2h-table {
    width: 100%;
    border-collapse: collapse;
}

.excomp-h2h-table thead tr {
    border-bottom: 1px solid var(--excomp-border);
}

.excomp-h2h-table th {
    padding: 0.875rem 1rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.excomp-h2h-table__attr {
    text-align: left;
    color: var(--excomp-text-muted);
}

.excomp-h2h-table__ex {
    text-align: center;
    min-width: 140px;
}

.excomp-h2h-table__ex--a {
    color: var(--excomp-primary);
}

.excomp-h2h-table__ex--b {
    color: var(--excomp-accent);
}

.excomp-h2h-table__row--border {
    border-bottom: 1px solid #f5f5f4;
}

.excomp-h2h-table__row--border:hover {
    background: var(--excomp-bg-subtle);
}

.excomp-h2h-table__attr-cell {
    padding: 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--excomp-text-secondary);
}

.excomp-h2h-table__val-cell {
    padding: 1rem;
    text-align: center;
}

.excomp-h2h-table__val {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--excomp-text-secondary);
    text-transform: capitalize;
}

.excomp-h2h-table__val--winner-a {
    color: var(--excomp-primary);
    font-weight: 600;
}

.excomp-h2h-table__val--winner-b {
    color: var(--excomp-accent);
    font-weight: 600;
}

/* Trophy Icon */
.excomp-trophy {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.excomp-trophy--a {
    color: var(--excomp-primary);
}

.excomp-trophy--b {
    color: var(--excomp-accent);
}

/* Secondary Muscles Section */
.excomp-h2h-muscles {
    padding: 1.25rem 1.5rem;
    border-top: 1px solid var(--excomp-border);
}

.excomp-h2h-muscles__title {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--excomp-text-secondary);
    margin: 0 0 1rem;
}

.excomp-h2h-muscles__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.excomp-h2h-muscles__col {
    padding: 0.875rem;
    border-radius: var(--excomp-radius-md);
}

.excomp-h2h-muscles__col--a {
    background: #ecfdf5;
}

.excomp-h2h-muscles__col--b {
    background: #ecfeff;
}

.excomp-h2h-muscles__name {
    font-size: 0.75rem;
    font-weight: 600;
    margin: 0 0 0.5rem;
}

.excomp-h2h-muscles__col--a .excomp-h2h-muscles__name {
    color: var(--excomp-primary);
}

.excomp-h2h-muscles__col--b .excomp-h2h-muscles__name {
    color: var(--excomp-accent);
}

.excomp-h2h-muscles__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
}

.excomp-muscle-tag {
    padding: 0.25rem 0.625rem;
    font-size: 0.75rem;
    font-weight: 500;
    background: #fff;
    color: var(--excomp-text-secondary);
    border-radius: 9999px;
}

.excomp-muscle-tag--empty {
    font-style: italic;
    color: var(--excomp-text-muted);
}

/* H2H Mobile */
@media (max-width: 640px) {
    .excomp-h2h-card__header {
        padding: 0.875rem 1rem;
    }

    .excomp-h2h-table th,
    .excomp-h2h-table__attr-cell,
    .excomp-h2h-table__val-cell {
        padding: 0.75rem 0.5rem;
        font-size: 0.8125rem;
    }

    .excomp-h2h-table__ex {
        min-width: 100px;
    }

    .excomp-h2h-muscles__grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   Key Differences Section
   ========================================================================== */
.excomp-differences__list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.excomp-differences__list li {
    padding: 0.875rem 1rem;
    padding-left: 2.5rem;
    color: var(--excomp-text-secondary);
    background: var(--excomp-bg-subtle);
    border-radius: var(--excomp-radius-sm);
    margin-bottom: 0.75rem;
    position: relative;
    line-height: 1.6;
    border-left: 3px solid var(--excomp-primary);
}

.excomp-differences__list li:last-child {
    margin-bottom: 0;
}

.excomp-differences__list li::before {
    content: '';
    position: absolute;
    left: 0.875rem;
    top: 1rem;
    width: 8px;
    height: 8px;
    background: var(--excomp-primary);
    border-radius: 50%;
}

.excomp-differences__list li strong {
    color: var(--excomp-text-primary);
}

/* ==========================================================================
   When to Choose Section
   ========================================================================== */
.excomp-when-to-choose__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.excomp-when-to-choose__item {
    background: var(--excomp-bg-subtle);
    padding: 1.5rem;
    border-radius: var(--excomp-radius-md);
    border: 1px solid var(--excomp-border);
    transition: all var(--excomp-transition-normal);
}

.excomp-when-to-choose__item:hover {
    border-color: var(--excomp-border-hover);
    box-shadow: var(--excomp-shadow-sm);
}

/* Exercise A keeps its identity when it is the only reviewed choice. */
.excomp-when-to-choose__grid > .excomp-when-to-choose__item--a {
    border-left: 1px solid var(--excomp-border);
}

/* Exercise B keeps its identity independently of sibling order. */
.excomp-when-to-choose__grid > .excomp-when-to-choose__item--b {
    border-left: 1px solid var(--excomp-border);
}

.excomp-when-to-choose__item h3 {
    font-size: 1.0625rem;
    font-weight: 700;
    color: var(--excomp-text-primary);
    margin: 0 0 0.75rem;
}

.excomp-when-to-choose__item p {
    color: var(--excomp-text-secondary);
    margin: 0;
    line-height: 1.7;
}

/* ==========================================================================
   FAQ Section - Enhanced
   ========================================================================== */
.excomp-faq__list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.excomp-faq__item {
    padding: 1.25rem;
    background: var(--excomp-bg-subtle);
    border-radius: var(--excomp-radius-sm);
    border: 1px solid transparent;
    transition: all var(--excomp-transition-normal);
}

.excomp-faq__item:hover {
    border-color: var(--excomp-border);
    background: var(--excomp-bg-card);
}

.excomp-faq__question {
    font-size: 1.0625rem;
    font-weight: 700;
    color: var(--excomp-text-primary);
    margin: 0 0 0.625rem;
    line-height: 1.4;
}

.excomp-faq__answer p {
    color: var(--excomp-text-secondary);
    margin: 0;
    line-height: 1.7;
}

/* ==========================================================================
   Verdict Section - Enhanced
   ========================================================================== */
.excomp-verdict {
    background: linear-gradient(135deg, #f0fdf4 0%, #ecfeff 100%);
    border-color: #a7f3d0;
    position: relative;
    overflow: hidden;
}

.excomp-verdict::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 120px;
    height: 120px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 24 24' fill='none' stroke='%2322c55e' stroke-width='1' stroke-linecap='round' stroke-linejoin='round' opacity='0.1'%3E%3Cpath d='M22 11.08V12a10 10 0 1 1-5.93-9.14'%3E%3C/path%3E%3Cpath d='m9 11 3 3L22 4'%3E%3C/path%3E%3C/svg%3E") no-repeat center;
    transform: translate(20px, -20px);
}

.excomp-verdict .excomp-section__title::before {
    background: linear-gradient(180deg, #22c55e 0%, #16a34a 100%);
}

.excomp-verdict p {
    color: var(--excomp-text-primary);
    margin: 0;
    font-size: 1.0625rem;
    line-height: 1.7;
    position: relative;
}

/* ==========================================================================
   Overview Section - AI Intro with Sparkle Icon
   ========================================================================== */
.excomp-overview {
    margin-bottom: 2rem;
    padding: 0;
    background: transparent;
    border: none;
    box-shadow: none;
}

.excomp-overview__card {
    background: linear-gradient(135deg, #faf5ff 0%, #f5f3ff 50%, #ede9fe 100%);
    border: 1px solid #ddd6fe;
    border-radius: var(--excomp-radius-lg);
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
}

.excomp-overview__card::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.excomp-overview__header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.excomp-overview__icon {
    flex-shrink: 0;
    color: #8b5cf6;
}

.excomp-overview__title {
    font-size: 1.125rem;
    font-weight: 700;
    color: #5b21b6;
    margin: 0;
}

.excomp-overview__text {
    color: var(--excomp-text-secondary);
    margin: 0;
    line-height: 1.7;
    font-size: 1rem;
    position: relative;
}

/* ==========================================================================
   Also Compare Section - Enhanced (React SimilarComparisons style)
   ========================================================================== */
.excomp-also-compare {
    background: var(--excomp-bg-card);
    border: 1px solid var(--excomp-border);
    border-radius: var(--excomp-radius-lg);
    padding: 1.5rem;
    box-shadow: var(--excomp-shadow-card);
}

.excomp-also-compare__header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.excomp-also-compare__icon {
    color: var(--excomp-primary);
    flex-shrink: 0;
}

.excomp-also-compare__title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--excomp-text-primary);
    margin: 0;
}

.excomp-also-compare__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.excomp-also-compare__column {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    min-width: 0;
    overflow: hidden;
}

.excomp-also-compare__label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--excomp-text-muted);
    margin: 0 0 0.5rem;
}

.excomp-also-compare__highlight {
    font-weight: 600;
}

.excomp-also-compare__highlight--a {
    color: var(--excomp-primary);
}

.excomp-also-compare__highlight--b {
    color: var(--excomp-accent);
}

.excomp-also-compare__cards {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    min-width: 0;
}

.excomp-also-compare__card {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: var(--excomp-bg-subtle);
    overflow: hidden;
    min-width: 0;
    border: 1px solid #f1f5f9;
    border-radius: var(--excomp-radius-md);
    text-decoration: none;
    transition: all var(--excomp-transition-normal);
}

.excomp-also-compare__card:hover {
    background: var(--excomp-bg-card);
    border-color: var(--excomp-border-hover);
    box-shadow: var(--excomp-shadow-sm);
    transform: translateX(4px);
}

.excomp-also-compare__card--a:hover {
    border-color: #a7f3d0;
}

.excomp-also-compare__card--b:hover {
    border-color: #a5f3fc;
}

/* Thumbnail */
.excomp-also-compare__thumb {
    width: 40px;
    height: 40px;
    border-radius: var(--excomp-radius-sm);
    object-fit: cover;
    flex-shrink: 0;
    background: #f1f5f9;
}

.excomp-also-compare__thumb--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--excomp-text-muted);
}

.excomp-also-compare__card-content {
    flex: 1;
    min-width: 0;
}

.excomp-also-compare__card-title {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--excomp-text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
}

.excomp-also-compare__card-meta {
    display: block;
    font-size: 0.75rem;
    color: var(--excomp-text-muted);
    margin-top: 0.125rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.excomp-also-compare__card-end {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

.excomp-also-compare__card--empty {
    min-height: 4.75rem;
    border-style: dashed;
}

.excomp-also-compare__empty-mark {
    display: grid;
    width: 2.5rem;
    height: 2.5rem;
    flex: 0 0 2.5rem;
    place-items: center;
    border-radius: 8px;
    background: var(--excomp-primary-light);
    color: var(--excomp-primary);
    font-size: 1.25rem;
    font-weight: 800;
}

.excomp-also-compare__card--b .excomp-also-compare__empty-mark {
    background: var(--excomp-accent-light);
    color: var(--excomp-accent);
}

/* Similarity Badge */
.excomp-also-compare__similarity {
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.125rem 0.5rem;
    border-radius: 9999px;
}

.excomp-also-compare__similarity--a {
    background: #ecfdf5;
    color: var(--excomp-primary);
}

.excomp-also-compare__similarity--b {
    background: #ecfeff;
    color: var(--excomp-accent);
}

.excomp-also-compare__arrow {
    flex-shrink: 0;
    color: var(--excomp-text-muted);
    transition: transform var(--excomp-transition-fast), color var(--excomp-transition-fast);
}

.excomp-also-compare__card:hover .excomp-also-compare__arrow {
    transform: translateX(4px);
    color: var(--excomp-text-secondary);
}

.excomp-also-compare__card--a:hover .excomp-also-compare__arrow {
    color: var(--excomp-primary);
}

.excomp-also-compare__card--b:hover .excomp-also-compare__arrow {
    color: var(--excomp-accent);
}

/* Legacy Related Comparisons - Keep for backwards compatibility */
.excomp-related__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.excomp-related__column h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--excomp-text-primary);
    margin: 0 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--excomp-border);
}

.excomp-related__list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.excomp-related__list li {
    border-bottom: 1px solid #f5f5f4;
}

.excomp-related__list li:last-child {
    border-bottom: none;
}

.excomp-related__list a {
    display: block;
    padding: 0.75rem 0.5rem;
    color: var(--excomp-primary);
    text-decoration: none;
    font-weight: 500;
    border-radius: 4px;
    transition: all var(--excomp-transition-fast);
}

.excomp-related__list a:hover {
    background: var(--excomp-primary-light);
    padding-left: 1rem;
}

.excomp-related__list a:focus-visible {
    outline: 2px solid var(--excomp-primary);
    outline-offset: 2px;
}

/* ==========================================================================
   CTA Section - Enhanced
   ========================================================================== */
.excomp-cta {
    text-align: center;
    background: linear-gradient(135deg, var(--excomp-primary-dark) 0%, #047857 100%);
    border-radius: var(--excomp-radius-lg);
    padding: 3rem 2rem;
    color: #fff;
    position: relative;
    overflow: hidden;
    margin-top: 3rem;
}

.excomp-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E") repeat;
}

.excomp-cta__title {
    font-size: 1.75rem;
    font-weight: 800;
    margin: 0 0 0.75rem;
    position: relative;
}

.excomp-cta__text {
    font-size: 1.0625rem;
    opacity: 0.9;
    margin: 0 0 1.75rem;
    position: relative;
}

.excomp-cta__button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #fff;
    color: var(--excomp-primary-dark);
    font-weight: 700;
    padding: 1rem 2.5rem;
    border-radius: var(--excomp-radius-sm);
    text-decoration: none;
    transition: all var(--excomp-transition-normal);
    position: relative;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
}

.excomp-cta__button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
}

.excomp-cta__button:active {
    transform: translateY(-1px);
}

.excomp-cta__button:focus-visible {
    outline: 3px solid #fff;
    outline-offset: 3px;
}

/* ==========================================================================
   Share Buttons
   ========================================================================== */
.excomp-share-buttons {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1.25rem;
}

.excomp-share-buttons__label {
    font-size: 0.875rem;
    color: var(--excomp-text-muted);
    font-weight: 500;
}

.excomp-share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    transition: all var(--excomp-transition-normal);
    text-decoration: none;
}

.excomp-share-btn--twitter {
    background: #000;
    color: #fff;
}

.excomp-share-btn--twitter:hover {
    background: #333;
    transform: scale(1.1);
}

.excomp-share-btn--facebook {
    background: #1877f2;
    color: #fff;
}

.excomp-share-btn--facebook:hover {
    background: #0d65d9;
    transform: scale(1.1);
}

.excomp-share-btn--copy {
    background: var(--excomp-bg-subtle);
    color: var(--excomp-text-secondary);
    border: 1px solid var(--excomp-border);
}

.excomp-share-btn--copy:hover {
    background: var(--excomp-primary-light);
    color: var(--excomp-primary);
    border-color: var(--excomp-primary);
    transform: scale(1.1);
}

.excomp-share-btn--copy.copied {
    background: var(--excomp-success-bg);
    color: #166534;
    border-color: #22c55e;
}

.excomp-share-btn:focus-visible {
    outline: 2px solid var(--excomp-primary);
    outline-offset: 2px;
}

@media (max-width: 768px) {
    .excomp-share-buttons {
        margin-top: 1rem;
        width: 100%;
        justify-content: center;
    }
}

/* ==========================================================================
   Pros and Cons Section - Enhanced
   ========================================================================== */
.excomp-pros-cons__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.excomp-pros-cons__column {
    background: var(--excomp-bg-subtle);
    padding: 1.5rem;
    border-radius: var(--excomp-radius-md);
}

.excomp-pros-cons__column h3 {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--excomp-text-primary);
    margin: 0 0 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--excomp-border);
    text-align: center;
}

.excomp-pros,
.excomp-cons {
    margin-bottom: 1.25rem;
}

.excomp-pros:last-child,
.excomp-cons:last-child {
    margin-bottom: 0;
}

.excomp-pros h4,
.excomp-cons h4 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9375rem;
    font-weight: 700;
    margin: 0 0 0.75rem;
}

.excomp-pros h4 {
    color: #166534;
}

.excomp-cons h4 {
    color: #991b1b;
}

.excomp-pros__icon,
.excomp-cons__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.5rem;
    height: 1.5rem;
    font-weight: 700;
    border-radius: 50%;
    font-size: 1rem;
}

.excomp-pros__icon {
    background: var(--excomp-success-bg);
    color: #166534;
}

.excomp-cons__icon {
    background: var(--excomp-error-light);
    color: #991b1b;
}

.excomp-pros ul,
.excomp-cons ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.excomp-pros li,
.excomp-cons li {
    padding: 0.5rem 0 0.5rem 1.75rem;
    font-size: 0.9375rem;
    color: var(--excomp-text-secondary);
    position: relative;
}

.excomp-pros li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.75rem;
    width: 16px;
    height: 16px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2322c55e' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'%3E%3C/path%3E%3C/svg%3E") no-repeat center;
}

.excomp-cons li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.75rem;
    width: 16px;
    height: 16px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23ef4444' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18 6 6 18'%3E%3C/path%3E%3Cpath d='m6 6 12 12'%3E%3C/path%3E%3C/svg%3E") no-repeat center;
}

/* ==========================================================================
   Winner Scenarios - Enhanced
   ========================================================================== */
.excomp-winner-scenarios__list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.excomp-winner-scenario {
    display: flex;
    gap: 1.25rem;
    padding: 1.25rem;
    background: var(--excomp-bg-subtle);
    border-radius: var(--excomp-radius-md);
    border: 1px solid var(--excomp-border);
    transition: all var(--excomp-transition-normal);
}

.excomp-winner-scenario:hover {
    border-color: var(--excomp-border-hover);
    box-shadow: var(--excomp-shadow-sm);
}

.excomp-winner-scenario__number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    background: var(--excomp-accent);
    color: #fff;
    font-weight: 800;
    font-size: 1rem;
    border-radius: 50%;
    flex-shrink: 0;
    box-shadow: none;
}

.excomp-winner-scenario__content {
    flex: 1;
}

.excomp-winner-scenario__content strong {
    color: var(--excomp-text-primary);
    font-weight: 700;
}

.excomp-winner-scenario__winner {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    background: var(--excomp-success-bg);
    color: #166534;
    font-weight: 700;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8125rem;
    margin-left: 0.625rem;
}

.excomp-winner-scenario__winner::before {
    content: '';
    display: inline-block;
    width: 12px;
    height: 12px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='%2322c55e'%3E%3Cpath d='M12 2l3.09 6.26L22 9.27l-5 4.87 1.18 6.88L12 17.77l-6.18 3.25L7 14.14 2 9.27l6.91-1.01L12 2z'%3E%3C/path%3E%3C/svg%3E") no-repeat center;
}

.excomp-winner-scenario__content p {
    margin: 0.625rem 0 0;
    color: var(--excomp-text-secondary);
    font-size: 0.9375rem;
    line-height: 1.6;
}

/* ==========================================================================
   Responsive Styles
   ========================================================================== */
@media (max-width: 900px) {
    .excomp-comparison__grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .excomp-comparison__vs {
        padding: 0.75rem 0;
        position: static;
    }

    .excomp-comparison__vs span {
        width: 3rem;
        height: 3rem;
    }
}

@media (max-width: 768px) {
    .excomp-comparison {
        padding: 1.5rem 1rem;
    }

    .excomp-comparison__title {
        font-size: 1.5rem;
    }

    .excomp-comparison__intro {
        font-size: 1rem;
    }

    .excomp-similarity {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.75rem;
        padding: 0.875rem 1rem;
    }

    .excomp-when-to-choose__grid,
    .excomp-pros-cons__grid,
    .excomp-related__grid,
    .excomp-also-compare__grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .excomp-section {
        padding: 1.25rem;
    }

    .excomp-cta {
        padding: 2rem 1.5rem;
    }

    .excomp-cta__title {
        font-size: 1.375rem;
    }

    .excomp-breadcrumbs {
        padding: 0.5rem 0.75rem;
    }

    .excomp-breadcrumbs__list {
        font-size: 0.8125rem;
    }
}

@media (max-width: 480px) {
    .excomp-comparison {
        padding: 1rem 0.75rem;
    }

    .excomp-exercise-card__details {
        padding: 1rem;
    }

    .excomp-exercise-card__detail {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }

    .excomp-exercise-card__detail dd {
        text-align: left;
        max-width: 100%;
    }

    .excomp-winner-scenario {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .excomp-winner-scenario__number {
        margin-bottom: 0.5rem;
    }

    .excomp-winner-scenario__winner {
        margin-left: 0;
        margin-top: 0.5rem;
    }

    .excomp-pros-cons__column {
        padding: 1rem;
    }
}

/* ==========================================================================
   Accessibility Enhancements
   ========================================================================== */

/* High contrast mode support */
@media (prefers-contrast: high) {
    .excomp-exercise-card,
    .excomp-section,
    .excomp-faq__item {
        border-width: 2px;
    }

    .excomp-similarity__bar {
        border: 2px solid var(--excomp-text-primary);
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .excomp-comparison *,
    .excomp-comparison *::before,
    .excomp-comparison *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .excomp-similarity__fill::after {
        animation: none;
    }
}

/* Optional result tools reuse the existing typography and red/slate identity. */
.excomp-comparison .excomp-muscle-comparison { padding: 1.5rem; border-top: 0; border-bottom: 1px solid var(--excomp-border); background: #fff; }
.excomp-comparison .excomp-muscle-comparison h3 { margin: 0; font-size: 1.25rem; line-height: 1.35; }
.excomp-comparison .excomp-muscle-comparison__intro { max-width: 70ch; margin: 0.5rem 0 1rem; color: var(--excomp-text-secondary); font-size: 0.9375rem; line-height: 1.6; }
.excomp-comparison .excomp-map-legend { display: flex; flex-wrap: wrap; gap: 0.75rem 1.5rem; list-style: none; padding: 0 0 1.25rem; margin: 0 0 1.5rem; border-bottom: 1px solid var(--excomp-border); }
.excomp-comparison .excomp-map-legend li { display: flex; align-items: center; gap: 0.5rem; margin: 0; font-size: 0.875rem; }
.excomp-comparison .excomp-map-swatch { width: 1rem; height: 1rem; flex: 0 0 1rem; border: 1px solid #64748b; border-radius: 2px; }
.excomp-comparison .excomp-map-swatch--target { background: #be123c; border-color: #be123c; }
.excomp-comparison .excomp-map-swatch--secondary { background: repeating-linear-gradient(45deg, #fff1f2 0, #fff1f2 3px, #be123c 3px, #be123c 5px); border-color: #be123c; }
.excomp-comparison .excomp-map-swatch--unlisted { background: #e2e8f0; }
.excomp-comparison .excomp-muscle-comparison__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; }
.excomp-comparison .excomp-muscle-comparison__exercise { min-width: 0; padding-right: 1.75rem; }
.excomp-comparison .excomp-muscle-comparison__exercise + .excomp-muscle-comparison__exercise { padding-right: 0; padding-left: 1.75rem; }
.excomp-comparison .excomp-muscle-comparison h4 { display: flex; align-items: center; justify-content: center; min-height: 2.75rem; font-size: 1.125rem; line-height: 1.4; text-align: center; margin: 0 0 1rem; text-wrap: balance; }
.excomp-comparison .excomp-muscle-comparison__views { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem; margin-bottom: 1.25rem; }
.excomp-comparison .excomp-muscle-comparison figure { margin: 0; padding: 0; min-width: 0; }
.excomp-comparison .excomp-muscle-comparison figcaption { text-align: center; color: var(--excomp-text-secondary); font-size: 0.875rem; margin-bottom: 0.5rem; }
.excomp-comparison .excomp-muscle-svg { display: block; width: 100%; height: auto; max-height: 20rem; overflow: visible; }
.excomp-comparison .excomp-map-base, .excomp-comparison .excomp-map-region[data-role="unlisted"] { fill: #e2e8f0; }
.excomp-comparison .excomp-map-region[data-role="target"] { fill: #be123c; }
.excomp-comparison .excomp-map-region[data-role="mixed"] { fill: #fff; stroke: #334155; stroke-width: 3; stroke-dasharray: 7 4; }
.excomp-comparison .excomp-map-hatch-base { fill: #fff1f2; }
.excomp-comparison .excomp-muscle-comparison figcaption::before { display: none; }
.excomp-comparison .excomp-map-hatch-line { fill: none; stroke: #be123c; stroke-width: 4; }
.excomp-comparison .excomp-map-labels { display: grid; gap: 0; margin: 1rem 0 0; font-size: 0.9375rem; border-top: 1px solid var(--excomp-border); }
.excomp-comparison .excomp-map-labels > div { display: grid; grid-template-columns: 5.25rem minmax(0, 1fr); gap: 0.5rem; padding-block: 0.625rem; border-bottom: 1px solid var(--excomp-border); }
.excomp-comparison .excomp-map-labels dt { font-weight: 600; color: var(--excomp-text-primary); }
.excomp-comparison .excomp-map-labels dd { margin: 0; overflow-wrap: anywhere; }
.excomp-comparison .excomp-map-labels > div:first-child dd { font-weight: 700; color: var(--excomp-text-primary); }
.excomp-comparison .excomp-map-note { font-size: 0.875rem; color: var(--excomp-text-secondary); line-height: 1.55; margin: 1rem 0 0; }
.excomp-comparison #muscle-map-heading { scroll-margin-top: 6rem; }
@media (max-width: 640px) {
    .excomp-comparison .excomp-muscle-comparison { padding: 1.25rem 1rem; }
    .excomp-comparison .excomp-muscle-comparison__grid { grid-template-columns: 1fr; gap: 2rem; }
    .excomp-comparison .excomp-muscle-comparison__exercise { padding: 0; }
    .excomp-comparison .excomp-muscle-comparison__exercise + .excomp-muscle-comparison__exercise { border-left: 0; border-top: 1px solid var(--excomp-border); padding: 1.5rem 0 0; }
    .excomp-comparison .excomp-muscle-comparison h4 { min-height: 0; }
    .excomp-comparison .excomp-muscle-svg { max-height: 18rem; }
}
@media print { .excomp-comparison .excomp-muscle-svg { print-color-adjust: exact; } }
.excomp-comparison .excomp-explanations__grid { display: grid; gap: 1.5rem; }
.excomp-comparison .excomp-explanations__item + .excomp-explanations__item { border-top: 1px solid var(--excomp-border); padding-top: 1.5rem; }
.excomp-comparison .excomp-explanations h3 { margin: 0 0 0.625rem; font-size: 1.125rem; }
.excomp-comparison .excomp-explanations__sources { margin-top: 0.875rem; font-size: 0.875rem; color: var(--excomp-text-secondary); }
.excomp-comparison .excomp-explanations__sources ul { margin: 0.375rem 0 0; padding-left: 1.25rem; list-style: disc; }
.excomp-comparison .excomp-explanations__sources a { overflow-wrap: anywhere; text-decoration: underline; text-underline-offset: 0.2em; }
.excomp-comparison [hidden] { display: none !important; }
.excomp-comparison .excomp-section-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.25rem 1.25rem;
    margin: 0 0 1.75rem;
    padding-block: 0.75rem;
    border-block: 1px solid var(--excomp-border);
}
.excomp-comparison .excomp-section-nav span {
    color: var(--excomp-text-secondary);
    font-size: 0.875rem;
    font-weight: 600;
}
.excomp-comparison .excomp-section-nav a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    color: var(--excomp-text-primary);
    font-size: 0.9375rem;
    text-decoration: underline;
    text-underline-offset: 0.2em;
}
.excomp-comparison h2[id] { scroll-margin-top: 6rem; }
.excomp-comparison .excomp-difference-controls { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 0.25rem 1.5rem; padding: 0.75rem 1.5rem; }
.excomp-comparison .excomp-difference-controls label {
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
    min-height: 44px;
    cursor: pointer;
    font-weight: 600;
    color: var(--excomp-text-primary);
}
.excomp-comparison .excomp-difference-controls input {
    appearance: auto;
    width: 1.125rem;
    height: 1.125rem;
    margin: 0;
    accent-color: #b91c1c;
}
.excomp-comparison .excomp-difference-controls p,
.excomp-comparison .excomp-instructions__intro {
    color: var(--excomp-text-secondary);
    font-size: 0.9375rem;
    margin: 0.375rem 0 0;
}
.excomp-comparison .excomp-instructions {
    width: 100%;
    max-width: none;
    margin-inline: 0;
}
.excomp-comparison .excomp-instructions__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 21rem), 1fr));
    gap: 2rem;
    margin-top: 1.5rem;
}
@media (min-width: 800px) {
    .excomp-comparison .excomp-instructions__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 3rem; }
    .excomp-comparison .excomp-instructions__exercise + .excomp-instructions__exercise { padding-left: 2rem; }
}
.excomp-comparison .excomp-instructions__exercise { min-width: 0; }
.excomp-comparison .excomp-instructions h3 { font-size: 1.125rem; margin: 0 0 0.75rem; }
.excomp-comparison .excomp-instructions ol { list-style: decimal; padding-left: 1.5rem; margin: 0; }
.excomp-comparison .excomp-instructions li { padding-left: 0.25rem; margin-bottom: 0.75rem; overflow-wrap: anywhere; }
.excomp-comparison .excomp-instructions li::marker { color: var(--excomp-text-secondary); font-weight: 600; }
.excomp-comparison .excomp-instructions summary {
    cursor: pointer;
    min-height: 44px;
    padding-block: 0.625rem;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 0.2em;
}
@media print {
    .excomp-comparison .excomp-section-nav,
    .excomp-comparison .excomp-difference-controls { display: none !important; }
    .excomp-comparison #excomp-fact-rows > tr[hidden] { display: table-row !important; }
    .excomp-comparison .excomp-instructions details > ol { display: block !important; }
    .excomp-comparison .excomp-instructions details::details-content { content-visibility: visible; }
}

/* Focus visible for keyboard navigation */
.excomp-comparison *:focus-visible {
    outline: 2px solid var(--excomp-primary);
    outline-offset: 2px;
}

/* Print styles */
@media print {
    .excomp-cta {
        display: none;
    }

    .excomp-comparison {
        padding: 0;
    }

    .excomp-section,
    .excomp-exercise-card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ccc;
    }
}

/* ==========================================================================
   Radar Chart Comparison
   ========================================================================== */
.excomp-radar {
    padding: 1.5rem;
    overflow: visible;
}

.excomp-radar__container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    overflow: visible;
}

.excomp-radar__description {
    max-width: 48rem;
    margin: -0.35rem 0 1rem;
    color: var(--excomp-text-secondary);
    font-size: 0.875rem;
}

.excomp-radar__chart {
    width: 100%;
    max-width: 450px;
    aspect-ratio: 1;
    overflow: visible;
}

.excomp-radar__chart svg {
    width: 100%;
    height: 100%;
    overflow: visible;
}

.excomp-radar__grid-line,
.excomp-radar__axis {
    fill: none;
    stroke: #dbe2ea;
    stroke-width: 1;
}

.excomp-radar__axis-label {
    fill: var(--excomp-text-secondary);
    font-size: 12px;
    font-weight: 700;
}

.excomp-radar__shape--a {
    fill: rgba(225, 29, 56, 0.18);
    stroke: #e11d38;
    stroke-width: 3;
}

.excomp-radar__shape--b {
    fill: rgba(51, 65, 85, 0.16);
    stroke: #334155;
    stroke-width: 3;
    stroke-dasharray: 8 5;
}

.excomp-radar__point--a {
    fill: #e11d38;
    stroke: #ffffff;
    stroke-width: 2;
}

.excomp-radar__point--b {
    fill: #334155;
    stroke: #ffffff;
    stroke-width: 2;
}

.excomp-radar__legend {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.excomp-radar__legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
}

.excomp-radar__legend-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.excomp-radar__legend-item--a .excomp-radar__legend-dot {
    background: var(--excomp-primary);
}

.excomp-radar__legend-item--b .excomp-radar__legend-dot {
    background: var(--excomp-accent);
}

@media (max-width: 600px) {
    .excomp-radar__chart {
        max-width: 340px;
    }
}

/* ========================================================================== 
   Editorial trust and source disclosure
   ========================================================================== */
.excomp-editorial-state {
    box-sizing: border-box;
    width: min(100% - 2rem, 1180px);
    margin: 1rem auto 1.5rem;
    padding: 1rem 1.25rem;
    color: #243244;
    background: #f7fafc;
    border: 1px solid #d8e2ec;
    border-left: 1px solid #d8e2ec;
    border-radius: 0.75rem;
}

.excomp-editorial-state > p {
    margin: 0;
}

.excomp-trust-panel {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #d8e2ec;
    overflow-wrap: anywhere;
}

.excomp-trust-panel__title {
    margin: 0 0 0.875rem;
    color: #172536;
    font-size: clamp(1.125rem, 2vw, 1.35rem);
    line-height: 1.3;
}

.excomp-trust-panel__people {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 0.5rem 1.25rem;
}

.excomp-trust-panel__people p,
.excomp-trust-panel__methodology p,
.excomp-trust-panel__ai,
.excomp-trust-panel__correction,
.excomp-trust-panel__links {
    margin: 0.4rem 0;
}

.excomp-trust-panel__people span {
    color: #526579;
    font-size: 0.875rem;
}

.excomp-trust-panel a {
    color: #075b9c;
    text-decoration: underline;
    text-underline-offset: 0.15em;
}

.excomp-trust-panel__section-title {
    margin: 1rem 0 0.35rem;
    color: #243244;
    font-size: 1rem;
}

.excomp-trust-panel__limitations ul,
.excomp-trust-panel__sources ol {
    margin: 0.5rem 0 0;
    padding-left: 1.35rem;
}

.excomp-trust-panel__sources {
    margin-top: 1rem;
}

.excomp-trust-panel__sources summary {
    width: fit-content;
    cursor: pointer;
    color: #075b9c;
    font-weight: 700;
}

.excomp-trust-panel__sources li {
    margin: 0.65rem 0;
}

.excomp-trust-panel__source-meta,
.excomp-trust-panel__supported {
    display: block;
    margin-top: 0.2rem;
    color: #526579;
    font-size: 0.875rem;
}

.excomp-trust-panel__ai,
.excomp-trust-panel__correction {
    padding: 0.75rem;
    background: #edf5fb;
    border-radius: 0.5rem;
}

.excomp-trust-panel__correction {
    background: #fff6df;
    border: 1px solid #ecd28d;
}

.excomp-trust-panel :focus-visible {
    outline: 2px solid #075b9c;
    outline-offset: 3px;
}

@media (max-width: 600px) {
    .excomp-editorial-state {
        width: min(100% - 1rem, 1180px);
        padding: 0.875rem;
    }

    .excomp-trust-panel__people {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   Result page refinement: compact, scan-first head-to-head layout
   ========================================================================== */
.excomp-comparison {
    --excomp-bg: #ffffff;
    --excomp-primary: #e11d38;
    --excomp-primary-hover: #be1230;
    --excomp-primary-light: #fff1f2;
    --excomp-primary-dark: #9f1239;
    --excomp-accent: #334155;
    --excomp-accent-light: #f1f5f9;
    --excomp-text-primary: #111827;
    --excomp-text-secondary: #475569;
    --excomp-text-muted: #64748b;
    --excomp-border: #dbe2ea;
    --excomp-border-hover: #c5ced9;
    --excomp-bg-subtle: #f8fafc;
    --excomp-bg-card: #ffffff;
    --excomp-radius-sm: 6px;
    --excomp-radius-md: 10px;
    --excomp-radius-lg: 12px;
    --excomp-shadow-sm: none;
    --excomp-shadow-md: none;
    --excomp-shadow-card: none;
    width: min(1120px, calc(100vw - 2rem));
    max-width: none;
    margin: 0 0 0 50%;
    padding: 1rem 0 3rem;
    transform: translateX(-50%);
    background: #ffffff;
    color: var(--excomp-text-primary);
    font-family: inherit;
}

.excomp-editorial-state {
    position: relative;
    width: min(1120px, calc(100vw - 2rem));
    max-width: none;
    margin: 1.25rem 0 0.75rem 50%;
    padding: 0.75rem 1rem 0.75rem 8.75rem;
    transform: translateX(-50%);
    border: 1px solid #dbe2ea;
    border-left: 1px solid #dbe2ea;
    border-radius: 8px;
    background: #f8fafc;
    box-shadow: none;
    color: #475569;
}

.excomp-editorial-state::before {
    content: "Review status";
    position: absolute;
    top: 0.75rem;
    left: 1rem;
    color: #334155;
    font-size: 0.6875rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.excomp-editorial-state > p {
    margin: 0;
    font-size: 0.875rem;
    line-height: 1.55;
}

.excomp-trust-panel {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid #dbe2ea;
}

/* Reviewed provenance sits inside the results article, not a second page-width banner. */
.excomp-comparison .excomp-editorial-state {
    width: 100%;
    margin: 0 0 1.5rem;
    padding: 0 0 1rem;
    transform: none;
    border: 0;
    border-bottom: 1px solid var(--excomp-border);
    border-radius: 0;
    background: #ffffff;
}

.excomp-comparison .excomp-editorial-state::before {
    content: none;
}

.excomp-comparison .excomp-trust-panel {
    margin-top: 0.5rem;
    padding: 0;
    border: 0;
}

.excomp-comparison .excomp-trust-panel__people {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem 1.5rem;
}

.excomp-comparison .excomp-trust-panel__people p,
.excomp-comparison .excomp-trust-panel__links {
    margin: 0;
}

.excomp-comparison .excomp-trust-panel__details {
    margin-top: 0.5rem;
}

.excomp-comparison .excomp-trust-panel__details > summary {
    box-sizing: border-box;
    min-height: 44px;
    padding: 0.625rem 0;
    cursor: pointer;
    font-weight: 700;
}

.excomp-comparison .excomp-trust-panel__details[open] {
    padding-bottom: 0.75rem;
}

.excomp-breadcrumbs {
    margin: 0 0 1rem;
    padding: 0;
    border-radius: 0;
    background: transparent;
}

.excomp-breadcrumbs__list {
    gap: 0.125rem;
    font-size: 0.75rem;
}

.excomp-breadcrumbs__item a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding-inline: 0.5rem;
    color: var(--excomp-text-secondary);
    font-weight: 700;
}

.excomp-breadcrumbs__item a:hover {
    color: var(--excomp-primary);
}

.excomp-breadcrumbs__item--current {
    color: var(--excomp-text-muted);
    font-weight: 600;
}

.excomp-comparison__header {
    display: grid;
    grid-template-areas:
        "title title"
        "intro share";
    grid-template-columns: minmax(0, 1fr) auto;
    column-gap: 2rem;
    align-items: start;
    margin: 0 0 1.5rem;
    padding: 0 0 1.5rem;
    border-bottom: 0;
    text-align: left;
}

.excomp-comparison__eyebrow {
    grid-area: eyebrow;
    margin: 0 0 0.375rem;
    color: var(--excomp-primary);
    font-size: 0.6875rem;
    font-weight: 800;
    letter-spacing: 0.11em;
    line-height: 1.4;
    text-transform: uppercase;
}

.excomp-comparison__title {
    grid-area: title;
    max-width: 52rem;
    margin: 0;
    color: var(--excomp-text-primary);
    font-size: clamp(2rem, 4.2vw, 3.25rem);
    font-weight: 800;
    letter-spacing: -0.035em;
    line-height: 1.03;
    overflow-wrap: anywhere;
}

.excomp-comparison__intro {
    grid-area: intro;
    max-width: 47rem;
    margin: 0.75rem 0 0;
    color: var(--excomp-text-secondary);
    font-size: 1rem;
    line-height: 1.55;
}

.excomp-share-buttons {
    grid-area: share;
    align-self: end;
    justify-content: flex-end;
    gap: 0.5rem;
    margin: 0;
}

.excomp-change-comparison {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    margin-right: 0.75rem;
    font-size: 0.875rem;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.excomp-share-buttons__label {
    margin-right: 0.25rem;
    color: var(--excomp-text-muted);
    font-size: 0.75rem;
    font-weight: 700;
}

.excomp-comparison .excomp-copy-button {
    min-height: 44px;
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--excomp-border);
    border-radius: 6px;
    background: #fff;
    box-shadow: none;
    color: var(--excomp-text-primary);
    font: inherit;
    font-size: 0.875rem;
    font-weight: 700;
    white-space: nowrap;
    cursor: pointer;
}

.excomp-comparison .excomp-copy-button:hover {
    border-color: var(--excomp-text-secondary);
}

.excomp-comparison .excomp-copy-button:disabled {
    cursor: wait;
}

.excomp-copy-feedback {
    grid-column: 1 / -1;
    min-width: 0;
}

.excomp-copy-status:not(:empty),
.excomp-copy-fallback {
    margin: 0.75rem 0 0;
    color: var(--excomp-text-secondary);
    font-size: 0.875rem;
}

.excomp-copy-status:empty,
.excomp-comparison .excomp-copy-button[hidden],
.excomp-copy-fallback[hidden] {
    display: none;
}

.excomp-copy-fallback summary {
    width: fit-content;
    min-height: 44px;
    padding-block: 0.75rem;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.excomp-copy-fallback label {
    display: block;
    margin-block: 0.5rem;
    font-weight: 700;
}

.excomp-comparison .excomp-copy-fallback input {
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    min-height: 44px;
    font-size: 1rem;
}

.excomp-copy-fallback p {
    margin-block: 0.5rem 0;
}

.excomp-share-btn,
.excomp-share-btn--twitter,
.excomp-share-btn--facebook,
.excomp-share-btn--copy {
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    border: 1px solid var(--excomp-border);
    border-radius: 50%;
    background: #ffffff;
    box-shadow: none;
    color: var(--excomp-text-primary);
}

.excomp-share-btn:hover,
.excomp-share-btn--twitter:hover,
.excomp-share-btn--facebook:hover,
.excomp-share-btn--copy:hover {
    border-color: var(--excomp-primary);
    background: var(--excomp-primary-light);
    color: var(--excomp-primary);
    transform: none;
}

.excomp-comparison__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 2.75rem minmax(0, 1fr);
    gap: 1rem;
    align-items: stretch;
    margin: 0 0 1.5rem;
}

.excomp-exercise-card {
    display: grid;
    grid-template-columns: minmax(9rem, 36%) minmax(0, 1fr);
    min-width: 0;
    position: relative;
    overflow: hidden;
    border: 1px solid var(--excomp-border);
    border-radius: var(--excomp-radius-lg);
    background: var(--excomp-bg-card);
    box-shadow: none;
    transition: border-color 160ms ease;
}

.excomp-exercise-card--a {
    border-top: 1px solid var(--excomp-border);
}

.excomp-exercise-card--b {
    border-top: 1px solid var(--excomp-border);
}

.excomp-exercise-card:hover {
    border-color: var(--excomp-border-hover);
    box-shadow: none;
    transform: none;
}

.excomp-exercise-card--a:hover {
    border-top-color: var(--excomp-border-hover);
}

.excomp-exercise-card--b:hover {
    border-top-color: var(--excomp-border-hover);
}

.excomp-card-label {
    top: 0.75rem;
    left: 0.75rem;
    padding: 0.3rem 0.55rem;
    border-radius: 4px;
    font-size: 0.625rem;
    letter-spacing: 0.08em;
}

.excomp-card-label--a {
    border-color: #fecdd3;
    background: #fff1f2;
    color: #be1230;
}

.excomp-card-label--b {
    border-color: #cbd5e1;
    background: #f1f5f9;
    color: #334155;
}

.excomp-exercise-card__image {
    box-sizing: border-box;
    min-width: 0;
    min-height: 17.5rem;
    padding: 1rem;
    border-right: 0;
    background: #f8fafc;
}

.excomp-comparison .excomp-exercise-card__image img {
    display: block;
    min-width: 0;
    min-height: 0;
    width: 100%;
    height: auto;
    max-height: 17.5rem;
    border-radius: 0;
    box-shadow: none;
    object-fit: contain;
}

.excomp-exercise-card__content {
    min-width: 0;
    padding: 1.25rem;
}

.excomp-exercise-card__name {
    margin: 0 0 0.75rem;
    color: var(--excomp-text-primary);
    font-size: 1.25rem;
    font-weight: 800;
    line-height: 1.15;
    text-align: left;
    overflow-wrap: anywhere;
}

.excomp-exercise-card__details {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin: 0;
    padding: 0;
}

.excomp-detail-row {
    display: grid;
    grid-template-columns: 1rem minmax(4.25rem, auto) minmax(0, 1fr);
    gap: 0.5rem;
    min-height: 2.125rem;
    padding: 0.45rem 0;
    border-bottom: 1px solid #edf1f5;
}

.excomp-detail-icon {
    width: 1rem;
    height: 1rem;
    color: #94a3b8;
}

.excomp-detail-label {
    min-width: 0;
    color: var(--excomp-text-muted);
    font-size: 0.75rem;
    font-weight: 600;
}

.excomp-detail-value {
    min-width: 0;
    margin-left: 0;
    color: var(--excomp-text-primary);
    font-size: 0.8125rem;
    font-weight: 700;
    line-height: 1.35;
    text-align: right;
    overflow-wrap: anywhere;
}

.excomp-badge {
    justify-self: end;
    min-width: 0;
    max-width: 100%;
    margin-left: 0;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.625rem;
    overflow-wrap: anywhere;
}

.excomp-badge--movement {
    background: #f1f5f9;
    color: #334155;
}

.excomp-secondary-muscles {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid #edf1f5;
}

.excomp-secondary-label {
    margin-bottom: 0.375rem;
    font-size: 0.625rem;
}

.excomp-muscle-pills {
    gap: 0.25rem;
}

.excomp-muscle-pill,
.excomp-muscle-pill--a,
.excomp-muscle-pill--b {
    padding: 0.2rem 0.45rem;
    max-width: 100%;
    border-color: #dbe2ea;
    border-radius: 4px;
    background: #f8fafc;
    color: #475569;
    font-size: 0.6875rem;
    overflow-wrap: anywhere;
}

.excomp-comparison__vs {
    display: flex;
    position: relative;
    top: auto;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.excomp-comparison__vs::before {
    display: none;
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 1px;
    background: var(--excomp-border);
}

.excomp-comparison__vs span {
    position: relative;
    width: 2.25rem;
    height: 2.25rem;
    border: 1px solid var(--excomp-border-hover);
    border-radius: 50%;
    background: #ffffff;
    box-shadow: none;
    color: var(--excomp-text-primary);
    font-size: 0.6875rem;
    letter-spacing: 0.05em;
}

.excomp-h2h-card {
    margin: 0 0 1.5rem;
    overflow: hidden;
    border: 1px solid var(--excomp-border);
    border-top: 1px solid var(--excomp-border);
    border-radius: var(--excomp-radius-lg);
    background: #ffffff;
    box-shadow: none;
}

.excomp-h2h-card__header {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--excomp-border);
    background: #ffffff;
    text-align: left;
}

.excomp-h2h-card__title {
    font-size: 1.25rem;
    font-weight: 800;
}

.excomp-h2h-card__header p {
    margin: 0.5rem 0 0;
    color: var(--excomp-text-secondary);
    font-size: 0.875rem;
    line-height: 1.5;
}

.excomp-h2h-table-wrapper {
    overflow-x: auto;
    scrollbar-width: thin;
}

.excomp-h2h-table-wrapper:focus-visible {
    outline-offset: -3px;
}

.excomp-h2h-table {
    min-width: 0;
    table-layout: fixed;
    overflow-wrap: anywhere;
}

.excomp-h2h-table thead tr {
    background: var(--excomp-bg-subtle);
}

.excomp-h2h-table th {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--excomp-border);
    color: var(--excomp-text-secondary);
    font-size: max(14px, 0.9375rem);
    font-weight: 800;
    text-transform: none;
    letter-spacing: normal;
    line-height: 1.5;
}

.excomp-h2h-table th.excomp-h2h-table__ex--a {
    background: var(--excomp-primary-light);
    color: var(--excomp-primary-dark);
}

.excomp-h2h-table th.excomp-h2h-table__ex--b {
    background: var(--excomp-accent-light);
    color: var(--excomp-accent);
}

.excomp-h2h-table__row--border {
    border-bottom-color: #edf1f5;
}

.excomp-h2h-table__row--border:hover {
    background: transparent;
}

.excomp-h2h-table__attr-cell,
.excomp-h2h-table__val-cell {
    padding: 0.75rem 1rem;
}

.excomp-h2h-table tbody th[scope="row"] {
    text-align: left;
    text-transform: none;
    letter-spacing: normal;
    font-size: max(14px, 0.9375rem);
    background: var(--excomp-bg-subtle);
}

.excomp-h2h-table__attr-cell {
    color: var(--excomp-text-secondary);
    font-size: 0.8125rem;
    font-weight: 700;
}

.excomp-h2h-table__val-cell:nth-child(2) {
    background: #fffafb;
}

.excomp-h2h-table__val-cell:nth-child(3) {
    background: #fbfcfd;
}

.excomp-h2h-table__val {
    color: var(--excomp-text-primary);
    font-size: max(14px, 0.9375rem);
    font-weight: 500;
    line-height: 1.5;
}

.excomp-h2h-table tbody tr {
    border-top: 1px solid var(--excomp-border);
}

.excomp-h2h-table tr[data-different="true"] .excomp-h2h-table__val {
    font-weight: 800;
}

.excomp-fact-difference {
    display: block;
    margin-top: 0.25rem;
    color: var(--excomp-primary-dark);
    font-size: 0.6875rem;
    font-weight: 700;
}

.excomp-h2h-muscles {
    padding: 1rem 1.25rem 1.25rem;
    border-top-color: var(--excomp-border);
}

.excomp-h2h-muscles__title {
    margin-bottom: 0.75rem;
    color: var(--excomp-text-primary);
    font-size: 0.8125rem;
    font-weight: 800;
}

.excomp-h2h-muscles__col {
    min-width: 0;
    padding: 0.75rem;
    border: 1px solid var(--excomp-border);
    border-radius: 8px;
}

.excomp-h2h-muscles__col--a {
    border-top: 1px solid var(--excomp-border);
    background: #fffafb;
}

.excomp-h2h-muscles__col--b {
    border-top: 1px solid var(--excomp-border);
    background: #f8fafc;
}

.excomp-h2h-muscles__col--a .excomp-h2h-muscles__name {
    color: var(--excomp-primary);
}

.excomp-h2h-muscles__col--b .excomp-h2h-muscles__name {
    color: var(--excomp-accent);
}

.excomp-muscle-tag {
    border: 1px solid var(--excomp-border);
    max-width: 100%;
    border-radius: 4px;
    background: #ffffff;
    overflow-wrap: anywhere;
}

.excomp-section {
    margin-bottom: 1.5rem;
    padding: 1.5rem;
    border: 1px solid var(--excomp-border);
    border-radius: var(--excomp-radius-lg);
    background: #ffffff;
    box-shadow: none;
    transition: border-color 160ms ease;
}

.excomp-section:hover {
    border-color: var(--excomp-border-hover);
    box-shadow: none;
}

.excomp-section__title {
    gap: 0.625rem;
    margin: 0 0 1rem;
    padding: 0 0 0.75rem;
    border-bottom: 1px solid var(--excomp-border);
    font-size: 1.25rem;
    font-weight: 800;
}

.excomp-section__title::before {
    display: none;
}

.excomp-section.excomp-overview {
    padding: 0;
}

.excomp-overview__card {
    padding: 1.5rem;
    border: 0;
    border-radius: inherit;
    background: #ffffff;
    box-shadow: none;
}

.excomp-overview__card::before {
    display: none;
}

.excomp-overview__icon,
.excomp-overview__title {
    color: var(--excomp-primary);
}

.excomp-comparison .excomp-differences__list {
    list-style: none;
    gap: 0;
}

.excomp-differences__list li {
    padding: 0.875rem 1rem 0.875rem 2.75rem;
    border-left: 0;
    border-bottom: 1px solid #edf1f5;
}

.excomp-differences__list li::before {
    top: calc(0.875rem + 0.8em - 4px);
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--excomp-text-primary);
}

.excomp-when-to-choose__item,
.excomp-pros-cons__column {
    border: 1px solid var(--excomp-border);
    border-radius: 8px;
    background: #ffffff;
    box-shadow: none;
}

.excomp-when-to-choose__grid > .excomp-when-to-choose__item--a,
.excomp-pros-cons__column--a {
    border-top: 1px solid var(--excomp-border);
    background: #fffafb;
}

.excomp-when-to-choose__grid > .excomp-when-to-choose__item--b,
.excomp-pros-cons__column--b {
    border-top: 1px solid var(--excomp-border);
    background: #f8fafc;
}

.excomp-when-to-choose__grid > .excomp-when-to-choose__item:only-child,
.excomp-pros-cons__grid > .excomp-pros-cons__column:only-child {
    grid-column: 1 / -1;
}

.excomp-when-to-choose__item:hover,
.excomp-winner-scenario:hover,
.excomp-faq__item:hover {
    box-shadow: none;
    transform: none;
}

.excomp-faq__item {
    border: 0;
    border-bottom: 1px solid var(--excomp-border);
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.excomp-faq__item:last-child {
    border-bottom: 0;
}

.excomp-faq__question {
    color: var(--excomp-text-primary);
    font-weight: 800;
}

.excomp-verdict {
    border-left: 1px solid var(--excomp-border);
    background: #fffafb;
}

.excomp-verdict::before {
    display: none;
}

.excomp-also-compare__icon,
.excomp-also-compare__highlight--a {
    color: var(--excomp-primary);
}

.excomp-also-compare__highlight--b {
    color: var(--excomp-accent);
}

.excomp-also-compare__card {
    min-height: 4rem;
    border: 1px solid var(--excomp-border);
    border-radius: 8px;
    background: #ffffff;
    box-shadow: none;
}

.excomp-also-compare__card:hover,
.excomp-also-compare__card--a:hover,
.excomp-also-compare__card--b:hover {
    border-color: var(--excomp-primary);
    box-shadow: none;
    transform: none;
}

.excomp-also-compare__similarity--a,
.excomp-also-compare__similarity--b {
    border-radius: 4px;
    background: #f1f5f9;
    color: var(--excomp-text-secondary);
}

.excomp-cta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem 2rem;
    padding: 1.5rem 0;
    border: 0;
    border-top: 1px solid var(--excomp-border);
    border-radius: 0;
    background: #ffffff;
    box-shadow: none;
    color: var(--excomp-text-primary);
    text-align: left;
}

.excomp-cta::before {
    display: none;
}

.excomp-cta__title,
.excomp-cta__text {
    color: var(--excomp-text-primary);
}

.excomp-cta__title {
    margin: 0 0 0.5rem;
    font-size: 1.5rem;
}

.excomp-cta__text {
    margin: 0;
    font-size: 1rem;
    color: var(--excomp-text-secondary);
}

.excomp-comparison a.excomp-cta__button {
    min-height: 2.75rem;
    border: 1px solid var(--excomp-primary);
    border-radius: 6px;
    background: var(--excomp-primary);
    box-shadow: none;
    color: #ffffff;
    text-decoration: none;
}

.excomp-comparison a.excomp-cta__button:hover {
    border-color: var(--excomp-primary-hover);
    background: var(--excomp-primary-hover);
    box-shadow: none;
    transform: none;
}

.excomp-comparison a:focus-visible,
.excomp-comparison button:focus-visible,
.excomp-editorial-state a:focus-visible {
    outline: 3px solid #111827;
    outline-offset: 3px;
}

@media (max-width: 900px) {
    .excomp-comparison__grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .excomp-comparison__vs {
        min-height: 2.25rem;
    }

    .excomp-comparison__vs::before {
        top: 50%;
        right: 0;
        bottom: auto;
        left: 0;
        width: auto;
        height: 1px;
    }

    .excomp-exercise-card {
        grid-template-columns: minmax(10rem, 28%) minmax(0, 1fr);
    }

    .excomp-exercise-card__image {
        min-height: 15rem;
    }

    .excomp-comparison .excomp-exercise-card__image img {
        max-height: 15rem;
    }
}

@media (max-width: 700px) {
    .excomp-comparison,
    .excomp-editorial-state {
        width: min(1120px, calc(100vw - 2rem));
    }

    .excomp-editorial-state {
        margin-top: 0.75rem;
        padding: 2.25rem 0.875rem 0.75rem;
    }

    .excomp-editorial-state::before {
        top: 0.75rem;
        left: 0.875rem;
    }

    .excomp-comparison {
        padding-top: 0.75rem;
    }

    .excomp-comparison__header {
        grid-template-areas:
            "title"
            "intro"
            "share";
        grid-template-columns: 1fr;
        row-gap: 0;
        margin-bottom: 1rem;
        padding-bottom: 1rem;
    }

    .excomp-comparison__title {
        font-size: clamp(1.875rem, 9vw, 2.5rem);
    }

    .excomp-comparison__intro {
        margin-top: 0.625rem;
        font-size: 0.9375rem;
    }

    .excomp-share-buttons {
        justify-content: flex-start;
        flex-wrap: wrap;
        margin-top: 0.875rem;
    }

    .excomp-share-btn,
    .excomp-share-btn--twitter,
    .excomp-share-btn--facebook,
    .excomp-share-btn--copy {
        width: 44px;
        height: 44px;
    }

    .excomp-section,
    .excomp-overview__card {
        padding: 1.125rem;
    }

    .excomp-section__title {
        font-size: 1.125rem;
    }

    .excomp-h2h-card__header,
    .excomp-h2h-muscles {
        padding-inline: 1rem;
    }

    .excomp-h2h-table th,
    .excomp-h2h-table__val-cell {
        padding: 0.75rem 0.5rem;
        vertical-align: top;
    }

    .excomp-h2h-table th[scope="col"] {
        text-transform: none;
        letter-spacing: normal;
        font-size: max(14px, 0.9375rem);
        line-height: 1.4;
    }

    .excomp-h2h-table th[scope="col"]:first-child { width: 28%; }
    .excomp-h2h-table th[scope="col"]:not(:first-child) { width: 36%; }
    .excomp-h2h-table th,
    .excomp-h2h-table__val-cell { padding-inline: 0.375rem; }
    .excomp-h2h-table .excomp-h2h-table__val { font-size: 0.875rem; }
    .excomp-comparison .excomp-difference-controls { padding-inline: 1rem; }

    .excomp-also-compare__grid,
    .excomp-when-to-choose__grid,
    .excomp-pros-cons__grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .excomp-breadcrumbs__item--current {
        display: none;
    }

    .excomp-breadcrumbs__item:nth-last-child(2)::after {
        display: none;
    }

    .excomp-exercise-card {
        grid-template-columns: 1fr;
    }

    .excomp-exercise-card__image {
        height: 11.5rem;
        min-height: 0;
        max-height: none;
        padding: 0.75rem;
        border-right: 0;
        border-bottom: 1px solid var(--excomp-border);
    }

    .excomp-comparison .excomp-exercise-card__image img {
        height: 100%;
        max-height: 100%;
    }

    .excomp-exercise-card__content {
        padding: 1rem;
    }

    .excomp-detail-row {
        grid-template-columns: minmax(3.75rem, auto) minmax(0, 1fr);
    }

    .excomp-detail-icon {
        display: none;
    }

    .excomp-cta {
        padding: 1.5rem 1rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .excomp-comparison *,
    .excomp-comparison *::before,
    .excomp-comparison *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}
