/* MSID 6.7.06 — single-language public presentation; translations remain search/admin metadata. */
.msid-bi-pair{display:inline-flex;min-width:0;flex-direction:column;gap:1px;vertical-align:middle;line-height:1.2}
.msid-bi-ar{display:block;min-width:0;color:inherit;font:inherit;line-height:inherit}
.msid-bi-fr{}
.msid-bi-pair--center{align-items:center;text-align:center}
.msid-bi-pair--inline{display:inline-flex;flex-direction:row;align-items:baseline;gap:6px}
.msid-bi-pair--inline .msid-bi-fr{font-size:.78em}
.msid-bi-chip{align-items:flex-start;gap:0}
.msid-bi-chip .msid-bi-fr{font-size:.64rem;opacity:.88}

/* Directory heroes follow the home domain-card hierarchy: Arabic first, French supporting. */
.tdh-title .msid-bi-fr,.tdh-title-fr{display:none;margin-top:7px;color:#6e7890;font-family:Inter,"Segoe UI",Arial,sans-serif;font-size:.38em;font-weight:700;line-height:1.15;direction:ltr;text-align:right}
.tdh-sub-fr{display:none;margin-top:3px;color:#8792a6;font-family:Inter,"Segoe UI",Arial,sans-serif;font-size:.83rem;font-weight:600;line-height:1.45;direction:ltr;text-align:right}
.msid-directory-discovery-heading .msid-bi-fr{margin-top:3px;font-size:.7rem}

/* Taxonomy browser: same visual language as the bilingual homepage domain cards. */
.msid-mobile-directory-icon>span:not(.msid-mobile-directory-glyph){font-weight:850;color:#10294f}
.msid-mobile-directory-icon>small[lang="fr"]{display:none;max-width:100%;overflow:hidden;text-overflow:ellipsis;color:#748198;font-family:Inter,"Segoe UI",Arial,sans-serif;font-size:.61rem;font-weight:650;direction:ltr;white-space:nowrap}
.tfb-field-label small[lang="fr"],.tfb-opt .msid-bi-fr{color:#7b879b;font-family:Inter,"Segoe UI",Arial,sans-serif;font-size:.67rem;font-weight:650}
.tfb-field-hint .msid-bi-fr{font-size:.66rem}

/* Listing cards. */
.inst-card .msid-bi-pair,.trainer-card .msid-bi-pair,.course-card .msid-bi-pair{max-width:100%}
.inst-eyebrow .msid-bi-fr{font-size:.62rem}
.inst-badges .badge{min-height:34px;height:auto;align-items:center}
.inst-badges .badge .msid-bi-fr{font-size:.56rem}
.inst-card-footer .msid-bi-pair,.trainer-card-footer .msid-bi-pair,.course-editorial-actions .msid-bi-pair{align-items:center}
.trainer-card-field-tags{display:flex;flex-wrap:wrap;gap:6px;margin:2px 0 9px}
.trainer-card-field-tag{display:inline-flex;min-width:0;padding:5px 9px;border:1px solid rgba(37,87,157,.12);border-radius:11px;background:#f8faff;color:#17345e}
.trainer-card-field-tag .msid-bi-fr{font-size:.56rem}
.course-editorial-field{color:#15325c}
.course-editorial-field .msid-bi-fr{font-size:.56rem}
.course-editorial-label-bi small,.sp-tc-card-facts small .msid-bi-fr{font-size:.78em}

/* Small static UI labels can carry a French supporting line without increasing control height too much. */
.msid-bi-filter-label{display:inline-flex;flex-direction:column;gap:0;line-height:1.05;text-align:right}
.msid-bi-filter-label small{color:#8490a3;font-family:Inter,"Segoe UI",Arial,sans-serif;font-size:.58rem;font-weight:600;direction:ltr;text-align:right}

/* Single profiles: bilingual section subtitles are decorative companions to the Arabic headings. */
body.single-tk_institution .msid-inst-section-head h2::after,
body.single-tk_institution .msid-inst-side-card>h2::after,
body.single-tk_trainer [id] h2::after,
body.single-tk_course [id] h2::after{display:none;margin-top:3px;color:#7b879a;font-family:Inter,"Segoe UI",Arial,sans-serif;font-size:.55em;font-weight:650;line-height:1.2;direction:ltr;text-align:right}
body.single-tk_institution #institution-about h2::after{content:"À propos de l’établissement"}
body.single-tk_institution #institution-specialties h2::after{content:"Spécialités"}
body.single-tk_institution #institution-programs h2::after{content:"Formations disponibles"}
body.single-tk_institution #institution-requirements h2::after{content:"Conditions d’admission"}
body.single-tk_institution #institution-gallery h2::after{content:"Galerie"}
body.single-tk_institution #institution-housing h2::after{content:"Hébergement"}
body.single-tk_institution #institution-facilities h2::after{content:"Équipements et services"}
body.single-tk_institution #institution-internship h2::after{content:"Stages et pratique"}
body.single-tk_institution #institution-services h2::after{content:"Services supplémentaires"}
body.single-tk_institution #institution-partnerships h2::after{content:"Partenariats"}
body.single-tk_institution #institution-video h2::after{content:"Vidéo de présentation"}
body.single-tk_institution #institution-announcements h2::after{content:"Annonces"}
body.single-tk_institution #institution-team h2::after{content:"Formateurs et équipe"}
body.single-tk_institution #institution-reviews h2::after{content:"Avis des apprenants"}
body.single-tk_institution #institution-rating h2::after{content:"Évaluer cet établissement"}

/* Known trainer sections. */
body.single-tk_trainer #trainer-about h2::after{content:"À propos"}
body.single-tk_trainer #trainer-activities h2::after{content:"Parcours et activités"}
body.single-tk_trainer #trainer-training-path h2::after{content:"Spécialités de formation"}
body.single-tk_trainer #trainer-support-path h2::after{content:"Soutien scolaire"}
body.single-tk_trainer #trainer-language-path h2::after{content:"Langues et niveaux"}
body.single-tk_trainer #trainer-experience h2::after{content:"Expérience professionnelle"}
body.single-tk_trainer #trainer-certifications h2::after{content:"Certifications et qualifications"}
body.single-tk_trainer #trainer-courses h2::after{content:"Formations et annonces"}
body.single-tk_trainer #trainer-media h2::after{content:"Galerie"}
body.single-tk_trainer #trainer-announcements h2::after{content:"Annonces"}
body.single-tk_trainer #trainer-reviews h2::after{content:"Avis et évaluations"}
body.single-tk_trainer #trainer-rate h2::after{content:"Évaluer ce professionnel"}
body.single-tk_trainer #trainer-contact h2::after{content:"Contact"}

/* Course page actual sections. */
body.single-tk_course #about-course h2::after{content:"À propos de la formation"}
body.single-tk_course #course-technical h2::after{content:"Fiche technique"}
body.single-tk_course #learning-outcomes h2::after{content:"Ce que vous allez apprendre"}
body.single-tk_course #course-fit h2::after{content:"À qui s’adresse cette formation ?"}
body.single-tk_course #course-program h2::after{content:"Programme"}
body.single-tk_course #course-reviews h2::after{content:"Avis et évaluations"}
body.single-tk_course #course-additional-details h2::after{content:"Informations complémentaires"}
body.single-tk_course #course-media h2::after{content:"Aperçu et galerie"}
body.single-tk_course #course-providers h2::after{content:"Organisateur"}

@media (max-width:760px){
  .tdh-title-fr{font-size:.42em;margin-top:5px}
  .tdh-sub-fr{font-size:.72rem}
  .msid-bi-fr{font-size:.68em}
  .inst-badges .badge .msid-bi-fr,.trainer-card-field-tag .msid-bi-fr,.course-editorial-field .msid-bi-fr{font-size:.52rem}
}

/* Keep bilingual filter controls compact and aligned with the arrow. */
.tk-filters-bar .tfb-btn{display:inline-flex;align-items:center;justify-content:space-between;gap:8px;min-height:48px;text-align:right}
.tk-filters-bar .tfb-btn .msid-bi-filter-label{align-items:flex-start;flex:1;min-width:0}
.tk-filters-bar .tfb-btn .msid-bi-filter-label .msid-bi-ar{font-size:.8rem;font-weight:850}
.tk-filters-bar .tfb-btn .msid-bi-filter-label .msid-bi-fr{color:#7b8798;-webkit-text-fill-color:#7b8798;font-size:.56rem;font-weight:650}
.tk-filters-bar .tfb-btn .tfb-arr{flex:0 0 auto}
.tdh-search button{display:inline-flex;min-width:92px;flex-direction:column;align-items:center;justify-content:center;gap:0;line-height:1.1}
.tdh-search button small{font-family:Inter,"Segoe UI",Arial,sans-serif;font-size:.58rem;font-weight:650;opacity:.75;direction:ltr}
.msid-mobile-results-toolbar>strong small{display:inline-block;margin-inline-start:4px;color:#7b8798;font-family:Inter,"Segoe UI",Arial,sans-serif;font-size:.62rem;font-weight:650;direction:ltr}
@media (max-width:760px){.tk-filters-bar .tfb-btn{min-height:44px}.tdh-search button small{display:none}}


/* Bilingual domain/specialty navigation keeps the same two-line card language everywhere. */
.tcib-lbl .msid-bi-pair{align-items:center;text-align:center}
.tcib-lbl .msid-bi-fr{margin-top:2px;font-size:.58rem}
.tcib-item{min-height:76px;height:auto}
.tcib-clear .msid-bi-fr{font-size:.55rem}

/* Institution detail: taxonomy and technical data mirror homepage bilingual cards. */
.msid-inst-eyebrow>span{height:auto;min-height:30px}
.msid-inst-eyebrow .msid-bi-pair{align-items:center;text-align:center}
.msid-inst-eyebrow .msid-bi-fr{font-size:.55rem;color:currentColor;opacity:.7}
.msid-inst-tech-tags>span{height:auto;min-height:32px;padding-block:5px}
.msid-inst-tech-tags .msid-bi-fr{font-size:.54rem}
.msid-inst-specialty strong .msid-bi-pair{display:flex}
.msid-inst-specialty strong .msid-bi-fr{margin-top:3px;font-size:.64rem}
.msid-inst-facts .msid-bi-fr{font-size:.58rem}

/* Trainer detail: role, hero skills and expertise cards use the same hierarchy. */
.trainer-v4-pill{height:auto;min-height:29px}
.trainer-v4-pill .msid-bi-pair{align-items:center;text-align:center}
.trainer-v4-pill .msid-bi-fr{color:currentColor;font-size:.54rem;opacity:.72}
.trainer-v4-tags>span{height:auto;min-height:32px;padding-block:5px}
.trainer-v4-tags .msid-bi-fr{font-size:.54rem}
.trainer-v4-expertise-grid h3 .msid-bi-fr{margin-top:3px;font-size:.62rem}

/* Course detail and home marketplace cards. */
.course-hero-kickers>span{height:auto;min-height:31px;padding-block:5px}
.course-hero-kickers .msid-bi-fr{font-size:.53rem;color:currentColor;opacity:.72}
.course-technical-item small .msid-bi-fr,.course-additional-table th .msid-bi-fr{font-size:.6rem}
.msid-home-course-card .sp-tc-ad-label{height:auto;min-height:30px;padding-block:4px}
.msid-home-course-card .sp-tc-ad-label .msid-bi-fr,.msid-home-course-card .sp-tc-card-tags .msid-bi-fr{font-size:.52rem;color:currentColor;opacity:.72}
.msid-home-course-card .sp-tc-card-tags>span{height:auto;min-height:31px;padding-block:4px}
.msid-home-course-card .sp-btn-view .msid-bi-fr{font-size:.52rem;color:currentColor;opacity:.78}

@media (max-width:760px){
  .tcib-item{min-height:72px}
  .tcib-lbl .msid-bi-fr{font-size:.54rem}
  .trainer-v4-tags .msid-bi-fr,.course-hero-kickers .msid-bi-fr,.msid-inst-tech-tags .msid-bi-fr{font-size:.5rem}
}


/* 6.7.06: never show companion translations side-by-side in public UI. */
.msid-bi-fr,.tdh-title-fr,.tdh-sub-fr{display:none}
body.single-tk_institution .msid-inst-section-head h2::after,body.single-tk_institution .msid-inst-side-card>h2::after,body.single-tk_trainer [id] h2::after,body.single-tk_course [id] h2::after{display:none;content:none}

/* 6.7.08 — French is visible only on domain/specialty discovery labels. */
.msid-home-domain-card>small[lang="fr"],
.msid-mobile-directory-icon>small[lang="fr"],
.tfb-field-label>small[lang="fr"]{}
.tfb-field-label>small[lang="fr"]{margin-top:2px;color:#7b879b;font-family:Inter,"Segoe UI",Arial,sans-serif;font-size:.64rem;font-weight:650;line-height:1.15;direction:ltr;text-align:right}
.msid-mobile-directory-icon>small[lang="fr"]{display:block}
