/**
 * EHR Insider - Main Styles
 *
 * @package EHR_Insider
 */

/* ==========================================================================
   EHR Profile Page - Clean Modern Style
   ========================================================================== */

/* Hero */
.ehr-profile__hero {
    padding: var(--space-lg) 0 var(--space-2xl);
    background: var(--ehr-surface);
    border-bottom: 1px solid var(--ehr-border);
}

.ehr-profile__hero .breadcrumbs {
    margin-bottom: var(--space-xl);
}

.ehr-profile__hero-grid {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: var(--space-2xl);
    align-items: start;
}

@media (max-width: 900px) {
    .ehr-profile__hero-grid {
        grid-template-columns: 1fr;
    }
}

.ehr-profile__hero-main {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

/* Identity */
.ehr-profile__identity {
    display: flex;
    gap: var(--space-lg);
    align-items: flex-start;
}

@media (max-width: 500px) {
    .ehr-profile__identity {
        flex-direction: column;
    }
}

.ehr-profile__logo {
    width: 80px;
    height: 80px;
    border-radius: 12px;
    background: color-mix(in srgb, var(--ehr-primary) 10%, transparent);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.ehr-profile__logo-img {
    max-width: 56px;
    max-height: 56px;
    object-fit: contain;
}

.ehr-profile__logo-letter {
    font-size: 32px;
    font-weight: 700;
    color: var(--ehr-primary);
}

.ehr-profile__title-wrap {
    flex: 1;
    min-width: 0;
}

.ehr-profile__title {
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--ehr-dark);
    margin: 0 0 4px;
    line-height: 1.2;
    letter-spacing: -0.5px;
}

.ehr-profile__company {
    font-size: 1rem;
    color: var(--ehr-gray);
    margin: 0;
}

/* Excerpt/Tagline */
.ehr-profile__excerpt {
    font-size: 1.0625rem;
    line-height: 1.6;
    color: var(--ehr-dark);
    margin: 0;
    max-width: 600px;
}

/* Key Highlights */
.ehr-profile__highlights {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: var(--space-md);
    padding: var(--space-lg);
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border-radius: 12px;
    border-left: 4px solid var(--ehr-primary);
}

.ehr-profile__highlight {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.ehr-profile__highlight-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    color: var(--ehr-primary);
    margin-top: 1px;
}

.ehr-profile__highlight-icon svg {
    width: 18px;
    height: 18px;
}

.ehr-profile__highlight-text {
    font-size: 15px;
    line-height: 1.5;
    color: var(--ehr-dark);
}

.ehr-profile__highlight:first-child .ehr-profile__highlight-text {
    font-weight: 600;
}

/* Quick Features */
.ehr-profile__quick-features {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
}

.ehr-profile__quick-feat {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    font-size: 13px;
    font-weight: 500;
    border-radius: 6px;
    background: var(--ehr-light);
    border: 1px solid var(--ehr-border);
    color: var(--ehr-gray);
}

.ehr-profile__quick-feat--yes {
    color: var(--ehr-dark);
}

.ehr-profile__quick-feat--no {
    opacity: 0.5;
}

.ehr-profile__quick-feat-icon {
    width: 18px;
    height: 18px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
}

.ehr-profile__quick-feat--yes .ehr-profile__quick-feat-icon {
    background: color-mix(in srgb, var(--ehr-primary) 15%, transparent);
    color: var(--ehr-primary);
}

.ehr-profile__quick-feat--no .ehr-profile__quick-feat-icon {
    background: var(--ehr-light);
    color: var(--ehr-gray);
}

/* Badges */
.ehr-profile__badges {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
}

.ehr-profile__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 500;
    border-radius: 6px;
    border: 1px solid var(--ehr-border);
    background: var(--ehr-light);
    color: var(--ehr-dark);
}

.ehr-profile__badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--ehr-gray);
}

.ehr-profile__badge--blue .ehr-profile__badge-dot {
    background: var(--ehr-primary);
}

.ehr-profile__badge--green .ehr-profile__badge-dot {
    background: var(--ehr-success);
}

.ehr-profile__badge--amber .ehr-profile__badge-dot {
    background: var(--ehr-warning);
}

/* Tags */
.ehr-profile__tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
}

.ehr-profile__tag {
    display: inline-block;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 500;
    border-radius: 6px;
    text-decoration: none;
    background: var(--ehr-primary);
    color: white;
    transition: opacity 0.15s ease;
}

.ehr-profile__tag:hover {
    opacity: 0.9;
}

.ehr-profile__tag--outline {
    background: transparent;
    color: var(--ehr-gray);
    border: 1px solid var(--ehr-border);
}

/* Rating Card */
.ehr-profile__rating-card {
    background: var(--ehr-surface);
    border: 1px solid var(--ehr-border);
    border-radius: 12px;
    padding: var(--space-xl);
}

.ehr-profile__score-wrap {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding-bottom: var(--space-lg);
    margin-bottom: var(--space-lg);
    border-bottom: 1px solid var(--ehr-border);
}

.ehr-profile__score {
    font-size: 3rem;
    font-weight: 700;
    color: var(--ehr-primary);
    line-height: 1;
}

.ehr-profile__score-meta {
    flex: 1;
}

.ehr-profile__stars {
    display: flex;
    gap: 3px;
    margin-bottom: 4px;
}

.ehr-profile__star {
    width: 14px;
    height: 14px;
    background: var(--ehr-border);
    border-radius: 3px;
}

.ehr-profile__star--filled {
    background: var(--ehr-primary);
}

.ehr-profile__reviews {
    font-size: 14px;
    color: var(--ehr-gray);
}

/* Rating Breakdown in Card */
.ehr-profile__card-breakdown {
    padding: var(--space-md) 0;
    margin-bottom: var(--space-md);
    border-bottom: 1px solid var(--ehr-border);
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.ehr-profile__card-breakdown-row {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.ehr-profile__card-breakdown-label {
    font-size: 12px;
    color: var(--ehr-gray);
    width: 80px;
    flex-shrink: 0;
}

.ehr-profile__card-breakdown-bar {
    flex: 1;
    height: 6px;
    background: var(--ehr-light);
    border-radius: 3px;
    overflow: hidden;
}

.ehr-profile__card-breakdown-fill {
    height: 100%;
    background: var(--ehr-primary);
    border-radius: 3px;
}

.ehr-profile__card-breakdown-val {
    font-size: 12px;
    font-weight: 600;
    color: var(--ehr-dark);
    width: 28px;
    text-align: right;
}

.ehr-profile__price {
    padding-bottom: var(--space-lg);
    margin-bottom: var(--space-lg);
    border-bottom: 1px solid var(--ehr-border);
}

.ehr-profile__price-label {
    display: block;
    font-size: 13px;
    color: var(--ehr-gray);
    margin-bottom: 4px;
}

.ehr-profile__price-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--ehr-dark);
}

.ehr-profile__actions {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.ehr-profile__btn {
    display: block;
    width: 100%;
    padding: 14px 20px;
    font-size: 15px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: all 0.15s ease;
}

.ehr-profile__btn--primary {
    background: var(--ehr-primary);
    color: white;
}

.ehr-profile__btn--primary:hover {
    background: var(--ehr-primary-dark);
}

.ehr-profile__btn--primary:active {
    background: #1E40AF;
    transform: scale(0.98);
}

.ehr-profile__btn--secondary {
    background: var(--ehr-surface);
    color: var(--ehr-dark);
    border: 1px solid var(--ehr-border);
}

.ehr-profile__btn--secondary:hover {
    border-color: var(--ehr-primary);
    color: var(--ehr-primary);
}

.ehr-profile__btn--secondary:active {
    background: var(--ehr-light);
    transform: scale(0.98);
}

.ehr-profile__btn--outline {
    background: transparent;
    color: var(--ehr-primary);
    border: 1px solid var(--ehr-primary);
}

.ehr-profile__btn--outline:hover {
    background: var(--ehr-primary);
    color: white;
}

.ehr-profile__btn--outline:active {
    background: var(--ehr-primary-dark);
    transform: scale(0.98);
}

/* Stats */
.ehr-profile__stats {
    padding: var(--space-lg) 0;
    background: var(--ehr-light);
    border-bottom: 1px solid var(--ehr-border);
}

.ehr-profile__stats-grid {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-md);
    justify-content: center;
}

.ehr-profile__stat {
    text-align: center;
    padding: var(--space-md) var(--space-xl);
    background: var(--ehr-surface);
    border: 1px solid var(--ehr-border);
    border-radius: 8px;
    min-width: 120px;
}

.ehr-profile__stat--highlight {
    border-color: var(--ehr-success);
}

.ehr-profile__stat--highlight .ehr-profile__stat-value {
    color: var(--ehr-success);
}

.ehr-profile__stat-value {
    display: block;
    font-size: 15px;
    font-weight: 700;
    color: var(--ehr-dark);
    margin-bottom: 4px;
}

.ehr-profile__stat-label {
    font-size: 12px;
    color: var(--ehr-gray);
}

/* Capabilities */
.ehr-profile__capabilities {
    padding: var(--space-2xl) 0;
    background: var(--ehr-surface);
    border-bottom: 1px solid var(--ehr-border);
}

.ehr-profile__section-header {
    margin-bottom: var(--space-xl);
}

.ehr-profile__section-header--center {
    text-align: center;
}

.ehr-profile__section-tag {
    display: inline-block;
    font-size: 14px;
    font-weight: 600;
    color: var(--ehr-primary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: var(--space-sm);
}

.ehr-profile__section-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--ehr-dark);
    margin: 0;
}

.ehr-profile__section-desc {
    font-size: 1rem;
    color: var(--ehr-gray);
    margin: var(--space-sm) 0 0;
}

.ehr-profile__caps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: var(--space-md);
}

.ehr-profile__cap {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md) var(--space-lg);
    background: var(--ehr-light);
    border: 1px solid var(--ehr-border);
    border-radius: 8px;
    transition: border-color 0.15s ease;
}

.ehr-profile__cap:hover {
    border-color: var(--ehr-primary);
}

.ehr-profile__cap--yes {
    background: var(--ehr-surface);
}

.ehr-profile__cap--no {
    opacity: 0.6;
}

.ehr-profile__cap-icon {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.ehr-profile__cap--yes .ehr-profile__cap-icon {
    background: #DCFCE7;
}

.ehr-profile__cap--no .ehr-profile__cap-icon {
    background: var(--ehr-light);
}

.ehr-profile__cap-check {
    font-size: 16px;
    font-weight: 700;
    color: #16A34A;
}

.ehr-profile__cap-x {
    font-size: 16px;
    font-weight: 700;
    color: var(--ehr-gray);
}

.ehr-profile__cap-content {
    flex: 1;
    min-width: 0;
}

.ehr-profile__cap-name {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--ehr-dark);
}

.ehr-profile__cap-status {
    font-size: 12px;
    color: var(--ehr-gray);
}

.ehr-profile__cap--yes .ehr-profile__cap-status {
    color: #16A34A;
}

/* Main Content */
.ehr-profile__main {
    padding: var(--space-2xl) 0;
    background: var(--ehr-light);
}

.ehr-profile__grid {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: var(--space-2xl);
}

@media (max-width: 900px) {
    .ehr-profile__grid {
        grid-template-columns: 1fr;
    }
}

.ehr-profile__primary {
    min-width: 0;
}

.ehr-profile__sidebar {
    position: sticky;
    top: 100px;
    align-self: start;
}

@media (max-width: 900px) {
    .ehr-profile__sidebar {
        position: static;
    }
}

/* Blocks */
.ehr-profile__block {
    background: var(--ehr-surface);
    border: 1px solid var(--ehr-border);
    border-radius: 12px;
    padding: var(--space-xl);
    margin-bottom: var(--space-lg);
}

.ehr-profile__block-header {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
    padding-bottom: var(--space-md);
    border-bottom: 1px solid var(--ehr-border);
}

.ehr-profile__block-num {
    width: 40px;
    height: 40px;
    background: color-mix(in srgb, var(--ehr-primary) 10%, transparent);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    color: var(--ehr-primary);
    flex-shrink: 0;
}

.ehr-profile__block-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--ehr-dark);
    margin: 0;
}

.ehr-profile__prose {
    font-size: 1.0625rem;
    line-height: 1.8;
    color: var(--ehr-dark);
    max-width: 680px;
}

.ehr-profile__prose p {
    margin-bottom: 1.5em;
}

.ehr-profile__prose p:last-child {
    margin-bottom: 0;
}

/* Lead paragraph - first paragraph stands out */
.ehr-profile__prose p:first-of-type {
    font-size: 1.125rem;
    color: var(--ehr-dark);
}

/* Subheadings within prose */
/* Subheadings within prose - all levels */
.ehr-profile__prose h2 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--ehr-dark);
    margin: 2em 0 0.75em;
}

.ehr-profile__prose h2:first-child {
    margin-top: 0;
}

.ehr-profile__prose h3 {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--ehr-dark);
    margin: 1.75em 0 0.75em;
}

.ehr-profile__prose h3:first-child {
    margin-top: 0;
}

.ehr-profile__prose h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--ehr-dark);
    margin: 1.5em 0 0.5em;
}

.ehr-profile__prose h5,
.ehr-profile__prose h6 {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--ehr-dark);
    margin: 1.25em 0 0.5em;
}

/* Lists within prose */
.ehr-profile__prose ul,
.ehr-profile__prose ol {
    margin: 1.5em 0;
    padding-left: 1.5em;
}

.ehr-profile__prose li {
    margin-bottom: 0.5em;
    line-height: 1.7;
}

.ehr-profile__prose li:last-child {
    margin-bottom: 0;
}

/* Blockquotes / callouts */
.ehr-profile__prose blockquote {
    margin: 1.5em 0;
    padding: 1.25em 1.5em;
    background: var(--ehr-surface);
    border-left: 3px solid var(--ehr-primary);
    border-radius: 0 8px 8px 0;
    font-style: italic;
    color: var(--ehr-gray);
}

.ehr-profile__prose blockquote p {
    margin-bottom: 0.75em;
}

.ehr-profile__prose blockquote p:last-child {
    margin-bottom: 0;
}

/* Strong/emphasis */
.ehr-profile__prose strong {
    font-weight: 600;
    color: var(--ehr-dark);
}

/* Links */
.ehr-profile__prose a {
    color: var(--ehr-primary);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.ehr-profile__prose a:hover {
    text-decoration: none;
}

/* Pros & Cons */
.ehr-profile__pros-cons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
}

@media (max-width: 600px) {
    .ehr-profile__pros-cons {
        grid-template-columns: 1fr;
    }
}

.ehr-profile__pros,
.ehr-profile__cons {
    padding: var(--space-lg);
    border-radius: 8px;
}

.ehr-profile__pros {
    background: #F0FDF4;
}

.ehr-profile__cons {
    background: #FEF2F2;
}

.ehr-profile__list-title {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0 0 var(--space-md);
}

.ehr-profile__list-title--green {
    color: #15803D;
}

.ehr-profile__list-title--red {
    color: #B91C1C;
}

.ehr-profile__list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ehr-profile__list li {
    display: flex;
    align-items: flex-start;
    gap: var(--space-sm);
    padding: var(--space-sm) 0;
    font-size: 14px;
    color: var(--ehr-dark);
    line-height: 1.5;
}

.ehr-profile__list-icon {
    width: 20px;
    height: 20px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    flex-shrink: 0;
    margin-top: 1px;
}

.ehr-profile__list-icon--green {
    background: #DCFCE7;
    color: #16A34A;
}

.ehr-profile__list-icon--red {
    background: #FEE2E2;
    color: #DC2626;
}

/* Features */
.ehr-profile__features {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
}

.ehr-profile__feature {
    display: inline-block;
    padding: 10px 16px;
    background: var(--ehr-light);
    border: 1px solid var(--ehr-border);
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    color: var(--ehr-dark);
    transition: border-color 0.15s ease;
}

.ehr-profile__feature:hover {
    border-color: var(--ehr-primary);
}

/* Specialties */
.ehr-profile__specialties {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
}

.ehr-profile__specialty {
    display: inline-block;
    padding: 10px 16px;
    background: var(--ehr-surface);
    border: 1px solid var(--ehr-primary);
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    color: var(--ehr-primary);
    text-decoration: none;
    transition: all 0.15s ease;
}

.ehr-profile__specialty:hover {
    background: var(--ehr-primary);
    color: white;
}

/* Cards */
.ehr-profile__card {
    background: var(--ehr-surface);
    border: 1px solid var(--ehr-border);
    border-radius: 12px;
    padding: var(--space-lg);
    margin-bottom: var(--space-lg);
}

.ehr-profile__card:last-child {
    margin-bottom: 0;
}

.ehr-profile__card-title {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--ehr-gray);
    margin: 0 0 var(--space-md);
    padding-bottom: var(--space-md);
    border-bottom: 1px solid var(--ehr-border);
}

.ehr-profile__card-highlight {
    padding: var(--space-md);
    background: var(--ehr-light);
    border-radius: 8px;
    margin-bottom: var(--space-md);
}

.ehr-profile__card-highlight-label {
    display: block;
    font-size: 12px;
    color: var(--ehr-gray);
    margin-bottom: 4px;
}

.ehr-profile__card-highlight-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--ehr-primary);
}

.ehr-profile__card-list {
    margin: 0;
}

.ehr-profile__card-row {
    display: flex;
    justify-content: space-between;
    padding: var(--space-sm) 0;
    border-bottom: 1px solid var(--ehr-light);
}

.ehr-profile__card-row:last-child {
    border-bottom: none;
}

.ehr-profile__card-row dt {
    font-size: 14px;
    color: var(--ehr-gray);
}

.ehr-profile__card-row dd {
    font-size: 14px;
    font-weight: 600;
    color: var(--ehr-dark);
    margin: 0;
    text-align: right;
}

.ehr-profile__card-row--yes {
    color: var(--ehr-success);
}

/* Related EHRs Section */
.ehr-profile__related {
    padding: var(--space-2xl) 0;
    background: var(--ehr-light);
    border-top: 1px solid var(--ehr-border);
}

/* EHR Grid - Base styles for archive page */
.ehr-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: var(--space-lg);
}

/* EHR Cards in grid context */
.ehr-grid .card {
    background: var(--ehr-surface);
    border: 1px solid var(--ehr-border);
    border-radius: 12px;
    padding: var(--space-lg);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
    display: flex;
    flex-direction: column;
}

.ehr-grid .card:hover {
    border-color: var(--ehr-primary);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.ehr-grid .card__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: var(--space-md);
}

.ehr-grid .card__icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
}

.ehr-grid .card__badge {
    padding: 4px 10px;
    background: var(--ehr-light);
    border: 1px solid var(--ehr-border);
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
    color: var(--ehr-gray);
}

.ehr-grid .card__title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--ehr-dark);
    margin: 0 0 4px;
    line-height: 1.3;
}

.ehr-grid .card__title a {
    color: inherit;
    text-decoration: none;
}

.ehr-grid .card__title a:hover {
    color: var(--ehr-primary);
}

.ehr-grid .card__subtitle {
    font-size: 13px;
    color: var(--ehr-gray);
    margin: 0 0 var(--space-md);
}

.ehr-grid .card__rating {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-sm) var(--space-md);
    background: var(--ehr-light);
    border: 1px solid var(--ehr-border);
    border-radius: 8px;
    margin-bottom: var(--space-md);
}

.ehr-grid .card__rating-score {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.ehr-grid .card__rating-number {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--ehr-accent, var(--ehr-primary));
}

.ehr-grid .card__rating-stars {
    display: flex;
    gap: 2px;
}

.ehr-grid .card__rating-star {
    width: 14px;
    height: 14px;
    background: var(--ehr-accent, var(--ehr-primary));
    border-radius: 2px;
}

.ehr-grid .card__rating-star--empty {
    background: var(--ehr-border);
}

.ehr-grid .card__reviews {
    font-size: 12px;
    color: var(--ehr-gray);
}

.ehr-grid .card__footer {
    margin-top: auto;
    padding-top: var(--space-sm);
}

.ehr-grid .btn--secondary {
    display: block;
    width: 100%;
    padding: 12px 16px;
    background: var(--ehr-surface);
    border: 1px solid var(--ehr-border);
    border-radius: 8px;
    color: var(--ehr-dark);
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    transition: all 0.15s ease;
}

.ehr-grid .btn--secondary:hover {
    border-color: var(--ehr-primary);
    color: var(--ehr-primary);
}

.ehr-grid .ehr-card__logo {
    width: 48px;
    height: 48px;
    object-fit: contain;
    border-radius: 8px;
}

.ehr-profile__related .ehr-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--space-lg);
}

/* Related EHR Cards - Override for profile page */
.ehr-profile__related .card {
    background: var(--ehr-surface);
    border: 1px solid var(--ehr-border);
    border-radius: 12px;
    padding: var(--space-lg);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.ehr-profile__related .card:hover {
    border-color: var(--ehr-primary);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    transform: none;
}

.ehr-profile__related .card__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: var(--space-md);
}

.ehr-profile__related .card__icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 700;
}

.ehr-profile__related .card__badge {
    padding: 4px 10px;
    background: var(--ehr-light);
    border: 1px solid var(--ehr-border);
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
    color: var(--ehr-gray);
}

.ehr-profile__related .card__title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--ehr-dark);
    margin: 0 0 4px;
    line-height: 1.3;
}

.ehr-profile__related .card__title a {
    color: inherit;
    text-decoration: none;
}

.ehr-profile__related .card__title a:hover {
    color: var(--ehr-primary);
}

.ehr-profile__related .card__subtitle {
    font-size: 13px;
    color: var(--ehr-gray);
    margin: 0 0 var(--space-md);
}

.ehr-profile__related .card__rating {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-sm) var(--space-md);
    background: var(--ehr-light);
    border: 1px solid var(--ehr-border);
    border-radius: 8px;
    margin-bottom: var(--space-md);
}

.ehr-profile__related .card__rating-score {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.ehr-profile__related .card__rating-number {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--ehr-accent, var(--ehr-primary));
}

.ehr-profile__related .card__rating-stars {
    display: flex;
    gap: 2px;
}

.ehr-profile__related .card__rating-star {
    width: 12px;
    height: 12px;
    background: var(--ehr-accent, var(--ehr-primary));
    border-radius: 2px;
}

.ehr-profile__related .card__rating-star--empty {
    background: var(--ehr-border);
}

.ehr-profile__related .card__reviews {
    font-size: 12px;
    color: var(--ehr-gray);
}

.ehr-profile__related .card__footer {
    margin-top: var(--space-sm);
}

.ehr-profile__related .btn--secondary {
    display: block;
    width: 100%;
    padding: 10px 16px;
    background: var(--ehr-surface);
    border: 1px solid var(--ehr-border);
    border-radius: 8px;
    color: var(--ehr-dark);
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    transition: all 0.15s ease;
}

.ehr-profile__related .btn--secondary:hover {
    border-color: var(--ehr-primary);
    color: var(--ehr-primary);
}

.ehr-profile__related .ehr-card__logo {
    width: 40px;
    height: 40px;
    object-fit: contain;
    border-radius: 8px;
}

/* Legacy Support - Keep old classes working */
.ehr-header {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: var(--space-2xl);
    align-items: start;
}

@media (max-width: 768px) {
    .ehr-header {
        grid-template-columns: 1fr;
    }
}

.ehr-header__main {
    display: flex;
    gap: var(--space-lg);
    align-items: flex-start;
}

.ehr-header__logo {
    width: 100px;
    height: 100px;
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.ehr-header__logo-img {
    max-width: 80px;
    max-height: 80px;
    object-fit: contain;
}

.ehr-header__info {
    flex: 1;
}

.ehr-header__title {
    font-size: 2.5rem;
    margin-bottom: var(--space-xs);
    line-height: 1.2;
}

.ehr-header__company {
    font-size: 1rem;
    color: var(--ehr-gray);
    margin-bottom: var(--space-md);
}

.ehr-header__meta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
}

.ehr-header__category {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 6px 12px;
    border-radius: var(--radius-md);
}

.ehr-header__size {
    font-size: 12px;
    font-weight: 500;
    padding: 6px 12px;
    background-color: var(--ehr-light);
    border-radius: var(--radius-md);
    color: var(--ehr-gray);
}

.ehr-header__sidebar {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border: 1px solid var(--ehr-border);
    border-radius: var(--radius-xl);
    padding: var(--space-lg);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.ehr-header__actions {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    margin-top: var(--space-lg);
}

/* Rating Box - Legacy */
.ehr-rating-box {
    text-align: center;
    padding-bottom: var(--space-lg);
    border-bottom: 1px solid var(--ehr-border);
}

.ehr-rating-box__score {
    font-size: 3.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--ehr-primary) 0%, #ea580c 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: var(--space-sm);
}

.ehr-rating-box__stars {
    display: flex;
    justify-content: center;
    gap: 4px;
    margin-bottom: var(--space-sm);
}

.ehr-rating-box__stars .star {
    width: 20px;
    height: 20px;
    position: relative;
}

.ehr-rating-box__stars .star::before {
    content: "";
    position: absolute;
    inset: 0;
    background-color: var(--ehr-border);
    clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
}

.ehr-rating-box__stars .star--filled::before {
    background-color: var(--ehr-primary);
}

.ehr-rating-box__count {
    font-size: 14px;
    color: var(--ehr-gray);
}

/* Quick Facts - Legacy */
.quick-facts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: var(--space-md);
}

.quick-fact {
    text-align: center;
    padding: var(--space-md);
    background: white;
    border-radius: var(--radius-lg);
    border: 1px solid var(--ehr-border);
    transition: all var(--transition-fast);
}

.quick-fact:hover {
    border-color: var(--ehr-primary);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.1);
}

.quick-fact__label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--ehr-gray);
    margin-bottom: var(--space-xs);
}

.quick-fact__value {
    font-size: 15px;
    font-weight: 700;
    color: var(--ehr-dark);
}

.quick-fact__value--yes {
    color: var(--ehr-success);
}

/* EHR Content Grid - Legacy */
.ehr-content-grid {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: var(--space-2xl);
}

@media (max-width: 900px) {
    .ehr-content-grid {
        grid-template-columns: 1fr;
    }
}

.ehr-content-main {
    min-width: 0;
}

.ehr-content-sidebar {
    position: sticky;
    top: 100px;
    align-self: start;
}

/* EHR Sections - Legacy */
.ehr-section {
    margin-bottom: var(--space-2xl);
}

.ehr-section h2 {
    font-size: 1.5rem;
    margin-bottom: var(--space-lg);
    padding-bottom: var(--space-md);
    border-bottom: 2px solid var(--ehr-light);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.ehr-section h2::before {
    content: "";
    width: 4px;
    height: 24px;
    background: var(--ehr-primary);
    border-radius: 2px;
}

.ehr-content {
    font-size: 17px;
    line-height: 1.8;
}

.ehr-content p {
    color: var(--ehr-dark);
    margin-bottom: 1.5em;
}

/* Pros & Cons - Legacy */
.pros-cons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
}

@media (max-width: 600px) {
    .pros-cons {
        grid-template-columns: 1fr;
    }
}

.pros,
.cons {
    padding: var(--space-lg);
    border-radius: var(--radius-xl);
    position: relative;
    overflow: hidden;
}

.pros::before,
.cons::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
}

.pros {
    background: linear-gradient(to bottom, #dcfce7 0%, #f0fdf4 100%);
    border: 1px solid #86efac;
}

.pros::before {
    background: linear-gradient(90deg, #16a34a, #22c55e);
}

.cons {
    background: linear-gradient(to bottom, #fee2e2 0%, #fef2f2 100%);
    border: 1px solid #fca5a5;
}

.cons::before {
    background: linear-gradient(90deg, #dc2626, #ef4444);
}

.pros__title,
.cons__title {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: var(--space-md);
}

.pros__title {
    color: #15803d;
}

.cons__title {
    color: #b91c1c;
}

.pros__list,
.cons__list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.pros__list li,
.cons__list li {
    padding: var(--space-sm) 0;
    padding-left: 28px;
    position: relative;
    font-size: 15px;
    color: var(--ehr-dark);
    line-height: 1.5;
}

.pros__list li::before,
.cons__list li::before {
    position: absolute;
    left: 0;
    top: 10px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
}

.pros__list li::before {
    content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2316a34a' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
    background: #dcfce7;
}

.cons__list li::before {
    content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23dc2626' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='18' y1='6' x2='6' y2='18'%3E%3C/line%3E%3Cline x1='6' y1='6' x2='18' y2='18'%3E%3C/line%3E%3C/svg%3E");
    background: #fee2e2;
}

/* Feature Tags - Legacy */
.features-list,
.specialties-list {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
}

.feature-tag,
.specialty-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background-color: var(--ehr-light);
    border-radius: 100px;
    font-size: 14px;
    font-weight: 500;
    color: var(--ehr-dark);
    transition: all var(--transition-fast);
}

.feature-tag::before {
    content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%232563eb' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
}

.specialty-tag {
    color: var(--ehr-primary);
    text-decoration: none;
    border: 1px solid transparent;
}

.specialty-tag:hover {
    background-color: var(--ehr-primary);
    color: white;
}

/* Sidebar Cards - Legacy */
.sidebar-card {
    background-color: var(--ehr-surface);
    border: 1px solid var(--ehr-border);
    border-radius: var(--radius-xl);
    padding: var(--space-lg);
    margin-bottom: var(--space-lg);
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

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

.sidebar-card__title {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--ehr-gray);
    margin-bottom: var(--space-md);
    padding-bottom: var(--space-md);
    border-bottom: 1px solid var(--ehr-border);
}

.sidebar-card__item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-sm) 0;
    border-bottom: 1px solid var(--ehr-light);
}

.sidebar-card__item:last-child {
    border-bottom: none;
}

.sidebar-card__label {
    font-size: 14px;
    color: var(--ehr-gray);
}

.sidebar-card__value {
    font-size: 14px;
    font-weight: 600;
    color: var(--ehr-dark);
}

.sidebar-card__value--highlight {
    color: var(--ehr-primary);
    font-size: 18px;
    font-weight: 700;
}

/* User Reviews Section */
.ehr-user-reviews {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.ehr-user-review {
    background: white;
    border: 1px solid var(--ehr-border);
    border-radius: var(--radius-xl);
    padding: var(--space-lg);
    position: relative;
    transition: all 0.2s ease;
}

.ehr-user-review:hover {
    border-color: var(--ehr-primary-light);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.06);
}

.ehr-user-review__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-md);
}

.ehr-user-review__stars {
    display: flex;
    gap: 2px;
    color: var(--ehr-primary);
}

.ehr-user-review__stars svg {
    width: 18px;
    height: 18px;
}

.ehr-user-review__source {
    font-size: 12px;
    font-weight: 600;
    color: var(--ehr-gray);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 4px 10px;
    background: var(--ehr-light);
    border-radius: 100px;
}

.ehr-user-review__quote {
    font-size: 16px;
    line-height: 1.7;
    color: var(--ehr-dark);
    font-style: italic;
    margin: 0 0 var(--space-md);
    padding: 0;
    border: none;
}

.ehr-user-review__author {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding-top: var(--space-md);
    border-top: 1px solid var(--ehr-border);
}

.ehr-user-review__author-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--ehr-dark);
}

.ehr-user-review__author-role {
    font-size: 13px;
    color: var(--ehr-gray);
}

/* ==========================================================================
   Comparison Styles - Completely Redesigned
   ========================================================================== */

.comparison-header {
    max-width: 800px;
    margin: 0 auto;
}

.comparison-header__title {
    font-size: 2.75rem;
    margin-bottom: var(--space-md);
    line-height: 1.2;
}

.comparison-header__description {
    font-size: 18px;
    color: var(--ehr-gray);
    margin-bottom: var(--space-md);
    line-height: 1.6;
}

.comparison-header__meta {
    display: flex;
    justify-content: center;
    gap: var(--space-lg);
    font-size: 14px;
    color: var(--ehr-gray);
}

/* Comparison Hero */
.comparison-hero {
    background: var(--ehr-light);
    padding: var(--space-lg) 0 var(--space-2xl);
}

.comparison-hero .breadcrumbs {
    margin-bottom: var(--space-lg);
}

.comparison-hero__header {
    text-align: center;
    margin-bottom: var(--space-xl);
}

.comparison-hero__title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--ehr-dark);
    margin: 0 0 var(--space-sm);
    letter-spacing: -0.5px;
}

.comparison-hero__subtitle {
    font-size: 1.125rem;
    color: var(--ehr-gray);
    margin: 0;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.comparison-hero__grid {
    display: flex;
    align-items: stretch;
    justify-content: center;
    gap: var(--space-md);
}

.comparison-hero__vs {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.comparison-hero__vs span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: var(--ehr-dark);
    color: white;
    font-size: 13px;
    font-weight: 700;
    border-radius: 50%;
    letter-spacing: 0.5px;
}

.comparison-hero__card {
    display: flex;
    flex-direction: column;
    flex: 1;
    max-width: 400px;
    background: var(--ehr-surface);
    border: 1px solid var(--ehr-border);
    border-radius: var(--radius-xl);
    padding: var(--space-lg);
    position: relative;
    transition: box-shadow var(--transition-normal), transform var(--transition-normal);
}

.comparison-hero__card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.comparison-hero__card--winner {
    border-color: var(--ehr-primary);
    box-shadow: 0 0 0 1px var(--ehr-primary), 0 4px 12px rgba(37, 99, 235, 0.1);
}

.comparison-hero__card-badge {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--ehr-primary);
    color: white;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 4px 12px;
    border-radius: var(--radius-full);
    white-space: nowrap;
}

.comparison-hero__card-top {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin-bottom: var(--space-md);
    padding-bottom: var(--space-md);
    border-bottom: 1px solid var(--ehr-border);
}

.comparison-hero__card-info {
    flex: 1;
    min-width: 0;
}

.comparison-hero__logo {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.comparison-hero__logo img {
    max-width: 44px;
    max-height: 44px;
    object-fit: contain;
}

.comparison-hero__logo span {
    font-size: 26px;
    font-weight: 700;
}

.comparison-hero__name {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--ehr-dark);
    margin: 0 0 4px;
}

.comparison-hero__rating {
    display: flex;
    align-items: center;
    gap: 6px;
}

.comparison-hero__rating-score {
    font-size: 1rem;
    font-weight: 700;
    color: var(--ehr-dark);
}

.comparison-hero__stars {
    display: flex;
    gap: 2px;
}

.comparison-hero__stars .star {
    width: 14px;
    height: 14px;
}

.comparison-hero__reviews {
    font-size: 13px;
    color: var(--ehr-gray);
}

.comparison-hero__card-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-sm) var(--space-md);
    margin-bottom: var(--space-md);
}

.comparison-hero__detail {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.comparison-hero__detail--full {
    grid-column: 1 / -1;
}

.comparison-hero__detail-label {
    font-size: 13px;
    font-weight: 500;
    color: var(--ehr-gray);
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.comparison-hero__detail-value {
    font-size: 14px;
    font-weight: 600;
    color: var(--ehr-dark);
}

.comparison-hero__badges {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: var(--space-md);
}

.comparison-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: var(--radius-sm);
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.comparison-hero__badge--hipaa {
    background: #dbeafe;
    color: var(--ehr-primary);
}

.comparison-hero__badge--onc {
    background: #ccfbf1;
    color: var(--ehr-secondary-dark);
}

.comparison-hero__features {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: var(--space-md);
    padding-top: var(--space-md);
    border-top: 1px solid var(--ehr-border);
}

.comparison-hero__feature {
    font-size: 12px;
    font-weight: 500;
    padding: 4px 10px;
    border-radius: var(--radius-full);
}

.comparison-hero__feature--yes {
    background: var(--ehr-primary);
    color: white;
}

.comparison-hero__feature--no {
    background: var(--ehr-light);
    color: var(--ehr-gray);
    text-decoration: line-through;
}

.comparison-hero__best-for {
    font-size: 13px;
    color: var(--ehr-gray-dark);
    line-height: 1.4;
    padding: var(--space-sm);
    background: var(--ehr-light);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-md);
}

.comparison-hero__best-for-label {
    font-weight: 600;
    color: var(--ehr-dark);
}

.comparison-hero__card-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 600;
    color: var(--ehr-primary);
    text-decoration: none;
    margin-top: auto;
}

.comparison-hero__card-link:hover {
    text-decoration: underline;
}

.comparison-hero__card-link svg {
    transition: transform var(--transition-normal);
}

.comparison-hero__card-link:hover svg {
    transform: translateX(3px);
}

@media (max-width: 700px) {
    .comparison-hero__title {
        font-size: 1.75rem;
    }

    .comparison-hero__grid {
        flex-direction: column;
        align-items: center;
    }

    .comparison-hero__card {
        max-width: 320px;
        width: 100%;
    }

    .comparison-hero__vs span {
        width: 40px;
        height: 40px;
        font-size: 13px;
    }
}

/* Verdict Banner - Primary Blue */
.verdict-banner {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    border-top: 2px solid var(--ehr-primary);
    border-bottom: 2px solid var(--ehr-primary);
}

.verdict-banner__inner {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
    padding: var(--space-lg) 0;
}

.verdict-banner__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: var(--ehr-primary);
    color: white;
    border-radius: 50%;
    flex-shrink: 0;
}

.verdict-banner__content {
    flex: 1;
}

.verdict-banner__label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--ehr-primary);
    margin-bottom: 4px;
}

.verdict-banner__text {
    font-size: 15px;
    line-height: 1.5;
    color: #1e3a5f;
    margin: 0;
}

.verdict-banner__text strong {
    color: #0f172a;
}

.verdict-banner__cta {
    flex-shrink: 0;
}

.btn--dark {
    background: var(--ehr-dark);
    color: white;
    border: none;
}

.btn--dark:hover {
    background: #1e293b;
}

@media (max-width: 700px) {
    .verdict-banner__inner {
        flex-direction: column;
        text-align: center;
    }

    .verdict-banner__cta {
        width: 100%;
    }
}

/* Quick Stats Comparison Bar */
.quick-stats-bar {
    display: flex;
    align-items: stretch;
    justify-content: center;
    gap: var(--space-md);
    flex-wrap: wrap;
}

.quick-stats-bar__item {
    flex: 1;
    min-width: 280px;
    max-width: 400px;
    background: var(--ehr-surface);
    border: 1px solid var(--ehr-border);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    position: relative;
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.quick-stats-bar__item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.quick-stats-bar__item--winner {
    border-color: var(--ehr-primary);
    box-shadow: 0 0 0 1px var(--ehr-primary);
}

.quick-stats-bar__vs {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    color: var(--ehr-gray);
    background: var(--ehr-border);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    flex-shrink: 0;
    align-self: center;
}

.quick-stats-bar__header {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-md);
}

.quick-stats-bar__logo {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.quick-stats-bar__logo img {
    max-width: 32px;
    max-height: 32px;
    object-fit: contain;
}

.quick-stats-bar__logo span {
    font-size: 20px;
    font-weight: 700;
}

.quick-stats-bar__title-wrap {
    flex: 1;
    min-width: 0;
}

.quick-stats-bar__title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--ehr-dark);
    margin: 0;
    line-height: 1.3;
}

.quick-stats-bar__badge {
    display: inline-block;
    background: var(--ehr-primary);
    color: white;
    font-size: 13px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: var(--radius-full);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 4px;
}

.quick-stats-bar__metrics {
    display: flex;
    gap: var(--space-sm);
    margin-bottom: var(--space-md);
    padding-bottom: var(--space-md);
    border-bottom: 1px solid var(--ehr-border);
}

.quick-stats-bar__metric {
    flex: 1;
    text-align: center;
}

.quick-stats-bar__metric-value {
    display: block;
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--ehr-dark);
    line-height: 1.2;
}

.quick-stats-bar__metric-label {
    display: block;
    font-size: 12px;
    color: var(--ehr-gray);
    margin-top: 2px;
}

.quick-stats-bar__best-for {
    font-size: 14px;
    color: var(--ehr-gray-dark);
    line-height: 1.4;
}

.quick-stats-bar__best-for-label {
    font-weight: 600;
    color: var(--ehr-dark);
}

@media (max-width: 768px) {
    .quick-stats-bar {
        flex-direction: column;
        align-items: center;
    }

    .quick-stats-bar__item {
        width: 100%;
        max-width: 100%;
    }

    .quick-stats-bar__vs {
        margin: var(--space-xs) 0;
    }
}

/* Comparison Cards - Redesigned */
.comparison-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-lg);
}

.comparison-card {
    background-color: var(--ehr-surface);
    border: 1px solid var(--ehr-border);
    border-radius: var(--radius-xl);
    padding: 0;
    overflow: hidden;
    position: relative;
    transition: transform var(--transition-normal), box-shadow var(--transition-normal), border-color var(--transition-normal);
}

.comparison-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--card-accent-color, var(--ehr-primary));
}

.comparison-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
    border-color: var(--card-accent-color, var(--ehr-primary));
}

.comparison-card__inner {
    padding: var(--space-lg);
}

.comparison-card__header {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin-bottom: var(--space-md);
}

.comparison-card__logo {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.comparison-card__logo img {
    max-width: 48px;
    max-height: 48px;
    object-fit: contain;
}

.comparison-card__title {
    font-size: 20px;
    font-weight: 700;
    margin: 0;
    flex: 1;
}

.comparison-card__title a {
    color: var(--ehr-dark);
    text-decoration: none;
}

.comparison-card__title a:hover {
    color: var(--ehr-primary);
}

/* Rating Display - New Design */
.comparison-card__rating {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md);
    background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 100%);
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-md);
}

.comparison-card__rating .rating-number {
    font-size: 32px;
    font-weight: 800;
    color: var(--ehr-primary);
    line-height: 1;
}

.comparison-card__rating .rating-info {
    flex: 1;
}

.comparison-card__rating .rating-stars {
    display: flex;
    gap: 3px;
    margin-bottom: 2px;
}

.comparison-card__rating .rating-stars .star {
    width: 16px;
    height: 16px;
    position: relative;
}

.comparison-card__rating .rating-stars .star::before {
    content: "";
    position: absolute;
    inset: 0;
    background-color: #fed7aa;
    clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
}

.comparison-card__rating .rating-stars .star--filled::before {
    background-color: var(--ehr-primary);
}

.comparison-card__rating .rating-reviews {
    font-size: 12px;
    color: #9a3412;
    font-weight: 500;
}

.comparison-card__details {
    margin-bottom: var(--space-md);
}

.comparison-card__details .detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid var(--ehr-light);
}

.comparison-card__details .detail-item:last-child {
    border-bottom: none;
}

.comparison-card__details .detail-label {
    font-size: 14px;
    color: var(--ehr-gray);
    display: flex;
    align-items: center;
    gap: 6px;
}

.comparison-card__details .detail-value {
    font-size: 14px;
    font-weight: 600;
    color: var(--ehr-dark);
}

/* Winner Badge */
.comparison-card--winner {
    border: 2px solid var(--ehr-success);
}

.comparison-card--winner::after {
    content: "Top Rated";
    position: absolute;
    top: 16px;
    right: 16px;
    background: linear-gradient(135deg, #16a34a 0%, #22c55e 100%);
    color: white;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 4px 10px;
    border-radius: 100px;
}

/* ==========================================================================
   Comparison Table - Completely Redesigned
   ========================================================================== */

.comparison-table-wrapper {
    border-radius: var(--radius-xl);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border: 1px solid var(--ehr-border);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
}

.comparison-table thead {
    position: sticky;
    top: 0;
    z-index: 10;
}

.comparison-table thead th {
    background: linear-gradient(135deg, var(--ehr-primary) 0%, var(--ehr-primary-dark) 100%) !important;
    color: white !important;
    font-weight: 600;
    text-align: left;
    padding: var(--space-md) var(--space-lg);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.comparison-table thead th a {
    color: white;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.comparison-table thead th a:hover {
    opacity: 0.85;
    text-decoration: underline;
}

.comparison-table thead th:first-child {
    min-width: 140px;
    width: auto;
}

@media (max-width: 768px) {
    .comparison-table {
        min-width: 600px;
    }

    .comparison-table thead th,
    .comparison-table tbody td {
        padding: var(--space-sm) var(--space-md);
        font-size: 13px;
    }

    .comparison-table thead th:first-child {
        min-width: 100px;
        position: sticky;
        left: 0;
        z-index: 5;
    }

    .comparison-table tbody td:first-child {
        position: sticky;
        left: 0;
        z-index: 4;
    }
}

.comparison-table tbody tr {
    transition: background-color var(--transition-fast);
}

.comparison-table tbody tr:nth-child(even) {
    background-color: #f8fafc;
}

.comparison-table tbody tr:hover td {
    background-color: #dbeafe;
}

.comparison-table tbody td {
    padding: var(--space-md) var(--space-lg);
    border-bottom: 1px solid var(--ehr-light);
    font-size: 15px;
    transition: background-color var(--transition-fast);
}

.comparison-table tbody td:first-child {
    font-weight: 600;
    color: var(--ehr-dark);
    background-color: #f8fafc;
}

/* Check/X marks */
.comparison-rating {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-weight: 600;
}

.comparison-check {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    font-weight: 700;
    font-size: 14px;
}

.comparison-check--yes {
    background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%);
    color: #16a34a;
}

.comparison-check--no {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    color: #dc2626;
}

/* Best Value Highlight */
.comparison-table .best-value {
    background-color: #dbeafe !important;
    position: relative;
}

.comparison-table .best-value::after {
    content: "Best";
    position: absolute;
    top: 4px;
    right: 8px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--ehr-primary);
}

/* Sticky Table Header */
.comparison-table thead {
    position: sticky;
    top: 0;
    z-index: 10;
}

.comparison-table thead th {
    background: linear-gradient(135deg, var(--ehr-primary) 0%, var(--ehr-primary-dark) 100%);
    color: white;
    box-shadow: 0 2px 4px rgba(37, 99, 235, 0.2);
}

/* ==========================================================================
   Quick Verdict Box
   ========================================================================== */

.verdict-box {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    border: 2px solid var(--ehr-primary);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    position: relative;
    overflow: hidden;
}

.verdict-box::before {
    content: "";
    position: absolute;
    top: -50px;
    right: -50px;
    width: 150px;
    height: 150px;
    background: rgba(37, 99, 235, 0.1);
    border-radius: 50%;
}

.verdict-box__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--ehr-primary);
    color: white;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 6px 14px;
    border-radius: 100px;
    margin-bottom: var(--space-md);
}

.verdict-box__content {
    display: flex;
    gap: var(--space-xl);
    align-items: flex-start;
}

.verdict-box__winner {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    flex-shrink: 0;
}

.verdict-box__winner-logo {
    width: 72px;
    height: 72px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.verdict-box__winner-logo img {
    max-width: 56px;
    max-height: 56px;
    object-fit: contain;
}

.verdict-box__winner-logo span {
    font-size: 28px;
    font-weight: 700;
}

.verdict-box__winner-info {
    text-align: left;
}

.verdict-box__winner-label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #92400e;
    margin-bottom: 4px;
}

.verdict-box__winner-name {
    font-size: 1.5rem;
    font-weight: 800;
    margin: 0 0 4px;
    color: var(--ehr-dark);
}

.verdict-box__winner-name a {
    color: inherit;
    text-decoration: none;
}

.verdict-box__winner-name a:hover {
    color: var(--ehr-primary);
}

.verdict-box__winner-rating {
    display: flex;
    align-items: baseline;
    gap: 2px;
}

.verdict-box__winner-rating .rating-score {
    font-size: 1.25rem;
    font-weight: 800;
    color: #b45309;
}

.verdict-box__winner-rating .rating-label {
    font-size: 14px;
    color: #92400e;
}

.verdict-box__summary {
    flex: 1;
    padding-left: var(--space-xl);
    border-left: 2px solid rgba(245, 158, 11, 0.3);
}

.verdict-box__summary p {
    font-size: 16px;
    line-height: 1.7;
    color: #78350f;
    margin: 0 0 var(--space-md);
}

.verdict-box__summary .btn {
    background: #f59e0b;
    border-color: #f59e0b;
    color: white;
}

.verdict-box__summary .btn:hover {
    background: #d97706;
    border-color: #d97706;
}

.verdict-box__summary .btn svg {
    margin-left: 8px;
}

@media (max-width: 768px) {
    .verdict-box__content {
        flex-direction: column;
    }

    .verdict-box__summary {
        padding-left: 0;
        padding-top: var(--space-md);
        border-left: none;
        border-top: 2px solid rgba(245, 158, 11, 0.3);
    }
}

/* ==========================================================================
   Best For Recommendations
   ========================================================================== */

/* Recommendation Cards - Enhanced "Which One Is Right For You" */
.recommendation-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: var(--space-xl);
}

.recommendation-card {
    background: var(--ehr-surface);
    border: 1px solid var(--ehr-border);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    position: relative;
    display: flex;
    flex-direction: column;
    transition: box-shadow var(--transition-normal), transform var(--transition-normal);
}

.recommendation-card:hover {
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
    transform: translateY(-4px);
}

.recommendation-card--recommended {
    border-color: var(--ehr-primary);
    box-shadow: 0 0 0 1px var(--ehr-primary);
}

.recommendation-card__ribbon {
    position: absolute;
    top: 16px;
    right: -8px;
    background: var(--ehr-primary);
    color: white;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 6px 16px;
    border-radius: 4px 0 0 4px;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3);
}

.recommendation-card__ribbon::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: -8px;
    border: 4px solid transparent;
    border-top-color: var(--ehr-primary-dark);
    border-right-color: var(--ehr-primary-dark);
}

.recommendation-card__header {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
}

.recommendation-card__logo {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.recommendation-card__logo img {
    max-width: 40px;
    max-height: 40px;
    object-fit: contain;
}

.recommendation-card__logo span {
    font-size: 24px;
    font-weight: 700;
}

.recommendation-card__title-wrap {
    flex: 1;
    min-width: 0;
}

.recommendation-card__title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--ehr-dark);
    margin: 0 0 4px;
}

.recommendation-card__rating {
    font-size: 14px;
    font-weight: 600;
    color: var(--ehr-dark);
}

.recommendation-card__reviews {
    font-weight: 400;
    color: var(--ehr-gray);
}

.recommendation-card__best-for {
    background: var(--ehr-light);
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-md);
    font-size: 14px;
    color: var(--ehr-gray-dark);
    margin-bottom: var(--space-md);
}

.recommendation-card__best-for-label {
    font-weight: 600;
    color: var(--ehr-dark);
}

.recommendation-card__choose {
    margin-bottom: var(--space-lg);
    flex: 1;
}

.recommendation-card__choose-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--ehr-dark);
    margin: 0 0 var(--space-sm);
}

.recommendation-card__choose-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.recommendation-card__choose-list li {
    position: relative;
    padding-left: 20px;
    font-size: 14px;
    color: var(--ehr-gray-dark);
    line-height: 1.5;
    margin-bottom: 6px;
}

.recommendation-card__choose-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 8px;
    width: 6px;
    height: 6px;
    background: var(--ehr-primary);
    border-radius: 50%;
}

.recommendation-card__highlights {
    margin-bottom: var(--space-lg);
    padding-top: var(--space-md);
    border-top: 1px solid var(--ehr-border);
}

.recommendation-card__highlights-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--ehr-gray);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0 0 var(--space-sm);
}

.recommendation-card__highlights-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.recommendation-card__highlight {
    display: inline-block;
    background: #dbeafe;
    color: var(--ehr-primary);
    font-size: 12px;
    font-weight: 500;
    padding: 4px 10px;
    border-radius: var(--radius-full);
}

.recommendation-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: var(--space-md);
    border-top: 1px solid var(--ehr-border);
    margin-top: auto;
}

.recommendation-card__price {
    display: flex;
    flex-direction: column;
}

.recommendation-card__price-label {
    font-size: 13px;
    color: var(--ehr-gray);
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.recommendation-card__price-value {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--ehr-dark);
}

.recommendation-card__footer .btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 50px;
    background: linear-gradient(135deg, var(--ehr-primary) 0%, var(--ehr-primary-dark) 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
    transition: all var(--transition-fast);
}

.recommendation-card__footer .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
}

.recommendation-card__footer .btn svg {
    transition: transform var(--transition-fast);
}

.recommendation-card__footer .btn:hover svg {
    transform: translateX(3px);
}


@media (max-width: 700px) {
    .recommendation-grid {
        grid-template-columns: 1fr;
    }

    .recommendation-card__footer {
        flex-direction: column;
        gap: var(--space-md);
        align-items: stretch;
        text-align: center;
    }

    .recommendation-card__footer .btn {
        justify-content: center;
        width: 100%;
    }
}

/* ==========================================================================
   Comparison Article Content - Enhanced Styling
   ========================================================================== */

.comparison-content {
    font-size: 1.0625rem;
    line-height: 1.8;
    color: var(--ehr-dark);
}

.comparison-content > *:first-child {
    margin-top: 0;
}

/* Section Headings with Accent */
.comparison-content h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--ehr-dark);
    margin: 0 0 var(--space-md);
    padding-bottom: var(--space-sm);
    border-bottom: 2px solid var(--ehr-primary);
    display: inline-block;
}

.comparison-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--ehr-dark);
    margin: var(--space-lg) 0 var(--space-sm);
}

/* Content Sections as Cards */
.comparison-content-section {
    background: var(--ehr-surface);
    border: 1px solid var(--ehr-border);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    margin-bottom: var(--space-lg);
    border-left: 4px solid var(--ehr-primary);
}

.comparison-content-section:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

/* Paragraphs */
.comparison-content p {
    margin-bottom: 1.5em;
    color: var(--ehr-gray-dark);
}

.comparison-content p:last-child {
    margin-bottom: 0;
}

/* Verdict/Conclusion Section - Special Styling */
.comparison-content-section--verdict {
    background: linear-gradient(135deg, #dbeafe 0%, #eff6ff 100%);
    border-color: var(--ehr-primary);
    border-left-width: 4px;
}

.comparison-content-section--verdict h2 {
    color: var(--ehr-primary-dark);
    border-bottom-color: var(--ehr-primary-dark);
}

.comparison-content-section--verdict p {
    color: var(--ehr-dark);
    font-size: 1.0625rem;
}

/* Blockquotes as Callouts */
.comparison-content blockquote {
    background: var(--ehr-light);
    border-left: 4px solid var(--ehr-secondary);
    border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
    padding: var(--space-lg) var(--space-xl);
    margin: var(--space-lg) 0;
    font-style: normal;
}

.comparison-content blockquote p {
    margin: 0;
    color: var(--ehr-dark);
    font-weight: 500;
}

/* Lists */
.comparison-content ul,
.comparison-content ol {
    margin: var(--space-md) 0 var(--space-lg);
    padding-left: 0;
    list-style: none;
}

.comparison-content li {
    position: relative;
    padding-left: 24px;
    margin-bottom: var(--space-sm);
    color: var(--ehr-gray-dark);
}

.comparison-content li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 10px;
    width: 8px;
    height: 8px;
    background: var(--ehr-primary);
    border-radius: 50%;
}

.comparison-content ol {
    counter-reset: item;
}

.comparison-content ol li::before {
    content: counter(item);
    counter-increment: item;
    width: 20px;
    height: 20px;
    background: var(--ehr-primary);
    color: white;
    font-size: 13px;
    font-weight: 700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    top: 4px;
}

/* Links */
.comparison-content a {
    color: var(--ehr-primary);
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1px solid rgba(37, 99, 235, 0.3);
    transition: border-color var(--transition-fast);
}

.comparison-content a:hover {
    border-bottom-color: var(--ehr-primary);
}

/* Old best-for styles (kept for backwards compatibility) */
.best-for-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-lg);
}

.best-for-card {
    background: var(--ehr-surface);
    border: 1px solid var(--ehr-border);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
    border-top: 4px solid var(--card-color, var(--ehr-primary));
}

.best-for-card:hover {
    border-color: var(--card-color, var(--ehr-primary));
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.best-for-card__header {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin-bottom: var(--space-md);
    padding-bottom: var(--space-md);
    border-bottom: 1px solid var(--ehr-border);
}

.best-for-card__logo {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.best-for-card__logo img {
    max-width: 36px;
    max-height: 36px;
    object-fit: contain;
}

.best-for-card__logo span {
    font-size: 20px;
    font-weight: 700;
}

.best-for-card__title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--ehr-dark);
    margin: 0;
}

.best-for-card__label {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--ehr-gray);
    margin: 0 0 8px;
}

.best-for-card__text {
    font-size: 15px;
    line-height: 1.6;
    color: var(--ehr-dark);
    margin: 0;
}

.best-for-card__list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.best-for-card__list li {
    background: var(--ehr-light);
    padding: 6px 12px;
    border-radius: 100px;
    font-size: 13px;
    color: var(--ehr-dark);
    font-weight: 500;
}

/* ==========================================================================
   Pros & Cons Section
   ========================================================================== */

.pros-cons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--space-lg);
}

.pros-cons-card {
    background: var(--ehr-surface);
    border: 1px solid var(--ehr-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.pros-cons-card__header {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md) var(--space-lg);
    background: var(--ehr-light);
    border-bottom: 3px solid var(--ehr-primary);
}

.pros-cons-card__logo {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(37, 99, 235, 0.1);
}

.pros-cons-card__logo img {
    max-width: 32px;
    max-height: 32px;
    object-fit: contain;
}

.pros-cons-card__logo span {
    font-size: 18px;
    font-weight: 700;
    color: var(--ehr-primary);
}

.pros-cons-card__title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--ehr-dark);
    margin: 0;
}

.pros-cons-card__title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.pros-cons-card__title a:hover {
    color: var(--ehr-primary);
}

.pros-cons-card__content {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.pros-cons-card__section {
    padding: var(--space-md) var(--space-lg);
}

.pros-cons-card__section--pros {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border-right: 1px solid var(--ehr-border);
}

.pros-cons-card__section--cons {
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
}

.pros-cons-card__section-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0 0 var(--space-sm);
}

.pros-cons-card__section--pros .pros-cons-card__section-title {
    color: #16a34a;
}

.pros-cons-card__section--cons .pros-cons-card__section-title {
    color: #dc2626;
}

.pros-cons-card__list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.pros-cons-card__list li {
    font-size: 14px;
    line-height: 1.5;
    color: var(--ehr-dark);
    padding: 6px 0;
    padding-left: 20px;
    position: relative;
}

.pros-cons-card__section--pros .pros-cons-card__list li::before {
    content: "+";
    position: absolute;
    left: 0;
    font-weight: 700;
    color: #16a34a;
}

.pros-cons-card__section--cons .pros-cons-card__list li::before {
    content: "-";
    position: absolute;
    left: 2px;
    font-weight: 700;
    color: #dc2626;
}

@media (max-width: 600px) {
    .pros-cons-grid {
        grid-template-columns: 1fr;
    }

    .pros-cons-card__content {
        grid-template-columns: 1fr;
    }

    .pros-cons-card__section--pros {
        border-right: none;
        border-bottom: 1px solid var(--ehr-border);
    }
}

/* ==========================================================================
   Compare List (Archive) - Clean Brand Design
   ========================================================================== */

.compare-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Compare Card */
.compare-card {
    background: white;
    border: 1px solid var(--ehr-border);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.25s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.compare-card:hover {
    border-color: var(--ehr-primary);
    box-shadow: 0 12px 40px rgba(37, 99, 235, 0.12);
    transform: translateY(-2px);
}

/* Card Header */
.compare-card__header {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 24px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-bottom: 1px solid var(--ehr-border);
}

.compare-card__versus {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.compare-card__vs-icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: 700;
    background-color: rgba(37, 99, 235, 0.08);
    color: var(--ehr-primary);
    border: 2px solid rgba(37, 99, 235, 0.15);
    transition: transform 0.2s ease;
}

.compare-card:hover .compare-card__vs-icon {
    transform: scale(1.05);
}

.compare-card__vs-icon img {
    max-width: 32px;
    max-height: 32px;
    object-fit: contain;
}

.compare-card__vs {
    font-size: 12px;
    font-weight: 800;
    color: var(--ehr-gray);
    padding: 4px 8px;
    background: white;
    border-radius: 4px;
    letter-spacing: 1px;
}

.compare-card__header-content {
    flex: 1;
    min-width: 0;
}

.compare-card__meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.compare-card__label {
    display: inline-flex;
    align-items: center;
    padding: 5px 12px;
    background: var(--ehr-primary);
    border-radius: 100px;
    font-size: 13px;
    font-weight: 600;
    color: white;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.compare-card__date {
    font-size: 13px;
    color: var(--ehr-gray);
}

.compare-card__title {
    font-size: 24px;
    font-weight: 700;
    color: var(--ehr-dark);
    margin: 0;
    line-height: 1.3;
}

.compare-card__title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.15s ease;
}

.compare-card:hover .compare-card__title a {
    color: var(--ehr-primary);
}

/* Card Body */
.compare-card__body {
    padding: 24px;
}

/* Systems Grid */
.compare-card__systems {
    display: grid;
    gap: 20px;
}

.compare-card__systems[data-count="2"] {
    grid-template-columns: repeat(2, 1fr);
}

.compare-card__systems[data-count="3"] {
    grid-template-columns: repeat(3, 1fr);
}

/* Individual System Card */
.compare-card__system {
    position: relative;
    padding: 24px;
    background: white;
    border-radius: 12px;
    border: 1px solid var(--ehr-border);
    transition: all 0.2s ease;
}

.compare-card__system:hover {
    border-color: var(--ehr-primary);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.08);
}

.compare-card__system--winner {
    border-color: var(--ehr-secondary);
    background: linear-gradient(180deg, rgba(20, 184, 166, 0.04) 0%, white 50%);
}

.compare-card__system--winner:hover {
    border-color: var(--ehr-secondary);
    box-shadow: 0 4px 12px rgba(20, 184, 166, 0.12);
}

.compare-card__system--winner .compare-card__icon {
    background-color: rgba(20, 184, 166, 0.08);
}

.compare-card__system--winner .compare-card__icon span {
    color: var(--ehr-secondary);
}

.compare-card__system--winner .compare-card__rating-score {
    color: var(--ehr-secondary);
}

.compare-card__system--winner .compare-card__square--filled {
    background-color: var(--ehr-secondary);
}

.compare-card__system--winner .compare-card__system-btn:hover {
    background: var(--ehr-secondary);
    border-color: var(--ehr-secondary);
}

.compare-card__winner-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 4px 10px;
    background: var(--ehr-secondary);
    color: white;
    border-radius: 100px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* System Top Row */
.compare-card__system-top {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.compare-card__icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background-color: rgba(37, 99, 235, 0.08);
}

.compare-card__icon img {
    max-width: 32px;
    max-height: 32px;
    object-fit: contain;
}

.compare-card__icon span {
    font-size: 20px;
    font-weight: 700;
    color: var(--ehr-primary);
}

.compare-card__system-info {
    flex: 1;
    min-width: 0;
}

.compare-card__system-name {
    font-size: 18px;
    font-weight: 700;
    color: var(--ehr-dark);
    margin: 0 0 2px;
    line-height: 1.2;
}

.compare-card__system-company {
    font-size: 13px;
    color: var(--ehr-gray);
    margin: 0;
}

/* Rating Box */
.compare-card__rating-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    background: var(--ehr-light);
    border-radius: 10px;
    margin-bottom: 16px;
}

.compare-card__rating-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.compare-card__rating-score {
    font-size: 20px;
    font-weight: 800;
    line-height: 1;
    color: var(--ehr-primary);
}

.compare-card__rating-squares {
    display: flex;
    gap: 3px;
}

.compare-card__square {
    width: 14px;
    height: 14px;
    background: var(--ehr-border);
    border-radius: 3px;
    transition: transform 0.15s ease;
}

.compare-card__square--filled {
    background-color: var(--ehr-primary);
}

.compare-card__system:hover .compare-card__square--filled {
    transform: scale(1.1);
}

.compare-card__rating-count {
    font-size: 13px;
    color: var(--ehr-gray);
}

/* Quick Stats */
.compare-card__stats {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 16px;
}

.compare-card__stat {
    display: flex;
    align-items: center;
    gap: 10px;
}

.compare-card__stat-icon {
    width: 28px;
    height: 28px;
    background: var(--ehr-light);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ehr-gray);
}

.compare-card__stat-value {
    font-size: 14px;
    font-weight: 600;
    color: var(--ehr-dark);
}

/* Feature Pills */
.compare-card__features {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 20px;
}

.compare-card__feature {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
}

.compare-card__feature--yes {
    background: rgba(20, 184, 166, 0.1);
    color: var(--ehr-secondary-dark);
}

.compare-card__feature svg {
    flex-shrink: 0;
}

/* System Button */
.compare-card__system-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px 16px;
    background: white;
    border: 1px solid var(--ehr-border);
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--ehr-dark);
    text-decoration: none;
    transition: all 0.15s ease;
}

.compare-card__system-btn:hover {
    background: var(--ehr-primary);
    border-color: var(--ehr-primary);
    color: white;
}

.compare-card__system-btn svg {
    transition: transform 0.15s ease;
}

.compare-card__system-btn:hover svg {
    transform: translateX(4px);
}

/* Card Footer */
.compare-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    background: var(--ehr-dark);
    text-decoration: none;
    transition: background 0.2s ease;
}

.compare-card__footer:hover {
    background: #1e293b;
}

.compare-card__cta-text {
    font-size: 15px;
    font-weight: 600;
    color: white;
}

.compare-card__cta-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: var(--ehr-primary);
    border-radius: 8px;
    color: white;
    transition: transform 0.2s ease;
}

.compare-card__footer:hover .compare-card__cta-arrow {
    transform: translateX(4px);
}

/* ==========================================================================
   Comparison Link Card (Simple Related Comparisons)
   ========================================================================== */

.comparison-links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--space-lg);
}

.comparison-link-card {
    background: white;
    border: 1px solid var(--ehr-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all 0.2s ease;
}

.comparison-link-card:hover {
    border-color: var(--ehr-primary);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.1);
}

.comparison-link-card__inner {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-lg);
    text-decoration: none;
    color: inherit;
}

.comparison-link-card__logos {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.comparison-link-card__logo {
    width: 44px;
    height: 44px;
    background: var(--ehr-light);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.comparison-link-card__logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 6px;
}

.comparison-link-card__logo span {
    font-size: 16px;
    font-weight: 700;
    color: var(--ehr-primary);
}

.comparison-link-card__vs {
    font-size: 13px;
    font-weight: 700;
    color: var(--ehr-gray);
    text-transform: uppercase;
}

.comparison-link-card__content {
    flex: 1;
    min-width: 0;
}

.comparison-link-card__title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--ehr-dark);
    margin: 0 0 4px 0;
    line-height: 1.3;
}

.comparison-link-card:hover .comparison-link-card__title {
    color: var(--ehr-primary);
}

.comparison-link-card__meta {
    font-size: 13px;
    color: var(--ehr-gray);
}

.comparison-link-card__arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: var(--ehr-light);
    border-radius: 8px;
    color: var(--ehr-gray);
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.comparison-link-card:hover .comparison-link-card__arrow {
    background: var(--ehr-primary);
    color: white;
    transform: translateX(4px);
}

/* ==========================================================================
   Compare Table (Archive)
   ========================================================================== */

.compare-table-wrapper {
    background: white;
    border-radius: 16px;
    border: 1px solid var(--ehr-border);
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

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

.compare-table thead {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-bottom: 1px solid var(--ehr-border);
}

.compare-table th {
    padding: 16px 20px;
    text-align: left;
    font-size: 12px;
    font-weight: 700;
    color: var(--ehr-gray);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.compare-table__th-systems {
    width: 45%;
}

.compare-table__th-rating {
    width: 22%;
}

.compare-table__th-features {
    width: 23%;
}

.compare-table__th-action {
    width: 10%;
    text-align: right;
}

.compare-table__row {
    border-bottom: 1px solid var(--ehr-border);
    transition: background 0.15s ease;
}

.compare-table__row:last-child {
    border-bottom: none;
}

.compare-table__row:hover {
    background: rgba(37, 99, 235, 0.02);
}

.compare-table td {
    padding: 20px;
    vertical-align: middle;
}

/* Systems Column */
.compare-table__systems-inner {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: nowrap;
}

.compare-table__system {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    position: relative;
}

.compare-table__system-name {
    white-space: nowrap;
}

.compare-table__vs {
    font-size: 13px;
    font-weight: 700;
    color: var(--ehr-gray);
    text-transform: uppercase;
    padding: 4px 8px;
    background: var(--ehr-light);
    border-radius: 4px;
}

.compare-table__icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 700;
    background-color: rgba(37, 99, 235, 0.08);
    color: var(--ehr-primary);
    border: 2px solid rgba(37, 99, 235, 0.15);
    flex-shrink: 0;
}

.compare-table__system--winner .compare-table__icon {
    background-color: rgba(37, 99, 235, 0.08);
    border-color: rgba(37, 99, 235, 0.2);
}

.compare-table__system--winner .compare-table__icon span {
    color: var(--ehr-primary);
}

.compare-table__icon img {
    max-width: 28px;
    max-height: 28px;
    object-fit: contain;
}

.compare-table__system-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.compare-table__system-name {
    display: inline-flex;
    align-items: center;
    font-size: 15px;
    font-weight: 600;
    color: var(--ehr-dark);
    text-decoration: none;
    transition: color 0.2s ease;
}

a.compare-table__system-name:hover {
    color: var(--ehr-primary);
}

.compare-table__trophy {
    color: #f59e0b;
    margin-left: 5px;
    flex-shrink: 0;
    position: relative;
    top: -1px;
}

/* Ratings Column */
.compare-table__ratings-inner {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.compare-table__rating {
    display: flex;
    align-items: center;
    gap: 8px;
}

.compare-table__rating-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--ehr-gray);
    min-width: 80px;
    max-width: 100px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.compare-table__rating-score {
    font-size: 16px;
    font-weight: 700;
    color: var(--ehr-primary);
    min-width: 32px;
}

.compare-table__rating--winner .compare-table__rating-score {
    color: var(--ehr-primary);
}

.compare-table__rating-stars {
    display: flex;
    gap: 3px;
}

.compare-table__star {
    width: 10px;
    height: 10px;
    background: var(--ehr-border);
    border-radius: 2px;
}

.compare-table__star--filled {
    background: var(--ehr-dark);
}

.compare-table__rating--winner .compare-table__star--filled {
    background: var(--ehr-primary);
}

.compare-table__reviews {
    font-size: 12px;
    color: var(--ehr-gray);
}

/* Features Column */
.compare-table__features-inner {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.compare-table__feature {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 10px;
    border-radius: 100px;
    font-size: 12px;
    font-weight: 500;
}

.compare-table__feature--yes {
    background: rgba(20, 184, 166, 0.1);
    color: var(--ehr-secondary);
}

.compare-table__feature--no {
    background: var(--ehr-light);
    color: var(--ehr-gray);
}

/* Action Column */
.compare-table__action {
    text-align: right;
}

.compare-table__btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: var(--ehr-primary);
    color: white;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

.compare-table__btn:hover {
    background: var(--ehr-primary-dark);
    transform: translateX(2px);
}

.compare-table__btn svg {
    transition: transform 0.15s ease;
}

.compare-table__btn:hover svg {
    transform: translateX(4px);
}

/* Responsive Table */
@media (max-width: 992px) {
    .compare-table__th-features,
    .compare-table__features {
        display: none;
    }

    .compare-table__th-systems {
        width: 55%;
    }

    .compare-table__th-rating {
        width: 30%;
    }
}

@media (max-width: 768px) {
    .compare-table-wrapper {
        border-radius: 12px;
    }

    .compare-table thead {
        display: none;
    }

    .compare-table,
    .compare-table tbody,
    .compare-table tr,
    .compare-table td {
        display: block;
    }

    .compare-table__row {
        padding: 16px;
        margin-bottom: 12px;
        background: white;
        border-radius: 12px;
        border: 1px solid var(--ehr-border);
    }

    .compare-table__row:last-child {
        margin-bottom: 0;
        border-bottom: 1px solid var(--ehr-border);
    }

    .compare-table td {
        padding: 8px 0;
        border: none;
    }

    .compare-table__systems {
        padding-bottom: 12px !important;
        border-bottom: 1px solid var(--ehr-border);
        margin-bottom: 12px;
    }

    .compare-table__ratings-inner {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 16px;
    }

    .compare-table__features {
        display: block !important;
        padding: 12px 0 !important;
    }

    .compare-table__action {
        text-align: left;
        padding-top: 12px !important;
    }

    .compare-table__btn {
        width: 100%;
        justify-content: center;
    }
}

/* ==========================================================================
   EHR Systems Table (Reviews Archive)
   ========================================================================== */

.ehr-table-wrapper {
    background: white;
    border-radius: 16px;
    border: 1px solid var(--ehr-border);
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

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

.ehr-table thead {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-bottom: 1px solid var(--ehr-border);
}

.ehr-table th {
    padding: 16px 20px;
    text-align: left;
    font-size: 12px;
    font-weight: 700;
    color: var(--ehr-gray);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ehr-table__th-rank {
    width: 60px;
    text-align: center;
}

.ehr-table__th-system {
    width: 28%;
}

.ehr-table__th-rating {
    width: 18%;
}

.ehr-table__th-features {
    width: 26%;
}

.ehr-table__th-pricing {
    width: 14%;
}

.ehr-table__th-action {
    width: 14%;
    text-align: right;
}

.ehr-table__row {
    border-bottom: 1px solid var(--ehr-border);
    transition: background 0.15s ease;
}

.ehr-table__row:last-child {
    border-bottom: none;
}

.ehr-table__row:hover {
    background: rgba(37, 99, 235, 0.02);
}

.ehr-table td {
    padding: 20px;
    vertical-align: middle;
}

/* Rank Column */
.ehr-table__rank {
    text-align: center;
}

.ehr-table__rank-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: var(--ehr-light);
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    color: var(--ehr-dark);
}

.ehr-table__row:nth-child(1) .ehr-table__rank-num {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    color: white;
}

.ehr-table__row:nth-child(2) .ehr-table__rank-num {
    background: linear-gradient(135deg, #94a3b8 0%, #64748b 100%);
    color: white;
}

.ehr-table__row:nth-child(3) .ehr-table__rank-num {
    background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
    color: white;
}

/* System Column */
.ehr-table__system-inner {
    display: flex;
    align-items: center;
    gap: 16px;
}

.ehr-table__logo {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(37, 99, 235, 0.08);
    border: 2px solid rgba(37, 99, 235, 0.15);
    flex-shrink: 0;
    overflow: hidden;
}

.ehr-table__logo-img {
    max-width: 40px;
    max-height: 40px;
    object-fit: contain;
}

.ehr-table__logo-letter {
    font-size: 22px;
    font-weight: 700;
    color: var(--ehr-primary);
}

.ehr-table__system-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.ehr-table__system-name {
    font-size: 16px;
    font-weight: 600;
    margin: 0;
    line-height: 1.3;
}

.ehr-table__system-name a {
    color: var(--ehr-dark);
    text-decoration: none;
    transition: color 0.15s ease;
}

.ehr-table__row:hover .ehr-table__system-name a {
    color: var(--ehr-primary);
}

.ehr-table__company {
    font-size: 13px;
    color: var(--ehr-gray);
}

.ehr-table__category {
    display: inline-block;
    padding: 3px 8px;
    background: var(--ehr-light);
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
    color: var(--ehr-gray);
    text-transform: uppercase;
    letter-spacing: 0.3px;
    width: fit-content;
}

/* Rating Column */
.ehr-table__rating-inner {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.ehr-table__rating-score {
    font-size: 20px;
    font-weight: 700;
    color: var(--ehr-primary);
}

.ehr-table__rating-stars {
    display: flex;
    gap: 3px;
}

.ehr-table__star {
    width: 12px;
    height: 12px;
    background: var(--ehr-border);
    border-radius: 2px;
}

.ehr-table__star--filled {
    background: var(--ehr-primary);
}

.ehr-table__reviews {
    font-size: 12px;
    color: var(--ehr-gray);
}

/* Features Column */
.ehr-table__features-inner {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.ehr-table__feature {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 10px;
    border-radius: 100px;
    font-size: 12px;
    font-weight: 500;
}

.ehr-table__feature--yes {
    background: rgba(20, 184, 166, 0.1);
    color: var(--ehr-secondary);
}

.ehr-table__feature--no {
    background: var(--ehr-light);
    color: #94a3b8;
}

/* Pricing Column */
.ehr-table__price {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.ehr-table__price-label {
    font-size: 13px;
    color: var(--ehr-gray);
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.ehr-table__price-value {
    font-size: 15px;
    font-weight: 600;
    color: var(--ehr-dark);
}

.ehr-table__price-contact {
    font-size: 13px;
    color: var(--ehr-gray);
    font-style: italic;
}

/* Action Column */
.ehr-table__action {
    text-align: right;
}

.ehr-table__btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: var(--ehr-primary);
    color: white;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.ehr-table__btn:hover {
    background: var(--ehr-primary-dark);
    transform: translateX(2px);
}

.ehr-table__btn svg {
    transition: transform 0.15s ease;
}

.ehr-table__btn:hover svg {
    transform: translateX(4px);
}

.ehr-table__action-buttons {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}

.ehr-table__compare-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 14px;
    background: white;
    color: var(--ehr-gray);
    border: 1px solid var(--ehr-border);
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.ehr-table__compare-btn:hover {
    border-color: var(--ehr-primary);
    color: var(--ehr-primary);
    background: rgba(37, 99, 235, 0.05);
}

.ehr-table__compare-btn.is-added {
    background: var(--ehr-primary);
    color: white;
    border-color: var(--ehr-primary);
}

.ehr-table__compare-btn.is-added:hover {
    background: var(--ehr-primary-dark);
}

/* Responsive EHR Table */
@media (max-width: 1200px) {
    .ehr-table__th-pricing,
    .ehr-table__pricing {
        display: none;
    }
}

@media (max-width: 992px) {
    .ehr-table__th-features,
    .ehr-table__features {
        display: none;
    }

    .ehr-table__th-system {
        width: 50%;
    }

    .ehr-table__th-rating {
        width: 30%;
    }
}

@media (max-width: 768px) {
    .ehr-table-wrapper {
        border-radius: 12px;
        background: transparent;
        border: none;
        box-shadow: none;
    }

    .ehr-table thead {
        display: none;
    }

    .ehr-table,
    .ehr-table tbody,
    .ehr-table tr,
    .ehr-table td {
        display: block;
    }

    .ehr-table__row {
        padding: 20px;
        margin-bottom: 12px;
        background: white;
        border-radius: 12px;
        border: 1px solid var(--ehr-border);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    }

    .ehr-table__row:last-child {
        margin-bottom: 0;
    }

    .ehr-table td {
        padding: 0;
        border: none;
    }

    .ehr-table__rank {
        position: absolute;
        top: 16px;
        right: 16px;
    }

    .ehr-table__row {
        position: relative;
    }

    .ehr-table__system {
        padding-bottom: 16px !important;
        margin-bottom: 16px;
        border-bottom: 1px solid var(--ehr-border);
    }

    .ehr-table__rating {
        padding: 12px 0 !important;
    }

    .ehr-table__rating-inner {
        flex-direction: row;
        align-items: center;
        gap: 12px;
    }

    .ehr-table__features {
        display: block !important;
        padding: 12px 0 !important;
    }

    .ehr-table__pricing {
        display: block !important;
        padding: 12px 0 !important;
    }

    .ehr-table__action {
        text-align: left;
        padding-top: 16px !important;
        border-top: 1px solid var(--ehr-border);
        margin-top: 12px;
    }

    .ehr-table__action-buttons {
        flex-direction: row;
        justify-content: stretch;
        width: 100%;
    }

    .ehr-table__compare-btn,
    .ehr-table__btn {
        flex: 1;
        justify-content: center;
    }
}

/* Archive Toolbar */
.archive-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-lg);
    padding: var(--space-md);
    background: white;
    border: 1px solid var(--ehr-border);
    border-radius: var(--radius-lg);
}

.archive-toolbar__info {
    font-size: 14px;
    color: var(--ehr-gray);
}

/* Archive Header Stats */
.archive-header__stats {
    display: flex;
    justify-content: center;
    gap: var(--space-lg);
    margin-top: var(--space-sm);
}

.archive-stat {
    font-size: 14px;
    color: var(--ehr-gray);
}

.archive-stat strong {
    color: var(--ehr-dark);
    font-weight: 700;
}

/* Pagination Wrapper */
.pagination-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-md);
    margin-top: var(--space-xl);
}

.pagination-info {
    font-size: 14px;
    color: var(--ehr-gray);
}

/* Compare Card Responsive */
@media (max-width: 900px) {
    .compare-card__systems[data-count="3"] {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .compare-card__header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .compare-card__systems[data-count="2"],
    .compare-card__systems[data-count="3"] {
        grid-template-columns: 1fr;
    }

    .compare-card__title {
        font-size: 20px;
    }

    .compare-card__body {
        padding: 16px;
    }

    .compare-card__system {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .compare-card__header {
        padding: 16px;
    }

    .compare-card__versus {
        flex-wrap: wrap;
    }

    .compare-card__vs-icon {
        width: 44px;
        height: 44px;
        font-size: 18px;
    }

    .compare-card__footer {
        padding: 16px;
    }
}

/* ==========================================================================
   Compliance Badges - New
   ========================================================================== */

.compliance-badges {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
    margin: var(--space-md) 0;
}

.compliance-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 100px;
    font-size: 12px;
    font-weight: 600;
}

.compliance-badge--hipaa {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    color: #1d4ed8;
    border: 1px solid #93c5fd;
}

.compliance-badge--onc {
    background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%);
    color: #15803d;
    border: 1px solid #86efac;
}

.compliance-badge--fhir {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    color: #b45309;
    border: 1px solid #fcd34d;
}

.compliance-badge svg,
.compliance-badge img {
    width: 14px;
    height: 14px;
}

/* ==========================================================================
   Feature Icons Grid - New
   ========================================================================== */

.feature-icons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: var(--space-md);
    margin: var(--space-lg) 0;
}

.feature-icon-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: var(--space-md);
    background: white;
    border: 1px solid var(--ehr-border);
    border-radius: var(--radius-lg);
    transition: all var(--transition-fast);
}

.feature-icon-item:hover {
    border-color: var(--ehr-primary);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.1);
}

.feature-icon-item__icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-sm);
    font-size: 24px;
}

.feature-icon-item__icon--yes {
    background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%);
    color: #16a34a;
}

.feature-icon-item__icon--no {
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    color: #94a3b8;
}

.feature-icon-item__label {
    font-size: 13px;
    font-weight: 600;
    color: var(--ehr-dark);
}

.feature-icon-item__status {
    font-size: 13px;
    color: var(--ehr-gray);
    margin-top: 2px;
}

/* ==========================================================================
   Compact Header Bar
   ========================================================================== */

.compact-header {
    background: var(--ehr-surface);
    border-bottom: 1px solid var(--ehr-border);
    padding: var(--space-md) 0;
}

.compact-header__inner {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.compact-header__main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-md);
}

.compact-header__title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--ehr-dark);
    margin: 0;
}

.compact-header__count {
    font-size: 14px;
    color: var(--ehr-gray);
    white-space: nowrap;
}

.compact-header .breadcrumbs {
    margin-bottom: 0;
}

/* EHR Profile Compact Header */
.compact-header--ehr {
    padding: var(--space-sm) 0 var(--space-md);
}

.compact-header__ehr {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-lg);
}

.compact-header__ehr-left {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    min-width: 0;
}

.compact-header__logo {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    background: color-mix(in srgb, var(--ehr-primary) 10%, transparent);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.compact-header__logo-img {
    max-width: 32px;
    max-height: 32px;
    object-fit: contain;
}

.compact-header__logo-letter {
    font-size: 20px;
    font-weight: 700;
    color: var(--ehr-primary);
}

.compact-header__info {
    min-width: 0;
}

.compact-header--ehr .compact-header__title {
    font-size: 1.25rem;
    margin-bottom: 2px;
}

.compact-header__meta {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    flex-wrap: wrap;
}

.compact-header__rating {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 14px;
}

.compact-header__rating-score {
    font-weight: 700;
    color: var(--ehr-dark);
}

.compact-header__stars {
    display: inline-flex;
    gap: 1px;
}

.compact-header__star {
    width: 12px;
    height: 12px;
    background: var(--ehr-border);
    clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
}

.compact-header__star--filled {
    background: #f59e0b;
}

.compact-header__reviews {
    color: var(--ehr-gray);
    font-size: 13px;
}

.compact-header__badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    background: color-mix(in srgb, var(--ehr-primary) 10%, transparent);
    color: var(--ehr-primary);
    font-size: 11px;
    font-weight: 600;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.compact-header__price {
    font-size: 14px;
    color: var(--ehr-gray);
}

.compact-header__ehr-right {
    flex-shrink: 0;
}

.compact-header__cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: var(--ehr-primary);
    color: white;
    font-size: 14px;
    font-weight: 600;
    border-radius: var(--radius-md);
    text-decoration: none;
    transition: background 0.2s;
}

.compact-header__cta:hover {
    background: var(--ehr-primary-dark);
}

@media (max-width: 640px) {
    .compact-header__ehr {
        flex-direction: column;
        align-items: flex-start;
    }

    .compact-header__ehr-right {
        width: 100%;
    }

    .compact-header__cta {
        width: 100%;
        justify-content: center;
    }
}

/* ==========================================================================
   Archive / Filter Styles
   ========================================================================== */

.archive-header {
    text-align: center;
}

.archive-header__title {
    font-size: 2rem;
    margin-bottom: var(--space-xs);
}

.archive-header__description {
    font-size: 18px;
    color: var(--ehr-gray);
}

/* Filters */
.filters-section {
    background-color: var(--ehr-surface);
    border-bottom: 1px solid var(--ehr-border);
    padding: var(--space-lg) 0;
}

.filters-form {
    max-width: var(--container-xl);
    margin: 0 auto;
}

.filters-row {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-md);
    align-items: flex-end;
}

.filter-group {
    flex: 1;
    min-width: 150px;
}

.filter-group label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--ehr-gray);
    margin-bottom: var(--space-xs);
}

.filter-group select {
    width: 100%;
}

.filter-actions {
    display: flex;
    gap: var(--space-sm);
}

.results-header {
    margin-bottom: var(--space-lg);
}

.results-count {
    font-size: 14px;
    color: var(--ehr-gray);
    margin: 0;
}

/* ==========================================================================
   Alternative Styles
   ========================================================================== */

.alternative-header {
    max-width: 700px;
    margin: 0 auto;
}

.alternative-header__title {
    font-size: 2.5rem;
    margin-bottom: var(--space-md);
}

.alternative-header__description {
    font-size: 18px;
    color: var(--ehr-gray);
    margin-bottom: var(--space-md);
}

.alternative-header__meta {
    display: flex;
    justify-content: center;
    gap: var(--space-lg);
    font-size: 14px;
    color: var(--ehr-gray);
}

/* Main System Card */
.main-system-card {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border: 1px solid var(--ehr-border);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    text-align: center;
}

.main-system-card__label {
    font-size: 14px;
    color: var(--ehr-gray);
    margin-bottom: var(--space-xs);
}

.main-system-card__title {
    font-size: 1.75rem;
    margin-bottom: var(--space-sm);
}

.main-system-card__title a {
    color: var(--ehr-dark);
    text-decoration: none;
}

.main-system-card__title a:hover {
    color: var(--ehr-primary);
}

.main-system-card__rating {
    font-size: 14px;
    color: var(--ehr-gray);
}

/* Enhanced Main System Card */
.main-system-card--enhanced {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
    text-align: left;
    padding: var(--space-lg);
}

.main-system-card--enhanced .main-system-card__logo {
    width: 80px;
    height: 80px;
    min-width: 80px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.main-system-card--enhanced .main-system-card__logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 8px;
}

.main-system-card--enhanced .main-system-card__content {
    flex: 1;
}

.main-system-card--enhanced .main-system-card__label {
    display: block;
    margin-bottom: var(--space-2xs);
}

.main-system-card--enhanced .main-system-card__title {
    margin-bottom: var(--space-xs);
}

.main-system-card--enhanced .main-system-card__categories {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2xs);
}

.main-system-card--enhanced .main-system-card__meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: var(--space-xs);
    min-width: 140px;
}

.main-system-card--enhanced .main-system-card__rating {
    text-align: center;
}

.main-system-card--enhanced .main-system-card__rating-score {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--ehr-dark);
    line-height: 1;
}

.main-system-card--enhanced .main-system-card__rating-stars {
    display: flex;
    gap: 2px;
    font-size: 12px;
}

.main-system-card--enhanced .main-system-card__star {
    color: var(--ehr-border);
}

.main-system-card--enhanced .main-system-card__star--filled {
    color: #f59e0b;
}

.main-system-card--enhanced .main-system-card__price {
    text-align: center;
}

.main-system-card--enhanced .main-system-card__price-label {
    display: block;
    font-size: 12px;
    color: var(--ehr-gray);
}

.main-system-card--enhanced .main-system-card__price-value {
    font-weight: 600;
    color: var(--ehr-dark);
}

@media (max-width: 768px) {
    .main-system-card--enhanced {
        flex-direction: column;
        text-align: center;
    }

    .main-system-card--enhanced .main-system-card__content {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .main-system-card--enhanced .main-system-card__categories {
        justify-content: center;
    }

    .main-system-card--enhanced .main-system-card__meta {
        align-items: center;
        width: 100%;
        padding-top: var(--space-md);
        border-top: 1px solid var(--ehr-border);
    }
}

/* Switching Considerations */
.switching-considerations {
    margin-top: var(--space-2xl);
    padding: var(--space-xl);
    background: var(--ehr-light);
    border-radius: 16px;
    border: 1px solid var(--ehr-border);
}

.switching-considerations__title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--ehr-dark);
    margin: 0 0 var(--space-xl) 0;
    line-height: 1.3;
}

.switching-considerations__item {
    margin-bottom: var(--space-lg);
    padding-bottom: var(--space-lg);
    border-bottom: 1px solid var(--ehr-border);
}

.switching-considerations__item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.switching-considerations__item h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--ehr-dark);
    margin: 0 0 var(--space-sm) 0;
}

.switching-considerations__item p {
    font-size: 15px;
    line-height: 1.7;
    color: var(--ehr-gray-dark);
    margin: 0;
}

@media (max-width: 600px) {
    .switching-considerations {
        padding: var(--space-lg);
    }

    .switching-considerations__title {
        font-size: 1.25rem;
    }

    .switching-considerations__item h3 {
        font-size: 1rem;
    }
}

/* Alternative Overview */
.alternative-overview {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
    position: relative;
    padding-bottom: var(--space-xl);
}

.alternative-overview__title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--ehr-dark);
    margin: 0 0 var(--space-md) 0;
}

.alternative-overview__text {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--ehr-gray-dark);
    margin: 0;
}

.alternative-overview__pills {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translate(-50%, 50%);
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-sm);
    width: 100%;
    padding: 0 var(--space-md);
}

.alternative-overview__pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: white;
    border: 1px solid var(--ehr-border);
    border-radius: 100px;
    font-size: 14px;
    font-weight: 500;
    color: var(--ehr-gray-dark);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.alternative-overview__pill svg {
    color: var(--ehr-primary);
    flex-shrink: 0;
}

@media (max-width: 600px) {
    .alternative-overview__pills {
        position: relative;
        bottom: auto;
        left: auto;
        transform: none;
        margin-top: var(--space-lg);
    }

    .alternative-overview {
        padding-bottom: 0;
    }
}

/* Alternatives List */
.alternatives-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.alternative-item {
    display: grid;
    grid-template-columns: 72px 1fr 180px;
    gap: var(--space-lg);
    align-items: start;
    background-color: var(--ehr-surface);
    border: 1px solid var(--ehr-border);
    border-radius: var(--radius-xl);
    padding: var(--space-lg);
    transition: all var(--transition-normal);
    position: relative;
}

.alternative-item--top-pick {
    border-color: var(--ehr-primary);
    box-shadow: 0 0 0 1px var(--ehr-primary);
}


.alternative-item__rank {
    position: absolute;
    top: -14px;
    left: var(--space-lg);
    padding: 8px 16px;
    background: var(--ehr-primary);
    color: white;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 100px;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.25);
    white-space: nowrap;
}

.alternative-item__logo {
    margin-top: 4px;
}

.alternative-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--ehr-primary);
}

@media (max-width: 768px) {
    .alternative-item {
        grid-template-columns: 48px 1fr;
        gap: var(--space-md);
    }

    .alternative-item__sidebar {
        grid-column: span 2;
    }

    .alternative-item__rank {
        padding: 6px 12px;
        font-size: 11px;
        top: -12px;
        left: var(--space-md);
    }
}

.alternative-item__logo {
    width: 72px;
    height: 72px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.alternative-item__logo img {
    max-width: 56px;
    max-height: 56px;
    object-fit: contain;
}

.alternative-item__content {
    min-width: 0;
}

.alternative-item__header {
    margin-bottom: var(--space-xs);
}

.alternative-item__title {
    font-size: 20px;
    font-weight: 700;
    margin: 0;
}

.alternative-item__title a {
    color: var(--ehr-dark);
    text-decoration: none;
}

.alternative-item__title a:hover {
    color: var(--ehr-primary);
}

.alternative-item__best-for {
    display: inline-block;
    font-size: 13px;
    color: var(--ehr-primary);
    font-weight: 500;
    margin-top: 4px;
}

.alternative-item__description {
    font-size: 14px;
    color: var(--ehr-gray);
    line-height: 1.6;
    margin: 0 0 var(--space-sm) 0;
}

/* Quick Stats */
.alternative-item__stats {
    display: flex;
    gap: var(--space-md);
    margin-bottom: var(--space-md);
    padding-bottom: var(--space-md);
    border-bottom: 1px solid var(--ehr-border);
}

.alternative-item__stat {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.alternative-item__stat-label {
    font-size: 11px;
    font-weight: 500;
    color: var(--ehr-gray);
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.alternative-item__stat-value {
    font-size: 14px;
    font-weight: 700;
    color: var(--ehr-dark);
}

.alternative-item__stat-value--yes {
    color: var(--ehr-success);
}

/* Pros/Highlights */
.alternative-item__pros {
    margin-bottom: var(--space-md);
}

.alternative-item__pros ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.alternative-item__pros li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 13px;
    color: var(--ehr-gray-dark);
    line-height: 1.4;
}

.alternative-item__pros li svg {
    flex-shrink: 0;
    color: var(--ehr-success);
    margin-top: 2px;
}

@media (max-width: 600px) {
    .alternative-item__stats {
        flex-wrap: wrap;
    }

    .alternative-item__pros ul {
        grid-template-columns: 1fr;
    }
}

.alternative-item__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-sm);
}

.alternative-item__categories {
    display: flex;
    gap: var(--space-xs);
}

.alternative-item__categories .category-tag {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 4px 8px;
    background-color: var(--ehr-light);
    border-radius: var(--radius-sm);
    color: var(--ehr-gray);
}

.alternative-item__deployment {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    color: var(--ehr-gray);
}

.alternative-item__deployment svg {
    color: var(--ehr-primary);
}

.alternative-item__features {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-xs);
    margin-bottom: var(--space-sm);
}

.alternative-item__feature {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    font-weight: 500;
    color: var(--ehr-dark);
    background-color: rgba(16, 185, 129, 0.1);
    padding: 4px 10px;
    border-radius: var(--radius-full);
}

.alternative-item__feature svg {
    color: #10B981;
}

.alternative-item__excerpt {
    font-size: 14px;
    color: var(--ehr-gray);
    margin: 0;
    line-height: 1.5;
}

/* Why Consider This - Alternative Reasons */
.alternative-item__reasons {
    margin-top: var(--space-sm);
    padding-top: var(--space-sm);
    border-top: 1px solid var(--ehr-border);
}

.alternative-item__reasons-label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--ehr-gray);
    margin-bottom: var(--space-xs);
}

.alternative-item__reasons-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-xs) var(--space-md);
}

.alternative-item__reasons-list li {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--ehr-dark);
}

.alternative-item__reason-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    background-color: rgba(16, 185, 129, 0.1);
    border-radius: var(--radius-sm);
    color: #10B981;
    flex-shrink: 0;
}

.alternative-item__reason-icon svg {
    width: 12px;
    height: 12px;
}

@media (max-width: 768px) {
    .alternative-item__reasons-list {
        flex-direction: column;
        gap: var(--space-2xs);
    }
}

.alternative-item__sidebar {
    text-align: right;
}

.alternative-item__score {
    text-align: center;
    margin-bottom: var(--space-md);
}

.alternative-item__score-value {
    display: block;
    font-size: 36px;
    font-weight: 800;
    color: var(--ehr-primary);
    line-height: 1;
}

.alternative-item__score-label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    color: var(--ehr-gray);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 4px;
}

.alternative-item__breakdown {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: var(--space-md);
}

.alternative-item__breakdown-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.alternative-item__breakdown-val {
    font-size: 14px;
    font-weight: 700;
    color: var(--ehr-dark);
    width: 28px;
    flex-shrink: 0;
}

.alternative-item__breakdown-bar {
    flex: 1;
    height: 6px;
    background: var(--ehr-light);
    border-radius: 3px;
    overflow: hidden;
}

.alternative-item__breakdown-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--ehr-primary) 0%, #3b82f6 100%);
    border-radius: 3px;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.8s ease-out;
}

.alternative-item__breakdown.is-visible .alternative-item__breakdown-fill {
    transform: scaleX(1);
}

.alternative-item__breakdown.is-visible .alternative-item__breakdown-row:nth-child(1) .alternative-item__breakdown-fill {
    transition-delay: 0.1s;
}

.alternative-item__breakdown.is-visible .alternative-item__breakdown-row:nth-child(2) .alternative-item__breakdown-fill {
    transition-delay: 0.2s;
}

.alternative-item__breakdown.is-visible .alternative-item__breakdown-row:nth-child(3) .alternative-item__breakdown-fill {
    transition-delay: 0.3s;
}

.alternative-item__breakdown.is-visible .alternative-item__breakdown-row:nth-child(4) .alternative-item__breakdown-fill {
    transition-delay: 0.4s;
}

/* Expandable Description */
.alternative-item__desc-wrap {
    margin-bottom: var(--space-sm);
}

.alternative-item__description {
    font-size: 14px;
    color: var(--ehr-gray-dark);
    line-height: 1.7;
    margin: 0;
}

.alternative-item__description--short {
    display: block;
}

.alternative-item__description--full {
    display: none;
}

.alternative-item__desc-wrap[data-expanded="true"] .alternative-item__description--short {
    display: none;
}

.alternative-item__desc-wrap[data-expanded="true"] .alternative-item__description--full {
    display: block;
}

.alternative-item__read-more {
    background: none;
    border: none;
    padding: 0;
    font-size: 13px;
    font-weight: 600;
    color: var(--ehr-primary);
    cursor: pointer;
    margin-top: 6px;
    display: inline-block;
}

.alternative-item__read-more:hover {
    text-decoration: underline;
}

.alternative-item__breakdown-label {
    font-size: 12px;
    color: var(--ehr-gray);
    width: 70px;
    flex-shrink: 0;
    text-align: right;
}

.alternative-item__price {
    margin-bottom: var(--space-sm);
}

.alternative-item__price .price-label {
    font-size: 12px;
    color: var(--ehr-gray);
}

.alternative-item__price .price-value {
    font-size: 16px;
    font-weight: 700;
    color: var(--ehr-dark);
    display: block;
}

.alternative-item__actions {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.alternative-item__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 600;
    color: white;
    background: var(--ehr-primary);
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.alternative-item__cta:hover {
    background: var(--ehr-primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

.alternative-item__cta svg {
    flex-shrink: 0;
}

.alternative-item__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 600;
    color: var(--ehr-dark);
    background: var(--ehr-light);
    border: 1px solid var(--ehr-border);
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.alternative-item__link:hover {
    background: var(--ehr-dark);
    border-color: var(--ehr-dark);
    color: white;
    gap: 10px;
}

.alternative-item__link svg {
    transition: transform 0.2s ease;
}

.alternative-item__link:hover svg {
    transform: translateX(2px);
}

/* ==========================================================================
   Search Page Styles
   ========================================================================== */

.search-header__title {
    font-size: 1.75rem;
    margin-bottom: var(--space-sm);
}

.search-header__title span {
    color: var(--ehr-primary);
}

.search-header__count {
    color: var(--ehr-gray);
}

.search-form-wrapper {
    max-width: 500px;
}

.search-form__wrapper {
    display: flex;
    gap: var(--space-sm);
}

.search-section__title {
    font-size: 1.25rem;
    margin-bottom: var(--space-lg);
    padding-bottom: var(--space-md);
    border-bottom: 1px solid var(--ehr-border);
}

.suggestion-tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
    justify-content: center;
    margin-top: var(--space-md);
}

.suggestion-tag {
    padding: var(--space-sm) var(--space-md);
    background-color: var(--ehr-light);
    border: 1px solid var(--ehr-border);
    border-radius: var(--radius-md);
    color: var(--ehr-dark);
    font-size: 14px;
    text-decoration: none;
    transition: all var(--transition-fast);
}

.suggestion-tag:hover {
    border-color: var(--ehr-primary);
    color: var(--ehr-primary);
}

/* ==========================================================================
   Post Card Placeholder Image
   ========================================================================== */

.post-card__image--placeholder,
.post-card__image--comparison {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.post-card__image--placeholder span {
    font-size: 48px;
    font-weight: 700;
    color: var(--ehr-primary);
    opacity: 0.5;
}

.post-card__image--comparison {
    flex-direction: column;
    gap: var(--space-md);
}

.comparison-icons {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.comparison-icon {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.comparison-vs {
    font-size: 12px;
    font-weight: 800;
    color: var(--ehr-gray);
    text-transform: uppercase;
    letter-spacing: 2px;
    padding: 0 var(--space-xs);
}

.post-card__systems {
    font-size: 13px;
    color: var(--ehr-primary);
    font-weight: 600;
    margin-bottom: var(--space-sm);
}

.post-card__link {
    font-size: 14px;
    font-weight: 600;
    color: var(--ehr-primary);
}

/* ==========================================================================
   Social Share
   ========================================================================== */

.social-share {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.social-share__label {
    font-size: 14px;
    font-weight: 600;
    color: var(--ehr-gray);
}

.social-share__link {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-lg);
    background-color: var(--ehr-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ehr-dark);
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    transition: all var(--transition-fast);
}

.social-share__link:hover {
    background-color: var(--ehr-primary);
    color: white;
    transform: translateY(-2px);
}

/* ==========================================================================
   No Results
   ========================================================================== */

.no-results {
    padding: var(--space-3xl) 0;
}

.no-results h2 {
    margin-bottom: var(--space-md);
}

.no-results p {
    margin-bottom: var(--space-lg);
}

/* ==========================================================================
   Post Navigation
   ========================================================================== */

.post-navigation {
    padding: var(--space-2xl) 0;
    border-top: 1px solid var(--ehr-border);
    border-bottom: 1px solid var(--ehr-border);
    margin: var(--space-2xl) auto;
    max-width: 800px;
}

.post-navigation .nav-links {
    display: flex;
    justify-content: space-between;
    gap: var(--space-lg);
}

.nav-previous,
.nav-next {
    flex: 1;
}

.nav-next {
    text-align: right;
}

.nav-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--ehr-gray);
    margin-bottom: var(--space-xs);
}

.post-navigation a {
    font-weight: 600;
    color: var(--ehr-dark);
}

.post-navigation a:hover {
    color: var(--ehr-primary);
}

/* ==========================================================================
   Comments
   ========================================================================== */

.comments-area {
    max-width: 800px;
    margin: 0 auto;
    padding: var(--space-2xl) var(--space-lg);
}

.comments-title {
    font-size: 1.5rem;
    margin-bottom: var(--space-lg);
}

.comment-list {
    list-style: none;
    padding: 0;
    margin: 0 0 var(--space-2xl);
}

.comment {
    padding: var(--space-lg);
    background-color: var(--ehr-light);
    border-radius: var(--radius-xl);
    margin-bottom: var(--space-lg);
}

.comment-author {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin-bottom: var(--space-md);
}

.comment-author img {
    border-radius: 50%;
}

.comment-author .fn {
    font-weight: 600;
    color: var(--ehr-dark);
}

.comment-metadata {
    font-size: 13px;
    color: var(--ehr-gray);
}

.comment-content {
    font-size: 15px;
    line-height: 1.7;
}

.comment-reply-link {
    font-size: 13px;
    font-weight: 600;
    color: var(--ehr-primary);
}

.comment-form label {
    display: block;
    font-weight: 600;
    margin-bottom: var(--space-xs);
}

.comment-form input,
.comment-form textarea {
    width: 100%;
    padding: var(--space-md);
    border: 1px solid var(--ehr-border);
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-md);
}

.comment-form input:focus,
.comment-form textarea:focus {
    outline: none;
    border-color: var(--ehr-primary);
}

/* ==========================================================================
   WordPress Specific
   ========================================================================== */

/* Alignments */
.alignleft {
    float: left;
    margin-right: var(--space-lg);
    margin-bottom: var(--space-md);
}

.alignright {
    float: right;
    margin-left: var(--space-lg);
    margin-bottom: var(--space-md);
}

.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.alignwide {
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    max-width: 100vw;
    width: 100vw;
}

.alignfull {
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    max-width: 100vw;
    width: 100vw;
}

/* WordPress Blocks */
.wp-block-image {
    margin-bottom: var(--space-lg);
}

.wp-block-image figcaption {
    font-size: 14px;
    color: var(--ehr-gray);
    text-align: center;
    margin-top: var(--space-sm);
}

.wp-block-quote {
    border-left: 4px solid var(--ehr-primary);
    padding-left: var(--space-lg);
    margin: var(--space-lg) 0;
    font-style: italic;
}

.wp-block-quote cite {
    display: block;
    font-size: 14px;
    color: var(--ehr-gray);
    margin-top: var(--space-sm);
    font-style: normal;
}

/* Galleries */
.wp-block-gallery {
    display: grid;
    gap: var(--space-md);
}

.wp-block-gallery.columns-2 {
    grid-template-columns: repeat(2, 1fr);
}

.wp-block-gallery.columns-3 {
    grid-template-columns: repeat(3, 1fr);
}

.wp-block-gallery.columns-4 {
    grid-template-columns: repeat(4, 1fr);
}

/* Screen Reader Text */
.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    word-wrap: normal !important;
}

/* ==========================================================================
   Interactive States & Animations
   ========================================================================== */

/* Focus States */
.specialty-tag:focus-visible,
.suggestion-tag:focus-visible,
.feature-tag:focus-visible {
    outline: 2px solid var(--ehr-primary);
    outline-offset: 2px;
}

.social-share__link:focus-visible {
    outline: 2px solid var(--ehr-primary);
    outline-offset: 2px;
}

.comparison-card__title a:focus-visible,
.alternative-item__title a:focus-visible,
.main-system-card__title a:focus-visible {
    outline: 2px solid var(--ehr-primary);
    outline-offset: 2px;
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .sidebar-card,
    .comparison-card,
    .alternative-item,
    .quick-fact,
    .feature-icon-item {
        transition: none;
    }

    .sidebar-card:hover,
    .comparison-card:hover,
    .alternative-item:hover {
        transform: none;
    }
}

/* ==========================================================================
   Enhanced EHR Profile - Clean Sections
   ========================================================================== */

.ehr-profile__section {
    padding-bottom: var(--space-xl);
    margin-bottom: var(--space-xl);
    border-bottom: 1px solid var(--ehr-border);
}

.ehr-profile__section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.ehr-profile__section .ehr-profile__section-title,
.ehr-profile__section h2.ehr-profile__section-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--ehr-dark);
    margin: 0 0 var(--space-lg);
}

/* Override for main content section titles */
.ehr-profile__primary .ehr-profile__section-title {
    font-size: 1.25rem !important;
}

.ehr-profile__target {
    margin-top: var(--space-md);
    padding: var(--space-md);
    background: var(--ehr-surface);
    border-radius: 8px;
    font-size: 14px;
    color: var(--ehr-gray);
}

.ehr-profile__target strong {
    color: var(--ehr-dark);
}

/* ==========================================================================
   Enhanced EHR Profile - Pricing Section
   ========================================================================== */

.ehr-profile__pricing {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-lg);
    align-items: flex-start;
}

.ehr-profile__pricing-main {
    display: flex;
    flex-direction: column;
    padding: var(--space-lg);
    background: linear-gradient(135deg, var(--ehr-primary), color-mix(in srgb, var(--ehr-primary) 80%, #000));
    border-radius: 12px;
    color: #fff;
    min-width: 180px;
}

.ehr-profile__pricing-label {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.8;
    margin-bottom: 4px;
}

.ehr-profile__pricing-amount {
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1.2;
}

.ehr-profile__pricing-model {
    font-size: 13px;
    opacity: 0.8;
    margin-top: 4px;
}

.ehr-profile__pricing-details {
    flex: 1;
    min-width: 200px;
}

.ehr-profile__pricing-row {
    display: flex;
    justify-content: space-between;
    padding: var(--space-sm) 0;
    border-bottom: 1px solid var(--ehr-border);
}

.ehr-profile__pricing-row:last-child {
    border-bottom: none;
}

.ehr-profile__pricing-dt {
    font-size: 14px;
    color: var(--ehr-gray);
}

.ehr-profile__pricing-dd {
    font-size: 14px;
    font-weight: 600;
    color: var(--ehr-dark);
}

.ehr-profile__pricing-dd--yes {
    color: var(--ehr-success);
}

/* ==========================================================================
   Enhanced EHR Profile - User Reviews (Simplified)
   ========================================================================== */

.ehr-user-review {
    padding: var(--space-lg);
    background: var(--ehr-surface);
    border-radius: 12px;
    margin-bottom: var(--space-md);
}

.ehr-user-review:last-child {
    margin-bottom: 0;
}

.ehr-user-review__quote {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--ehr-dark);
    margin: 0 0 var(--space-md);
    font-style: italic;
}

.ehr-user-review__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-sm);
    font-size: 13px;
}

.ehr-user-review__author {
    font-weight: 600;
    color: var(--ehr-dark);
}

.ehr-user-review__role {
    color: var(--ehr-gray);
}

.ehr-user-review__role::before {
    content: "·";
    margin-right: var(--space-sm);
}

.ehr-user-review__rating {
    color: var(--ehr-primary);
    font-weight: 600;
}

.ehr-user-review__rating::before {
    content: "·";
    margin-right: var(--space-sm);
    color: var(--ehr-gray);
}

/* ==========================================================================
   Enhanced EHR Profile - Bottom Line
   ========================================================================== */

.ehr-profile__bottom-line {
    margin-top: var(--space-xl);
    padding: var(--space-xl);
    background: var(--ehr-dark);
    border-radius: 16px;
    text-align: center;
}

.ehr-profile__bottom-line-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 var(--space-md);
}

.ehr-profile__bottom-line-text {
    font-size: 1.125rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.85);
    margin: 0 0 var(--space-lg);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.ehr-profile__bottom-line-cta {
    display: inline-block;
    padding: 14px 32px;
    background: #fff;
    color: var(--ehr-dark);
    font-size: 15px;
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.ehr-profile__bottom-line-cta:hover {
    background: var(--ehr-primary);
    color: #fff;
}

/* ==========================================================================
   Enhanced EHR Profile - Rating Breakdown
   ========================================================================== */

.ehr-profile__rating-breakdown {
    padding: var(--space-2xl) 0;
    background: var(--ehr-surface);
    border-bottom: 1px solid var(--ehr-border);
}

.ehr-profile__ratings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--space-lg);
    max-width: 900px;
    margin: 0 auto;
}

.ehr-profile__rating-item {
    background: var(--ehr-light);
    border: 1px solid var(--ehr-border);
    border-radius: 12px;
    padding: var(--space-lg);
    transition: border-color 0.15s ease;
}

.ehr-profile__rating-item:hover {
    border-color: var(--ehr-primary);
}

.ehr-profile__rating-item-header {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin-bottom: var(--space-md);
}

.ehr-profile__rating-item-icon {
    width: 36px;
    height: 36px;
    background: color-mix(in srgb, var(--ehr-primary) 15%, transparent);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    color: var(--ehr-primary);
}

.ehr-profile__rating-item-label {
    flex: 1;
    font-size: 15px;
    font-weight: 600;
    color: var(--ehr-dark);
}

.ehr-profile__rating-item-score {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--ehr-primary);
}

.ehr-profile__rating-item-bar {
    height: 8px;
    background: var(--ehr-border);
    border-radius: 4px;
    overflow: hidden;
}

.ehr-profile__rating-item-fill {
    height: 100%;
    background: var(--ehr-primary);
    border-radius: 4px;
    transition: width 0.5s ease;
}

/* ==========================================================================
   Enhanced EHR Profile - Compare Table
   ========================================================================== */

.ehr-profile__block--compare {
    overflow: visible;
}

.ehr-compare-table {
    overflow-x: auto;
    margin: 0 -var(--space-sm);
    padding: 0 var(--space-sm);
}

.ehr-compare-table__header {
    display: grid;
    grid-template-columns: 120px repeat(4, 1fr);
    gap: 2px;
    background: var(--ehr-light);
    border-radius: 8px 8px 0 0;
    padding: var(--space-md);
    border: 1px solid var(--ehr-border);
    border-bottom: none;
}

@media (max-width: 700px) {
    .ehr-compare-table__header {
        grid-template-columns: 100px repeat(4, minmax(80px, 1fr));
    }
}

.ehr-compare-table__row {
    display: grid;
    grid-template-columns: 120px repeat(4, 1fr);
    gap: 2px;
    border-left: 1px solid var(--ehr-border);
    border-right: 1px solid var(--ehr-border);
}

@media (max-width: 700px) {
    .ehr-compare-table__row {
        grid-template-columns: 100px repeat(4, minmax(80px, 1fr));
    }
}

.ehr-compare-table__row:last-child {
    border-bottom: 1px solid var(--ehr-border);
}

.ehr-compare-table__row:nth-child(odd) {
    background: var(--ehr-surface);
}

.ehr-compare-table__row:nth-child(even) {
    background: var(--ehr-light);
}

.ehr-compare-table__cell {
    padding: var(--space-sm) var(--space-md);
    font-size: 13px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 50px;
}

.ehr-compare-table__cell--feature {
    font-weight: 600;
    color: var(--ehr-gray);
    background: var(--ehr-light);
    align-items: flex-start;
    text-align: left;
}

.ehr-compare-table__cell--current {
    background: color-mix(in srgb, var(--ehr-primary) 8%, transparent);
}

.ehr-compare-table__header .ehr-compare-table__cell--current {
    background: color-mix(in srgb, var(--ehr-primary) 15%, transparent);
    border-radius: 6px;
}

.ehr-compare-table__name {
    font-size: 12px;
    font-weight: 600;
    color: var(--ehr-dark);
    text-decoration: none;
    display: block;
    line-height: 1.3;
}

.ehr-compare-table__name:hover {
    color: var(--ehr-primary);
}

.ehr-compare-table__rating {
    font-size: 14px;
    font-weight: 700;
    color: var(--ehr-primary);
    margin-top: 4px;
}

.ehr-compare-table__check {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
}

.ehr-compare-table__check--yes {
    background: #DCFCE7;
    color: #16A34A;
}

.ehr-compare-table__check--no {
    background: var(--ehr-light);
    color: var(--ehr-gray);
}

.ehr-compare-table__footer {
    padding: var(--space-md);
    background: var(--ehr-light);
    border: 1px solid var(--ehr-border);
    border-top: none;
    border-radius: 0 0 8px 8px;
    text-align: center;
}

.ehr-compare-table__link {
    font-size: 14px;
    font-weight: 600;
    color: var(--ehr-primary);
    text-decoration: none;
}

.ehr-compare-table__link:hover {
    text-decoration: underline;
}

/* ==========================================================================
   Enhanced EHR Profile - User Review Stars
   ========================================================================== */

.ehr-user-review__stars {
    display: flex;
    gap: 3px;
}

.ehr-user-review__star {
    width: 14px;
    height: 14px;
    background: var(--ehr-border);
    border-radius: 3px;
    display: inline-block;
}

.ehr-user-review__star--filled {
    background: var(--ehr-primary);
}

/* Enhanced User Review Cards */
.ehr-user-reviews {
    display: grid;
    gap: var(--space-md);
}

.ehr-user-review {
    background: var(--ehr-light);
    border: 1px solid var(--ehr-border);
    border-radius: 12px;
    padding: var(--space-lg);
    transition: border-color 0.15s ease;
}

.ehr-user-review:hover {
    border-color: var(--ehr-primary);
}

.ehr-user-review__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-md);
}

.ehr-user-review__source {
    font-size: 13px;
    font-weight: 600;
    color: var(--ehr-gray);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 4px 10px;
    background: var(--ehr-surface);
    border: 1px solid var(--ehr-border);
    border-radius: 4px;
}

.ehr-user-review__quote {
    font-size: 15px;
    line-height: 1.7;
    color: var(--ehr-dark);
    font-style: italic;
    margin: 0 0 var(--space-md);
    padding: 0;
    border: none;
    background: none;
}

.ehr-user-review__quote::before {
    content: none;
}

.ehr-user-review__author {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding-top: var(--space-md);
    border-top: 1px solid var(--ehr-border);
}

.ehr-user-review__author-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--ehr-dark);
}

.ehr-user-review__author-role {
    font-size: 13px;
    color: var(--ehr-gray);
}

.ehr-user-review__author-role::before {
    content: "·";
    margin-right: var(--space-sm);
}

/* ==========================================================================
   Compare Bar - Floating comparison tray
   ========================================================================== */

.compare-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: white;
    border-top: 1px solid var(--ehr-border);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.compare-bar.is-visible {
    transform: translateY(0);
}

.compare-bar__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--space-md) var(--space-lg);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-lg);
}

.compare-bar__items {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    flex: 1;
    min-width: 0;
}

.compare-bar__item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    background: var(--ehr-surface);
    border: 1px solid var(--ehr-border);
    border-radius: 8px;
    min-width: 0;
    max-width: 200px;
}

.compare-bar__item-logo {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
}

.compare-bar__item-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.compare-bar__item-logo span {
    font-size: 14px;
    font-weight: 700;
    color: var(--ehr-primary);
}

.compare-bar__item-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--ehr-dark);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
    min-width: 0;
}

.compare-bar__item-remove {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ehr-gray);
    flex-shrink: 0;
    transition: all 0.15s ease;
}

.compare-bar__item-remove:hover {
    background: #fee2e2;
    color: #dc2626;
}

.compare-bar__item-remove svg {
    width: 14px;
    height: 14px;
}

.compare-bar__empty-slot {
    width: 140px;
    height: 48px;
    border: 2px dashed var(--ehr-border);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ehr-gray);
    font-size: 13px;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
}

.compare-bar__empty-slot:hover {
    border-color: var(--ehr-primary);
    color: var(--ehr-primary);
    background: rgba(37, 99, 235, 0.05);
}

.compare-bar__actions {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    flex-shrink: 0;
}

.compare-bar__count {
    font-size: 14px;
    color: var(--ehr-gray);
    font-weight: 500;
}

.compare-bar__clear {
    background: none;
    border: none;
    font-size: 14px;
    color: var(--ehr-gray);
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 6px;
    transition: all 0.15s ease;
}

.compare-bar__clear:hover {
    background: var(--ehr-surface);
    color: var(--ehr-dark);
}

.compare-bar__btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 600;
    color: white;
    background: linear-gradient(135deg, var(--ehr-primary) 0%, var(--ehr-primary-dark) 100%);
    border-radius: 50px;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
    transition: all 0.2s ease;
}

.compare-bar__btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
}

.compare-bar__btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3);
}

.compare-bar__btn:disabled,
.compare-bar__btn.is-disabled {
    opacity: 0.5;
    pointer-events: none;
}

.compare-bar__btn svg {
    transition: transform 0.2s ease;
}

.compare-bar__btn:hover svg {
    transform: translateX(3px);
}

@media (max-width: 768px) {
    .compare-bar__inner {
        flex-direction: column;
        gap: var(--space-md);
        padding: var(--space-md);
    }

    .compare-bar__items {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
    }

    .compare-bar__item {
        max-width: none;
        flex: 1;
        min-width: 120px;
    }

    .compare-bar__empty-slot {
        flex: 1;
        min-width: 120px;
        width: auto;
    }

    .compare-bar__actions {
        width: 100%;
        justify-content: space-between;
    }

    .compare-bar__btn {
        flex: 1;
        justify-content: center;
    }
}

/* Body padding when compare bar is visible */
body.compare-bar-active {
    padding-bottom: 80px;
}

@media (max-width: 768px) {
    body.compare-bar-active {
        padding-bottom: 160px;
    }
}

/* ==========================================================================
   Compare Systems Page - Dynamic comparison
   ========================================================================== */

.compare-systems-page {
    padding-bottom: var(--space-2xl);
}

.compare-systems__header {
    padding: var(--space-xl) 0;
    background: var(--ehr-surface);
    border-bottom: 1px solid var(--ehr-border);
    text-align: center;
}

.compare-systems__title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--ehr-dark);
    margin: 0 0 var(--space-sm);
}

.compare-systems__subtitle {
    font-size: 1.125rem;
    color: var(--ehr-gray);
    margin: 0;
}

.compare-systems__cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-lg);
}

.compare-systems__card {
    background: white;
    border: 1px solid var(--ehr-border);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.compare-systems__card-header {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.compare-systems__card-logo {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
}

.compare-systems__card-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.compare-systems__card-logo span {
    font-size: 24px;
    font-weight: 700;
    color: var(--ehr-primary);
}

.compare-systems__card-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--ehr-dark);
    margin: 0;
}

.compare-systems__card-name a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.compare-systems__card-name a:hover {
    color: var(--ehr-primary);
}

.compare-systems__card-rating {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 4px;
}

.compare-systems__card-star {
    color: #f59e0b;
    flex-shrink: 0;
}

.compare-systems__card-score {
    font-size: 14px;
    font-weight: 700;
    color: var(--ehr-primary);
}

.compare-systems__card-reviews {
    font-size: 13px;
    color: var(--ehr-gray);
}

.compare-systems__card-best-for {
    font-size: 14px;
    color: var(--ehr-dark);
    line-height: 1.5;
    margin: 0;
    padding: var(--space-sm) var(--space-md);
    background: var(--ehr-surface);
    border-radius: 8px;
}

.compare-systems__card-price {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.compare-systems__card-price-label {
    font-size: 12px;
    color: var(--ehr-gray);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.compare-systems__card-price-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--ehr-dark);
}

.compare-systems__card-actions {
    display: flex;
    gap: var(--space-sm);
    margin-top: auto;
    padding-top: var(--space-md);
    border-top: 1px solid var(--ehr-border);
}

.compare-systems__card-actions .btn {
    flex: 1;
    justify-content: center;
    text-align: center;
}

.compare-systems__cta {
    text-align: center;
    padding: var(--space-xl);
    background: white;
    border: 1px solid var(--ehr-border);
    border-radius: var(--radius-lg);
}

.compare-systems__cta h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--ehr-dark);
    margin: 0 0 var(--space-sm);
}

.compare-systems__cta p {
    font-size: 1rem;
    color: var(--ehr-gray);
    margin: 0 0 var(--space-lg);
}

.compare-systems__cta-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: var(--space-md);
}

.compare-systems__empty {
    text-align: center;
    padding: var(--space-3xl) var(--space-lg);
}

.compare-systems__empty-icon {
    color: var(--ehr-primary);
    margin-bottom: var(--space-lg);
    opacity: 0.5;
}

.compare-systems__empty-title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--ehr-dark);
    margin: 0 0 var(--space-md);
}

.compare-systems__empty-text {
    font-size: 1.125rem;
    color: var(--ehr-gray);
    max-width: 500px;
    margin: 0 auto var(--space-xl);
    line-height: 1.6;
}

/* ==========================================================================
   Contact Page
   ========================================================================== */

.contact-page__grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: var(--space-2xl);
    align-items: start;
}

@media (max-width: 900px) {
    .contact-page__grid {
        grid-template-columns: 1fr;
    }
}

.contact-form-card {
    background: white;
    border: 1px solid var(--ehr-border);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
}

.contact-form-card__title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--ehr-dark);
    margin: 0 0 var(--space-sm);
}

.contact-form-card__subtitle {
    font-size: 15px;
    color: var(--ehr-gray);
    margin: 0 0 var(--space-lg);
}

.contact-form__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
}

@media (max-width: 600px) {
    .contact-form__row {
        grid-template-columns: 1fr;
    }
}

.contact-form__field {
    margin-bottom: var(--space-md);
}

.contact-form__field label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--ehr-dark);
    margin-bottom: 8px;
}

.contact-form__field label .required {
    color: #dc2626;
}

.contact-form__field input,
.contact-form__field select,
.contact-form__field textarea {
    width: 100%;
    padding: 12px 16px;
    font-size: 15px;
    border: 1px solid var(--ehr-border);
    border-radius: 8px;
    background: var(--ehr-surface);
    color: var(--ehr-dark);
    transition: all 0.2s ease;
}

.contact-form__field input:focus,
.contact-form__field select:focus,
.contact-form__field textarea:focus {
    outline: none;
    border-color: var(--ehr-primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
    background: white;
}

.contact-form__field input::placeholder,
.contact-form__field textarea::placeholder {
    color: var(--ehr-gray);
}

.contact-form__field textarea {
    resize: vertical;
    min-height: 120px;
}

.contact-form__submit {
    margin-top: var(--space-lg);
}

.contact-form__submit .btn {
    width: 100%;
    justify-content: center;
    gap: 10px;
}

.contact-page__info {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.contact-info-card {
    background: white;
    border: 1px solid var(--ehr-border);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
}

.contact-info-card__icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ehr-primary);
    margin-bottom: var(--space-md);
}

.contact-info-card__title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--ehr-dark);
    margin: 0 0 var(--space-sm);
}

.contact-info-card__text {
    font-size: 14px;
    color: var(--ehr-gray);
    margin: 0;
    line-height: 1.5;
}

.contact-info-card__link {
    display: inline-block;
    margin-top: var(--space-sm);
    font-size: 14px;
    font-weight: 600;
    color: var(--ehr-primary);
    text-decoration: none;
}

.contact-info-card__link:hover {
    text-decoration: underline;
}

/* ==========================================================================
   Legal Pages (Privacy Policy, Terms)
   ========================================================================== */

.legal-content {
    background: white;
    border: 1px solid var(--ehr-border);
    border-radius: var(--radius-lg);
    padding: var(--space-2xl);
}

@media (max-width: 600px) {
    .legal-content {
        padding: var(--space-lg);
    }
}

.legal-content__intro {
    font-size: 1.0625rem;
    line-height: 1.7;
    color: var(--ehr-dark);
    padding-bottom: var(--space-xl);
    border-bottom: 1px solid var(--ehr-border);
    margin-bottom: var(--space-xl);
}

.legal-content__intro p {
    margin: 0 0 var(--space-md);
}

.legal-content__intro p:last-child {
    margin-bottom: 0;
}

.legal-content__section {
    margin-bottom: var(--space-xl);
    padding-bottom: var(--space-xl);
    border-bottom: 1px solid var(--ehr-light);
}

.legal-content__section:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.legal-content__section h2 {
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--ehr-dark);
    margin: 0 0 var(--space-md);
}

.legal-content__section h3 {
    font-size: 1.0625rem;
    font-weight: 600;
    color: var(--ehr-dark);
    margin: var(--space-lg) 0 var(--space-sm);
}

.legal-content__section p {
    font-size: 15px;
    line-height: 1.7;
    color: var(--ehr-dark);
    margin: 0 0 var(--space-md);
}

.legal-content__section p:last-child {
    margin-bottom: 0;
}

.legal-content__section ul {
    margin: 0 0 var(--space-md);
    padding-left: var(--space-lg);
}

.legal-content__section ul li {
    font-size: 15px;
    line-height: 1.7;
    color: var(--ehr-dark);
    margin-bottom: var(--space-sm);
}

.legal-content__section ul li:last-child {
    margin-bottom: 0;
}

.legal-content__section a {
    color: var(--ehr-primary);
    text-decoration: none;
}

.legal-content__section a:hover {
    text-decoration: underline;
}

/* ==========================================================================
   EHR Finder Quiz Page
   ========================================================================== */

/* Quiz Section */
.quiz-section {
    padding-top: var(--space-md);
    padding-bottom: var(--space-2xl);
}

/* Quiz Inline Header */
.quiz__header {
    text-align: center;
    margin-bottom: var(--space-xl);
}

.quiz__title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--ehr-dark);
    margin: 0 0 var(--space-xs);
    letter-spacing: -0.5px;
}

.quiz__subtitle {
    font-size: 1rem;
    color: var(--ehr-gray);
    margin: 0;
}

/* Quiz Container */
.quiz {
    background: white;
    border: 1px solid var(--ehr-border);
    border-radius: var(--radius-lg);
    padding: var(--space-2xl);
    max-width: 960px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .quiz {
        padding: var(--space-xl);
    }
}

@media (max-width: 600px) {
    .quiz {
        padding: var(--space-lg);
    }
}

/* Progress Bar */
.quiz__progress {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin-bottom: var(--space-xl);
}

.quiz__progress-bar {
    flex: 1;
    height: 8px;
    background: var(--ehr-border);
    border-radius: 4px;
    overflow: hidden;
}

.quiz__progress-fill {
    height: 100%;
    background: var(--ehr-primary);
    border-radius: 4px;
    transition: width 0.3s ease;
}

.quiz__progress-text {
    font-size: 0.875rem;
    color: var(--ehr-gray);
    font-weight: 500;
    white-space: nowrap;
}

/* Quiz Steps */
.quiz__step {
    display: none;
}

.quiz__step--active {
    display: block;
    animation: quizFadeIn 0.3s ease;
}

@keyframes quizFadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.quiz__question {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--ehr-dark);
    margin: 0 0 var(--space-xs);
}

.quiz__question-help {
    font-size: 0.9375rem;
    color: var(--ehr-gray);
    margin: 0 0 var(--space-lg);
}

/* Quiz Options */
.quiz__options {
    display: grid;
    gap: var(--space-md);
}

.quiz__option {
    display: block;
    cursor: pointer;
}

.quiz__option input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.quiz__option-card {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md) var(--space-lg);
    background: var(--ehr-surface);
    border: 2px solid var(--ehr-border);
    border-radius: var(--radius-md);
    transition: all 0.2s ease;
}

.quiz__option:hover .quiz__option-card {
    border-color: var(--ehr-primary);
    background: white;
}

.quiz__option input:checked + .quiz__option-card,
.quiz__option--selected .quiz__option-card {
    border-color: var(--ehr-primary);
    background: color-mix(in srgb, var(--ehr-primary) 5%, white);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--ehr-primary) 15%, transparent);
}

.quiz__option-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--ehr-primary);
}

.quiz__option input:checked + .quiz__option-card .quiz__option-icon,
.quiz__option--selected .quiz__option-icon {
    background: var(--ehr-primary);
    color: white;
}

.quiz__option-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--ehr-dark);
    display: block;
}

.quiz__option-desc {
    font-size: 0.875rem;
    color: var(--ehr-gray);
    display: block;
}

/* Multi-select options (checkboxes) */
.quiz__options--multi {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.quiz__options--multi .quiz__option-card {
    flex-direction: column;
    text-align: center;
    padding: var(--space-lg);
}

.quiz__options--multi .quiz__option-icon {
    width: 56px;
    height: 56px;
    margin-bottom: var(--space-xs);
}

/* Features grid - compact layout for many options */
.quiz__options--features {
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-sm);
}

.quiz__options--features .quiz__option-card {
    flex-direction: column;
    text-align: center;
    padding: var(--space-md);
    min-height: 110px;
}

.quiz__options--features .quiz__option-icon {
    width: 40px;
    height: 40px;
    margin-bottom: var(--space-xs);
}

.quiz__options--features .quiz__option-icon svg {
    width: 20px;
    height: 20px;
}

.quiz__options--features .quiz__option-title {
    font-size: 0.875rem;
    line-height: 1.2;
}

.quiz__options--features .quiz__option-desc {
    font-size: 0.75rem;
}

@media (max-width: 800px) {
    .quiz__options--features {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 600px) {
    .quiz__options--features {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Quiz Navigation */
.quiz__nav {
    display: flex;
    justify-content: space-between;
    gap: var(--space-md);
    margin-top: var(--space-xl);
    padding-top: var(--space-lg);
    border-top: 1px solid var(--ehr-border);
}

.quiz__nav-prev {
    margin-right: auto;
}

.quiz__nav-next,
.quiz__nav-submit {
    margin-left: auto;
}

/* Quiz Results */
.quiz__results {
    animation: quizFadeIn 0.4s ease;
}

.quiz__results-header {
    text-align: center;
    margin-bottom: var(--space-xl);
}

.quiz__results-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--ehr-dark);
    margin: 0 0 var(--space-xs);
}

.quiz__results-subtitle {
    font-size: 1rem;
    color: var(--ehr-gray);
    margin: 0;
}

.quiz__results-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

/* Result Card */
.quiz__result-card {
    position: relative;
    background: var(--ehr-surface);
    border: 1px solid var(--ehr-border);
    border-radius: var(--radius-md);
    padding: var(--space-lg);
    transition: all 0.2s ease;
}

.quiz__result-card:hover {
    border-color: var(--ehr-primary);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.quiz__result-card:first-child {
    border-color: var(--ehr-primary);
    background: white;
}

.quiz__result-rank {
    position: absolute;
    top: -10px;
    left: var(--space-lg);
    background: var(--ehr-primary);
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 12px;
}

.quiz__result-card:first-child .quiz__result-rank {
    background: var(--ehr-accent);
}

.quiz__result-header {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin-bottom: var(--space-md);
}

.quiz__result-logo {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-sm);
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 1px solid var(--ehr-border);
    overflow: hidden;
}

.quiz__result-logo img {
    max-width: 40px;
    max-height: 40px;
    object-fit: contain;
}

.quiz__result-logo span {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--ehr-primary);
}

.quiz__result-info {
    flex: 1;
    min-width: 0;
}

.quiz__result-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--ehr-dark);
    margin: 0 0 2px;
}

.quiz__result-rating {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
}

.quiz__result-stars {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--ehr-accent);
}

.quiz__result-stars::before {
    content: "\2605";
    margin-right: 2px;
}

.quiz__result-reviews {
    font-size: 0.8125rem;
    color: var(--ehr-gray);
}

.quiz__result-match {
    text-align: right;
    flex-shrink: 0;
}

.quiz__result-match-label {
    display: block;
    font-size: 0.75rem;
    color: var(--ehr-success);
    font-weight: 500;
    margin-bottom: 2px;
}

.quiz__result-match-percent {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--ehr-success);
}

/* Result Features */
.quiz__result-features {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-xs);
    margin-bottom: var(--space-md);
}

.quiz__result-feature {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--ehr-primary);
    background: color-mix(in srgb, var(--ehr-primary) 10%, transparent);
    padding: 4px 10px;
    border-radius: 12px;
}

/* Result Footer */
.quiz__result-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: var(--space-md);
    border-top: 1px solid var(--ehr-border);
}

.quiz__result-price {
    font-size: 0.875rem;
    color: var(--ehr-gray);
}

/* Results Actions */
.quiz__results-actions {
    display: flex;
    justify-content: center;
    gap: var(--space-md);
    margin-top: var(--space-xl);
    padding-top: var(--space-lg);
    border-top: 1px solid var(--ehr-border);
}

/* No Results */
.quiz__no-results {
    text-align: center;
    padding: var(--space-xl);
    color: var(--ehr-gray);
}

/* Responsive */
@media (max-width: 500px) {
    .quiz-page__title {
        font-size: 1.75rem;
    }

    .quiz__question {
        font-size: 1.25rem;
    }

    .quiz__options--multi {
        grid-template-columns: 1fr 1fr;
    }

    .quiz__result-header {
        flex-wrap: wrap;
    }

    .quiz__result-match {
        width: 100%;
        text-align: left;
        margin-top: var(--space-sm);
        padding-top: var(--space-sm);
        border-top: 1px dashed var(--ehr-border);
    }

    .quiz__result-footer {
        flex-direction: column;
        gap: var(--space-sm);
        align-items: stretch;
        text-align: center;
    }

    .quiz__results-actions {
        flex-direction: column;
    }
}

/* ==========================================================================
   About Page
   ========================================================================== */

.about-page {
    max-width: 800px;
    margin: 0 auto;
}

.about-page__content {
    background: white;
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    box-shadow: var(--shadow-sm);
}

.about-section {
    margin-bottom: var(--space-xl);
}

.about-section:last-child {
    margin-bottom: 0;
}

.about-section h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--ehr-dark);
    margin: 0 0 var(--space-md);
    padding-bottom: var(--space-sm);
    border-bottom: 2px solid var(--ehr-primary);
}

.about-section p {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--ehr-gray-dark);
    margin: 0 0 var(--space-md);
}

.about-section p:last-child {
    margin-bottom: 0;
}

.about-section a {
    color: var(--ehr-primary);
    text-decoration: none;
    font-weight: 500;
}

.about-section a:hover {
    text-decoration: underline;
}

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

.about-list li {
    position: relative;
    padding-left: 24px;
    margin-bottom: var(--space-md);
    font-size: 1rem;
    line-height: 1.7;
    color: var(--ehr-gray-dark);
}

.about-list li:last-child {
    margin-bottom: 0;
}

.about-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 8px;
    height: 8px;
    background: var(--ehr-primary);
    border-radius: 50%;
}

.about-list li strong {
    color: var(--ehr-dark);
}

@media (max-width: 768px) {
    .about-page__content {
        padding: var(--space-lg);
    }

    .about-section h2 {
        font-size: 1.25rem;
    }
}

/* ==========================================================================
   Posts Grid - Homepage Popular Comparisons
   ========================================================================== */

.posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl);
}

@media (max-width: 1100px) {
    .posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 700px) {
    .posts-grid {
        grid-template-columns: 1fr;
    }
}

/* Adjust compare cards in posts-grid for better fit */
.posts-grid .compare-card__header {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
}

.posts-grid .compare-card__versus {
    order: 2;
}

.posts-grid .compare-card__header-content {
    order: 1;
    width: 100%;
}

.posts-grid .compare-card__title {
    font-size: 18px;
}

.posts-grid .compare-card__systems {
    grid-template-columns: 1fr !important;
}

.posts-grid .compare-card__system {
    padding: 16px;
}

.posts-grid .compare-card__system-top {
    flex-direction: row;
    align-items: center;
}

.posts-grid .compare-card__icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
}

.posts-grid .compare-card__system-name {
    font-size: 15px;
}

.posts-grid .compare-card__rating-box {
    padding: 12px;
    margin-top: 12px;
}

.posts-grid .compare-card__rating-score {
    font-size: 20px;
}

.posts-grid .compare-card__stats {
    margin-top: 12px;
}

.posts-grid .compare-card__features {
    margin-top: 12px;
}

.posts-grid .compare-card__system-btn {
    margin-top: 12px;
    padding: 10px 14px;
    font-size: 13px;
}
