/* ==========================================================================
   Lab MarocPsy : Le Laboratoire des professionnels
   Header épuré & harmonisé avec les sections Groupes et Formations
   ========================================================================== */

/* Ajustement compact de l'espace sous la barre d'exploration sur les pages du Lab */
.explore-nav {
    margin-bottom: 6px !important;
}

.psy-lab-page {
    padding: 0.25rem 0 3.5rem;
    color: #1e293b;
    background: #f8fafc;
    min-height: 70vh;
}

/* Fil d'Ariane */
.psy-lab-page .sg-breadcrumbs {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.45rem;
    font-size: 0.85rem;
    color: #64748b;
    margin-top: 0.15rem;
    margin-bottom: 0.75rem;
}

.psy-lab-page .sg-breadcrumbs a {
    color: #0369a1;
    text-decoration: none;
    font-weight: 500;
}

.psy-lab-page .sg-breadcrumbs a:hover {
    text-decoration: underline;
}

.psy-lab-page .sg-breadcrumb-sep {
    color: #94a3b8;
    font-size: 0.9rem;
}

.psy-lab-page .sg-breadcrumb-current {
    color: #334155;
    font-weight: 600;
}

/* En-tête simplifié (identique à groupes et formations) */
.sg-index-intro {
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e6edf5;
}

.sg-index-intro-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px 16px;
    margin-bottom: 8px;
}

.sg-index-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #0284c7;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.sg-index-trust {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 16px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #52627c;
}

.sg-index-trust span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.sg-index-intro h1 {
    font-size: clamp(1.65rem, 3.2vw, 2.25rem);
    line-height: 1.25;
    margin: 6px 0 10px;
    color: #0f172a;
    font-weight: 800;
}

.sg-index-intro p {
    max-width: 780px;
    font-size: 1.02rem;
    line-height: 1.6;
    color: #475569;
    margin: 0;
}

/* Recherche simplifiée */
.sg-index-search {
    margin: 0 0 26px;
}

.sg-search-main {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 6px;
    padding: 6px;
    border: 1px solid #cfd9e6;
    border-radius: 14px;
    background: #ffffff;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
}

.sg-search-field {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 14px;
}

.sg-search-field i {
    color: #94a3b8;
    font-size: 0.95rem;
}

.sg-search-field-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.sg-search-field-content label {
    font-size: 0.725rem;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin-bottom: 2px;
}

.sg-search-field-content input {
    border: none;
    outline: none;
    background: transparent;
    font-size: 0.95rem;
    color: #0f172a;
    padding: 0;
}

.sg-submit {
    background: #0284c7;
    color: #ffffff;
    border: none;
    border-radius: 10px;
    padding: 0 1.5rem;
    height: 44px;
    font-size: 0.925rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: background 0.15s ease;
}

.sg-submit:hover {
    background: #0369a1;
}

/* Grille d'articles */
.psy-lab-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.psy-lab-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.psy-lab-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
    border-color: #cbd5e1;
}

.psy-lab-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.8rem;
    color: #64748b;
    margin-bottom: 0.75rem;
}

.psy-lab-card-title {
    font-size: 1.25rem;
    line-height: 1.35;
    font-weight: 700;
    margin: 0 0 0.75rem;
    color: #0f172a;
}

.psy-lab-card-title a {
    color: inherit;
    text-decoration: none;
}

.psy-lab-card-title a:hover {
    color: #0284c7;
}

.psy-lab-card-lead {
    font-size: 0.925rem;
    line-height: 1.55;
    color: #475569;
    margin: 0 0 1.25rem;
    flex: 1;
}

.psy-lab-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding-top: 1rem;
    border-top: 1px solid #f1f5f9;
}

.psy-lab-card-author strong {
    display: block;
    font-size: 0.85rem;
    color: #0f172a;
}

.psy-lab-card-author span {
    display: block;
    font-size: 0.75rem;
    color: #64748b;
}

.psy-lab-card-link {
    color: #0284c7;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.psy-lab-card-link:hover {
    text-decoration: underline;
}

/* Carte d'attente épurée */
.psy-lab-ready-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 3.5rem 2rem;
    text-align: center;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.03);
}

.psy-lab-ready-icon {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: #f0fdf4;
    color: #16a34a;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.25rem;
    border: 1px solid #bbf7d0;
}

.psy-lab-ready-card h2 {
    font-size: 1.4rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 0.5rem;
}

.psy-lab-ready-card p {
    color: #64748b;
    font-size: 0.95rem;
    max-width: 520px;
    margin: 0 auto;
    line-height: 1.55;
}

/* Page article show */
.psy-lab-article-page {
    background: #ffffff;
}

/* Layout 2 colonnes (Article principal + Sidebar) */
.psy-lab-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 36px;
    align-items: start;
    margin-top: 1rem;
}

.psy-lab-main {
    min-width: 0;
}

.psy-lab-article-wrap {
    max-width: 100%;
    margin: 0;
    padding: 0 0 4rem;
}

/* Sidebar */
.psy-lab-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: sticky;
    top: 85px;
}

.psy-lab-sidebar-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 1.35rem 1.45rem;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.03);
}

.psy-lab-sidebar-card h3 {
    font-size: 0.95rem;
    font-weight: 750;
    color: #0f172a;
    margin: 0 0 0.85rem;
    display: flex;
    align-items: center;
    gap: 8px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.psy-lab-sidebar-card h3 i {
    color: #0284c7;
}

/* Sidebar CTA Espace Praticien & Activités (Invitation) */
.psy-lab-sidebar-cta {
    background: linear-gradient(135deg, #0369a1 0%, #075985 100%);
    color: #ffffff;
    border: none;
    box-shadow: 0 4px 16px rgba(3, 105, 161, 0.18);
}

.psy-lab-sidebar-cta h3 {
    color: #ffffff;
}

.psy-lab-sidebar-cta h3 i {
    color: #7dd3fc;
}

.psy-lab-sidebar-cta p {
    font-size: 0.88rem;
    line-height: 1.55;
    color: #e0f2fe;
    margin: 0 0 1rem;
}

.psy-lab-sidebar-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 1rem 0;
}

.psy-lab-action-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 0.88rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.18s ease;
}

.psy-lab-action-btn.is-primary {
    background: #ffffff;
    color: #0369a1;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.psy-lab-action-btn.is-primary:hover {
    background: #f0f9ff;
    color: #0284c7;
    transform: translateY(-1px);
}

.psy-lab-action-btn.is-secondary {
    background: rgba(255, 255, 255, 0.14);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.psy-lab-action-btn.is-secondary:hover {
    background: rgba(255, 255, 255, 0.24);
    border-color: #ffffff;
    color: #ffffff;
}

.psy-lab-sidebar-login {
    margin-top: 1rem;
    padding-top: 0.85rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    text-align: center;
}

.psy-lab-sidebar-login a {
    color: #e0f2fe;
    font-size: 0.825rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: color 0.15s ease;
}

.psy-lab-sidebar-login a:hover {
    text-decoration: underline;
    color: #ffffff;
}

/* Sidebar Références théoriques */
.psy-lab-ref-item {
    display: flex;
    flex-direction: column;
    padding: 8px 0;
    border-bottom: 1px solid #f1f5f9;
}

.psy-lab-ref-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.psy-lab-ref-author {
    font-size: 0.85rem;
    font-weight: 700;
    color: #0f172a;
}

.psy-lab-ref-work {
    font-size: 0.78rem;
    font-style: italic;
    color: #64748b;
    line-height: 1.4;
}

/* Liens transversaux */
.psy-lab-nav-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.psy-lab-nav-links li a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 7px 10px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    color: #334155;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.15s ease;
}

.psy-lab-nav-links li a:hover {
    background: #eff6ff;
    border-color: #bfdbfe;
    color: #0284c7;
}

.psy-lab-nav-links li a i {
    font-size: 0.75rem;
    color: #94a3b8;
}

/* En-tête de l'article */
.psy-lab-article-header {
    margin-bottom: 2.25rem;
    padding-bottom: 1.75rem;
    border-bottom: 1px solid #e6edf5;
}

/* Sélecteur de langue & pills (identique à /travailleur-social) */
.sw-detail-header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 1.25rem;
}

.sw-detail-pills {
    display: flex;
    align-items: center;
    gap: 8px;
}

.sw-type-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 999px;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #0369a1;
    font-size: 0.825rem;
    font-weight: 700;
    text-decoration: none;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    transition: background 0.15s ease;
}

.sw-type-pill:hover {
    background: #dbeafe;
}

.sw-lang-switcher {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px;
    background: #f1f5f9;
    border: 1px solid #dbe3ef;
    border-radius: 999px;
}

.sw-lang-pill {
    padding: 5px 12px;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 700;
    color: #43536b;
    text-decoration: none;
    transition: all 0.15s ease;
}

.sw-lang-pill:hover {
    color: #0284c7;
}

.sw-lang-pill.is-active {
    background: #0284c7;
    color: #ffffff;
    box-shadow: 0 2px 6px rgba(2, 132, 199, 0.28);
}

.psy-lab-article-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
    font-size: 0.875rem;
    color: #64748b;
    margin-bottom: 1.25rem;
}

.psy-lab-article-meta span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.psy-lab-article-title {
    font-size: clamp(2rem, 3.8vw, 2.65rem);
    line-height: 1.26;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.018em;
    margin: 0 0 1.5rem;
}

.psy-lab-article-lead {
    font-size: 1.2rem;
    line-height: 1.85;
    color: #1e293b;
    background: #f8fafc;
    border-left: 4px solid #0284c7;
    padding: 1.35rem 1.6rem;
    border-radius: 0 12px 12px 0;
    margin: 0 0 2rem;
}

.psy-lab-author-strip {
    display: flex;
    align-items: center;
    gap: 12px;
}

.psy-lab-author-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #e0f2fe;
    color: #0284c7;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

/* Sommaire minimaliste dans l'écran de lecture */
.psy-lab-toc-inline {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 1.25rem 1.5rem;
    margin: 1.75rem 0 3rem;
}

.psy-lab-toc-inline-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
    padding-bottom: 0.65rem;
    border-bottom: 1px solid #eef2f6;
}

.psy-lab-toc-inline-title {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.925rem;
    font-weight: 750;
    color: #0f172a;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.psy-lab-toc-inline-title i {
    color: #0284c7;
}

.psy-lab-toc-inline-count {
    font-size: 0.75rem;
    font-weight: 700;
    color: #0369a1;
    background: #e0f2fe;
    padding: 2px 8px;
    border-radius: 999px;
}

.psy-lab-toc-inline-grid {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 8px 16px;
}

.psy-lab-toc-inline-link {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 6px 10px;
    border-radius: 8px;
    color: #334155;
    text-decoration: none;
    font-size: 0.88rem;
    line-height: 1.45;
    transition: all 0.15s ease;
}

.psy-lab-toc-inline-link:hover {
    background: #eff6ff;
    color: #0284c7;
    transform: translateX(2px);
}

[dir="rtl"] .psy-lab-toc-inline-link:hover {
    transform: translateX(-2px);
}

.psy-lab-toc-inline-num {
    font-size: 0.72rem;
    font-weight: 800;
    color: #0284c7;
    background: #e0f2fe;
    padding: 2px 6px;
    border-radius: 5px;
    flex-shrink: 0;
    margin-top: 2px;
}

.psy-lab-toc-inline-text {
    flex: 1;
}

/* Typographie du corps de texte (confort et lisibilité maximale) */
.psy-lab-article-body {
    font-size: 1.15rem;
    line-height: 1.92;
    color: #1e293b;
    letter-spacing: -0.005em;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

.psy-lab-article-intro {
    margin-bottom: 2.5rem;
    font-size: 1.18rem;
}

.psy-lab-article-section {
    margin-top: 3.25rem;
}

.psy-lab-section-title {
    font-size: 1.55rem;
    font-weight: 800;
    line-height: 1.35;
    color: #0f172a;
    letter-spacing: -0.015em;
    margin: 0 0 1.35rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #e2e8f0;
    scroll-margin-top: 90px;
    display: flex;
    align-items: baseline;
    gap: 12px;
}

.psy-lab-section-num {
    font-size: 0.95rem;
    font-weight: 800;
    color: #0284c7;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    padding: 3px 10px;
    border-radius: 8px;
    flex-shrink: 0;
}

.psy-lab-article-body p {
    margin-bottom: 1.65rem;
}

.psy-lab-article-body em {
    font-style: italic;
    color: #1e293b;
}

.psy-lab-article-body strong {
    font-weight: 700;
    color: #0f172a;
}

.psy-lab-article-body a {
    color: #0284c7;
    text-decoration: underline;
    text-underline-offset: 3px;
    font-weight: 550;
    transition: color 0.15s ease;
}

.psy-lab-article-body a:hover {
    color: #0369a1;
}

/* Listes du corps de texte (ul / ol) */
.psy-lab-article-body ul,
.psy-lab-article-body ol {
    margin: 1.5rem 0 2rem;
    padding-left: 1.85rem;
    box-sizing: border-box;
}

.psy-lab-article-body ul {
    list-style-type: disc;
}

.psy-lab-article-body ol {
    list-style-type: decimal;
}

.psy-lab-article-body li {
    margin-bottom: 0.75rem;
    line-height: 1.82;
    color: #1e293b;
    padding-left: 0.25rem;
}

.psy-lab-article-body li:last-child {
    margin-bottom: 0;
}

.psy-lab-article-body li strong {
    color: #0f172a;
    font-weight: 700;
}

/* Citations & blockquotes */
.psy-lab-article-body blockquote {
    margin: 2rem 0;
    padding: 1.25rem 1.6rem;
    background: #f8fafc;
    border-left: 4px solid #0284c7;
    border-radius: 0 12px 12px 0;
    font-size: 1.125rem;
    line-height: 1.82;
    color: #334155;
    font-style: italic;
}

.psy-lab-article-body blockquote p:last-child {
    margin-bottom: 0;
}

/* Carte de profil / Exemple observé */
.psy-lab-bio-card {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    margin: 1.75rem 0;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04);
}

.psy-lab-bio-tag {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #64748b;
    margin-bottom: 0.5rem;
}

.psy-lab-bio-text {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.95rem;
    line-height: 1.6;
    color: #1e293b;
    margin: 0 !important;
    background: #f8fafc;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    border-left: 3px solid #94a3b8;
}

/* Grille de comparaison (Profil dispersé vs Profil structuré) */
.psy-lab-compare-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
    margin: 2rem 0;
}

.psy-lab-compare-card {
    border-radius: 12px;
    padding: 1.25rem 1.4rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.psy-lab-compare-card.is-dispersed {
    background: #fffbeb;
    border: 1px solid #fde68a;
}

.psy-lab-compare-card.is-structured {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
}

.psy-lab-compare-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.775rem;
    font-weight: 750;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin-bottom: 0.75rem;
}

.psy-lab-compare-card.is-dispersed .psy-lab-compare-badge {
    color: #b45309;
}

.psy-lab-compare-card.is-structured .psy-lab-compare-badge {
    color: #15803d;
}

.psy-lab-compare-quote {
    font-size: 1.05rem;
    line-height: 1.7;
    font-style: italic;
    color: #1e293b;
    margin: 0 0 0.85rem !important;
    flex: 1;
}

.psy-lab-compare-note {
    font-size: 0.88rem;
    line-height: 1.5;
    color: #475569;
    margin: 0 !important;
    padding-top: 0.75rem;
    border-top: 1px dashed rgba(0, 0, 0, 0.1);
}

/* Encadré d'exemple / cas illustratif */
.psy-lab-example-box {
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    border-left: 4px solid #0284c7;
    border-radius: 12px;
    padding: 1.35rem 1.65rem;
    margin: 2.25rem 0;
}

.psy-lab-example-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.82rem;
    font-weight: 750;
    color: #0369a1;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin-bottom: 0.75rem;
}

.psy-lab-example-quote {
    font-size: 1.08rem;
    line-height: 1.8;
    color: #1e293b;
    font-style: italic;
    margin: 0 0 0.75rem !important;
    background: #ffffff;
    padding: 1rem 1.25rem;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.psy-lab-example-meta {
    font-size: 0.88rem;
    color: #475569;
    margin: 0 !important;
}

/* Carte checklist / repères de réflexion */
.psy-lab-checklist-card {
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    padding: 1.5rem 1.75rem;
    margin: 2.25rem 0;
}

.psy-lab-checklist-title {
    font-size: 1.05rem;
    font-weight: 750;
    color: #0f172a;
    margin-bottom: 1.15rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.psy-lab-checklist {
    list-style: none;
    margin: 0;
    padding: 0;
}

.psy-lab-checklist li {
    display: block;
    position: relative;
    padding-left: 1.65rem;
    margin-bottom: 0.95rem;
    font-size: 1.05rem;
    line-height: 1.75;
    color: #334155;
}

.psy-lab-checklist li:last-child {
    margin-bottom: 0;
}

.psy-lab-checklist li::before {
    content: "•";
    position: absolute;
    left: 0.15rem;
    top: -0.1rem;
    color: #0284c7;
    font-size: 1.5rem;
    line-height: 1.5;
    font-weight: 800;
}

.psy-lab-checklist li strong {
    color: #0f172a;
    font-weight: 700;
    white-space: nowrap;
}

/* Editorial panels reuse the Lab cards, with wrapping for longer labels. */
.psy-lab-editorial-panel .psy-lab-compare-card {
    min-width: 0;
    justify-content: flex-start;
}

.psy-lab-editorial-panel .psy-lab-compare-card.is-option {
    background: #f8fafc;
    border: 1px solid #cbd5e1;
}

.psy-lab-editorial-panel .psy-lab-compare-card.is-option-alt {
    background: #f0f9ff;
    border: 1px solid #bae6fd;
}

.psy-lab-editorial-panel .psy-lab-compare-badge {
    color: #0369a1;
}

.psy-lab-editorial-panel p:last-child {
    margin-bottom: 0;
}

.psy-lab-article-body .psy-lab-editorial-panel .psy-lab-checklist {
    margin: 0;
    padding: 0;
    list-style: none;
}

.psy-lab-editorial-panel .psy-lab-checklist li {
    font-size: inherit;
}

.psy-lab-editorial-panel .psy-lab-checklist li strong {
    white-space: normal;
}

/* RTL (Arabe) */
[dir="rtl"] .psy-lab-article-body ul,
[dir="rtl"] .psy-lab-article-body ol {
    padding-left: 0;
    padding-right: 1.85rem;
}

[dir="rtl"] .psy-lab-article-body li {
    padding-left: 0;
    padding-right: 0.25rem;
}

[dir="rtl"] .psy-lab-checklist li {
    padding-left: 0;
    padding-right: 1.65rem;
}

[dir="rtl"] .psy-lab-checklist li::before {
    left: auto;
    right: 0.15rem;
}
[dir="rtl"] .sg-submit i,
[dir="rtl"] .psy-lab-card-link i {
    transform: rotate(180deg);
}

[dir="rtl"] .psy-lab-nav-links li a i {
    transform: rotate(180deg);
}

[dir="rtl"] .psy-lab-article-lead {
    border-left: none;
    border-right: 4px solid #0284c7;
    border-radius: 12px 0 0 12px;
}

[dir="rtl"] .psy-lab-article-body {
    font-size: 1.25rem;
    line-height: 2.15;
    font-family: 'Tajawal', 'Segoe UI', system-ui, sans-serif;
}

[dir="rtl"] .psy-lab-article-body blockquote {
    border-left: none;
    border-right: 4px solid #0284c7;
    border-radius: 12px 0 0 12px;
}

[dir="rtl"] .psy-lab-bio-text {
    border-left: none;
    border-right: 3px solid #94a3b8;
}

[dir="rtl"] .psy-lab-example-box {
    border-left: 1px solid #cbd5e1;
    border-right: 4px solid #0284c7;
}

@media (max-width: 1024px) {
    .psy-lab-layout {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .psy-lab-sidebar {
        position: static;
        margin-top: 1rem;
    }
}

@media (max-width: 768px) {
    .psy-lab-compare-grid {
        grid-template-columns: 1fr;
    }
    .psy-lab-toc-list {
        grid-template-columns: 1fr;
    }
    .psy-lab-section-title {
        font-size: 1.25rem;
    }
}

@media (max-width: 640px) {
    .sg-search-main {
        grid-template-columns: 1fr;
    }
    .sg-submit {
        width: 100%;
        justify-content: center;
    }
    .psy-lab-grid {
        grid-template-columns: 1fr;
    }
}
