/* FITH staging · client review of 24 Nov 2026 (module 127).
   Additive layer. Removing module 127 restores the previous presentation. */

/* Bilingual copy added by module 127: the site's language switch sets <html lang>. */
html:not([lang|="fr"]) [data-fith-r127] [lang="fr"],
html:not([lang|="fr"]) [data-fith-r127][lang="fr"],
html[lang|="fr"] [data-fith-r127] [lang="en"],
html[lang|="fr"] [data-fith-r127][lang="en"] { display: none !important; }
[data-fith-r127] span[lang="en"], [data-fith-r127] span[lang="fr"] {
  display: inline; font-size: inherit; font-weight: inherit; line-height: inherit; color: inherit;
  margin: 0; padding: 0; background: none; border: 0; width: auto; height: auto; transform: none;
}

/* 1 · One header action on every page */
.site-header .nav-cta.fith-r127-cta { white-space: nowrap; }
@media (max-width: 1439px) {
  .site-header .nav-cta.fith-r127-cta { white-space: normal; max-width: 168px; min-height: 46px; padding: 7px 14px; line-height: 1.25; text-align: center; font-size: 11.5px; }
}
html[lang|="fr"] .site-header .nav-cta.fith-r127-cta { white-space: normal; max-width: 176px; min-height: 46px; padding: 7px 14px; line-height: 1.25; text-align: center; font-size: 11.5px; }

/* 3–4 · Teacher profile: calendar first, questions second */
.fith-r127-avail-intro { max-width: 46rem; margin: .4rem 0 1.4rem; font-size: 16px; line-height: 1.7; color: var(--text, #4d5870); }
.fith-r127-avail-intro strong { color: var(--navy, #14234a); }
section#availability.teacher-calendar { scroll-margin-top: 110px; }
section#availability.teacher-calendar > h2 { margin-bottom: .2rem; }
.fith-r127-question-note { font-size: 15px; line-height: 1.7; }

/* 6 · Directory cards: second link to the calendar */
article.teacher-card { position: relative; }
article.teacher-card > a.fith-r127-card-avail {
  position: absolute; right: 20px; bottom: 16px; z-index: 2; width: auto; height: auto; max-width: calc(100% - 150px);
  display: inline-flex; align-items: center; gap: 8px; margin: 0; padding: 9px 15px;
  border-radius: 999px; background: var(--light, #f1f5ff); color: var(--blue, #1438c6);
  font-size: 12px; font-weight: 650; line-height: 1.25; text-decoration: none; min-height: 40px; box-shadow: none; border: 0;
}
article.teacher-card > a.fith-r127-card-avail:hover,
article.teacher-card > a.fith-r127-card-avail:focus-visible { background: var(--blue, #1438c6); color: #fff; }

/* 5 · Teacher map on the directory */
.fith-r127-map { margin-top: 8px; margin-bottom: 56px; scroll-margin-top: 100px; }
.fith-r127-map-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; margin-bottom: 22px; }
.fith-r127-map-head h2 { margin: 0; }
.fith-r127-map-head p { max-width: 520px; margin: 0; font-size: 15px; line-height: 1.7; }
.fith-r127-map .jet-map-listing { border-radius: 24px; overflow: hidden; }
.fith-r127-map-legend { display: flex; flex-wrap: wrap; gap: 18px; margin: 14px 2px 0; font-size: 12px; color: var(--text, #4d5870); }
.fith-r127-map-legend > span::before { content: ""; display: inline-block; width: 22px; height: 0; margin-right: 8px; vertical-align: middle; border-top: 2px solid #1438c6; }
.fith-r127-map-legend > span.is-dep::before { border-top: 1px dashed #5b6f9e; }
.fith-r127-map-legend > span.is-city::before { width: 8px; height: 8px; border: 0; border-radius: 50%; background: #14234a; }
.leaflet-tooltip.fith-r127-region-label {
  background: transparent; border: 0; box-shadow: none; padding: 0;
  font: 700 11px/1.2 Manrope, Inter, Arial, sans-serif; letter-spacing: .06em; text-transform: uppercase;
  color: #1438c6; text-shadow: 0 0 3px #fff, 0 0 3px #fff, 0 0 6px #fff; white-space: nowrap;
}
.leaflet-tooltip.fith-r127-region-label::before { display: none; }
.leaflet-tooltip.fith-r127-dep-label { font: 600 12px/1.3 Inter, sans-serif; color: #14234a; border-radius: 8px; }
[data-fith-map-profiles] p { margin: 0 0 .55rem; }
[data-fith-map-profiles] .fith-r127-pop-avail { display: inline-block; margin-top: 3px; font-weight: 650; }
@media (max-width: 740px) {
  .fith-r127-map-head { display: block; }
  .fith-r127-map-head p { margin-top: 12px; }
}

/* 5 · Home map: regions, departments and major cities */
.fith-hm-land .fith-r127-dep { fill: none; stroke: #c9d4f0; stroke-width: .6; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.fith-hm-land .fith-r127-reg { fill: none; stroke: #8ea3dc; stroke-width: 1.3; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.fith-hm-land .fith-r127-city circle { fill: #14234a; stroke: #fff; stroke-width: .9; }
.fith-hm-land .fith-r127-city text {
  font: 650 9.5px Inter, sans-serif; fill: #14234a; paint-order: stroke; stroke: #fff; stroke-width: 2.6px; stroke-linejoin: round;
}
.fith-r127-hm-pop-avail { display: block; margin: 4px 0 10px 10px; font-size: 12px; font-weight: 650; color: var(--blue, #1438c6); }

/* 7–9 · Home page */
@media (min-width: 741px) {
  body[data-concept="original"] .hero h1 { font-size: clamp(50px, 4.25vw, 66px); letter-spacing: -.055em; }
  body[data-concept="original"] .hero { padding-bottom: 56px; min-height: 0; }
  body[data-concept="original"] main > .section-space { padding-block: 68px; }
  body[data-concept="original"] main > #stay-finder { margin-bottom: 48px; }
  body[data-concept="original"] main > .fith-photo-refresh { margin-bottom: 52px; }
}
body[data-concept="original"] .experience-body figure::after { background: linear-gradient(0deg, #101c4380, transparent 34%); }
body[data-concept="original"] .experience-body figcaption { bottom: 16px; left: 18px; font-size: 11px; line-height: 1.45; }
body[data-concept="original"] .experience-body figcaption span { font-size: 14px; font-weight: 650; margin-bottom: 2px; }

/* 11–12 · Explore page in visual blocks */
.fith-r127-explore { display: grid; gap: 56px; }
.fith-r127-block { scroll-margin-top: 110px; }
.fith-r127-block-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 20px; }
.fith-r127-block-head h2 { margin: 0; font-size: clamp(28px, 2.6vw, 38px); }
.fith-r127-block-head p { margin: 6px 0 0; font-size: 15px; line-height: 1.65; max-width: 560px; }
.fith-r127-more { white-space: nowrap; font-size: 13px; font-weight: 650; color: var(--blue, #1438c6); text-decoration: none; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; }
.fith-r127-more:hover { text-decoration: underline; }
.fith-r127-cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.fith-r127-cards.is-compact { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.fith-r127-card a { display: flex; flex-direction: column; height: 100%; background: #fff; border: 1px solid var(--line, #e4e9f2); border-radius: 22px; overflow: hidden; color: inherit; text-decoration: none; transition: box-shadow .2s, transform .2s; }
.fith-r127-card a:hover, .fith-r127-card a:focus-visible { box-shadow: 0 14px 34px #15295f1f; transform: translateY(-2px); }
.fith-r127-card img { display: block; width: 100%; aspect-ratio: 4 / 3; height: auto; object-fit: cover; background: var(--light, #f1f5ff); }
.fith-r127-card-copy { padding: 16px 18px 20px; display: grid; gap: 6px; }
.fith-r127-card-kicker { font-size: 10px; letter-spacing: .12em; text-transform: uppercase; font-weight: 650; color: var(--blue, #1438c6); }
.fith-r127-card h3 { margin: 0; font-size: 19px; line-height: 1.3; letter-spacing: -.02em; }
.fith-r127-card-copy > span:last-child { font-size: 14px; line-height: 1.6; color: var(--text, #4d5870); }
.fith-r127-cards.is-compact .fith-r127-card a { border-radius: 16px; background: var(--light, #f1f5ff); border-color: transparent; }
.fith-r127-cards.is-compact .fith-r127-card-copy { padding: 16px 18px; }
.fith-r127-cards.is-compact .fith-r127-card h3 { font-size: 16px; }
.fith-r127-archive { margin-top: 8px; border-top: 1px solid var(--line, #e4e9f2); padding-top: 22px; scroll-margin-top: 110px; }
.fith-r127-archive > summary { cursor: pointer; list-style: none; display: inline-flex; align-items: center; gap: 10px; font: 700 18px/1.3 Manrope, Inter, Arial, sans-serif; color: var(--navy, #14234a); min-height: 44px; }
.fith-r127-archive > summary::-webkit-details-marker { display: none; }
.fith-r127-archive > summary::after { content: "+"; display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 50%; background: var(--light, #f1f5ff); color: var(--blue, #1438c6); font-weight: 400; }
.fith-r127-archive[open] > summary::after { content: "−"; }
.fith-r127-archive > p { margin: 6px 0 0; font-size: 14px; }
.fith-r127-archive > .full-sitemap-columns { margin-top: 24px; }
@media (max-width: 980px) {
  .fith-r127-cards, .fith-r127-cards.is-compact { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .fith-r127-cards { grid-template-columns: 1fr; }
  .fith-r127-cards.is-compact { grid-template-columns: 1fr; }
  .fith-r127-block-head { display: block; }
  .fith-r127-explore { gap: 44px; }
}

/* Small screens: readable city names, three-line home headline */
@media (max-width: 740px) {
  .fith-hm-land .fith-r127-city text { font-size: 13px; stroke-width: 3px; }
  .fith-hm-land .fith-r127-city circle { r: 3.2px; }
  body[data-concept="original"] .hero h1 { font-size: clamp(36px, 9.6vw, 52px); }
}
