/* RUN12: scoped catalogue / contact layout; no Traceurs detail styles. */
.topbar-home-actions a {
  text-decoration: none;
}
.topbar-home-actions .b2b-btn {
  display: inline-flex;
  align-items: center;
}
.module-catalogue .module-filters[hidden] {
  display: none !important;
}
body[data-content-section="jobs"] #browseForm,
body[data-content-section="learning"] #browseForm,
body[data-content-section="themes"] #browseForm,
body[data-content-section="cases"] #browseForm {
  display: none !important;
}
body:is(
    [data-content-section="jobs"],
    [data-content-section="learning"],
    [data-content-section="themes"],
    [data-content-section="cases"]
  )
  .content-nav {
  display: none;
}
.job-actions {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px;
  margin: 16px 0;
}
.job-actions .job-map-button,
.job-actions .job-publish-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 19px;
  border-radius: 9px;
  font:
    600 14px "DM Sans",
    sans-serif;
  text-decoration: none;
  cursor: pointer;
}
.job-actions .job-map-button {
  background: #e8f5e9;
  color: #2e7d32;
  border: 1px solid #c8e6c9;
}
.job-actions .job-map-button[aria-pressed="true"] {
  background: #c8e6c9;
}
.job-actions .job-publish-button {
  background: #1565c0;
  border: 1px solid #1565c0;
  color: white;
}
.jobs-map {
  background: white;
  padding: 16px;
  border: 1px solid #d5e5f0;
  border-radius: 12px;
  margin-bottom: 20px;
}
.jobs-map-canvas {
  height: 420px;
  width: 100%;
  border-radius: 8px;
  z-index: 0;
}
.jobs-map-note {
  font-size: 12px;
  color: #5b7489;
}
.section-learning .module-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  padding: 12px 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}
.section-learning .module-filters label:has([data-filter="Pays"]) {
  display: none;
}
.section-learning .module-filters label:first-child {
  flex: 1;
  min-width: 200px;
}
.section-learning .module-filters input {
  width: 100%;
}
body.content-body .section-learning .calendar-layout.cal-layout {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}
.section-learning .calendar-panel,
.section-learning .calendar-list {
  min-width: 0;
}
.section-learning .calendar-day {
  min-width: 0;
  overflow: hidden;
}
.section-learning .calendar-event {
  display: block;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
  max-width: 100%;
}
.section-themes > .module-filters,
.section-cases > .module-filters {
  display: none;
}
.section-themes .theme-layout,
.section-cases .case-layout {
  display: block;
  max-width: 1080px;
  margin: 0 auto;
}
.section-themes .theme-archive,
.section-cases .theme-archive {
  position: static;
  display: block;
  max-height: none;
  margin-bottom: 20px;
  background: white;
  border: 1px solid #d5e5f0;
  border-radius: 10px;
  padding: 0;
  overflow: hidden;
}
.theme-archive summary {
  padding: 16px 20px;
  font-weight: 700;
  color: #1565c0;
  cursor: pointer;
  background: #eaf3fa;
}
.theme-archive > h3 {
  margin: 18px 20px 8px;
}
.theme-archive > button {
  display: inline-flex;
  flex-direction: column;
  width: auto;
  max-width: calc(100% - 24px);
  margin: 6px 12px;
  padding: 10px 14px;
  text-align: left;
  gap: 4px;
  background: white;
  border: 1px solid #d5e5f0;
  border-radius: 8px;
}
.theme-archive > button[aria-pressed="true"] {
  background: #dcecff;
  border-color: #1565c0;
}
.theme-archive > button:last-child {
  margin-bottom: 14px;
}
.section-themes .theme-feature {
  padding: 28px 34px;
  background: white;
  border: 1px solid #d5e5f0;
  border-radius: 12px;
  max-width: none;
}
.section-themes .theme-feature h1 {
  font:
    700 32px/1.3 "Playfair Display",
    Georgia,
    serif;
}
.section-themes .theme-feature .lead {
  font-size: 17px;
  line-height: 1.7;
  color: #536d82;
}
.section-themes .theme-feature .detail-metadata {
  border-bottom: 1px solid #e3eaf0;
  margin-bottom: 22px;
  font-size: 13px;
  color: #5b7489;
}
.section-themes .theme-feature .editorial-block {
  line-height: 1.8;
}
.section-themes .theme-feature .block-pull_quote {
  border-left: 4px solid #1565c0;
  background: #eaf3fa;
  padding: 18px 24px;
  margin: 24px 0;
  font-size: 18px;
}
.section-cases .case-feature {
  padding: 22px;
  background: white;
  border: 1px solid #d5e5f0;
  border-radius: 12px;
  max-width: none;
}
.clinical-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}
.clinical-grid.without-images {
  grid-template-columns: minmax(0, 1fr);
}
.clinical-media,
.clinical-prose {
  min-width: 0;
}
.clinical-media figure {
  margin: 0 0 16px;
}
.clinical-media img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
}
.clinical-prose h1 {
  font:
    700 26px/1.3 "Playfair Display",
    Georgia,
    serif;
  margin-top: 0;
}
.section-cases .module-tabs {
  margin: 0 0 20px;
}
.section-cases .case-gallery {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
body[data-content-section="contact"] .hero-banner-v2 {
  background-image:
    linear-gradient(90deg, #0d3b5cd9, #0d3b5c40),
    url("../images/banner-publications.webp");
}
.contact-body-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 32px 22px;
  gap: 24px;
}
.contact-body-wrap .contact-card {
  width: 100%;
  max-width: 640px;
  background: white;
  border: 1px solid #e0ddd7;
  border-radius: 12px;
  padding: 28px 32px;
  box-shadow: 0 4px 20px #0d1b2a08;
}
.contact-card h2 {
  font:
    700 24px/1.3 "Playfair Display",
    Georgia,
    serif;
  color: #0d3b5c;
  margin: 0 0 10px;
}
.contact-card p {
  font-size: 14px;
  line-height: 1.7;
  color: #5b7489;
}
.contact-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.contact-card label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin: 16px 0 6px;
}
.contact-card input:not([type="checkbox"]),
.contact-card select,
.contact-card textarea {
  display: block;
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #d5e5f0;
  border-radius: 7px;
  padding: 11px 12px;
  font:
    14px "DM Sans",
    sans-serif;
  background: white;
  color: #13213a;
}
.contact-card textarea {
  resize: vertical;
  min-height: 130px;
}
.contact-card button {
  border: 0;
  border-radius: 7px;
  padding: 11px 22px;
  background: #1565c0;
  color: white;
  font:
    600 14px "DM Sans",
    sans-serif;
  cursor: pointer;
}
.contact-card .contact-consent {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.6;
  margin-bottom: 16px;
}
.contact-consent input {
  width: auto;
  flex: none;
  margin: 4px 0;
}
.contact-card [role="status"] {
  overflow-wrap: anywhere;
}
.contact-card .privacy-note {
  font-size: 12px;
}
.contact-card details p {
  margin-bottom: 0;
}
.contact-card summary {
  cursor: pointer;
  color: #1565c0;
  font-weight: 600;
}
@media (max-width: 1000px) {
  body.content-body .section-learning .calendar-layout.cal-layout {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (max-width: 700px) {
  .clinical-grid,
  .section-cases .case-gallery {
    grid-template-columns: minmax(0, 1fr);
  }
  .section-themes .theme-feature,
  .section-cases .case-feature {
    padding: 18px;
  }
  .section-themes .theme-feature h1 {
    font-size: 26px;
  }
  .jobs-map-canvas {
    height: 340px;
  }
}
@media (max-width: 540px) {
  .contact-form-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }
  .contact-body-wrap {
    padding: 20px 12px;
  }
  .contact-body-wrap .contact-card {
    padding: 22px 18px;
  }
  .job-actions {
    justify-content: stretch;
  }
  .job-actions > * {
    flex: 1;
  }
}

/* Contact panel: original source CSS, scoped to Contact. */
body[data-content-section="contact"] .contact-body-wrap {
  flex-direction: column;
  align-items: center;
  padding: 60px 28px;
  display: flex;
  justify-content: center;
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
}
body[data-content-section="contact"] .contact-card {
  background: var(--color-surface);
  border-radius: var(--radius-2xl);
  border: 1px solid var(--color-border-light);
  padding: 52px 56px;
  max-width: 560px;
  width: 100%;
  text-align: center;
  box-shadow: var(--shadow-card);
}
body[data-content-section="contact"] .contact-icon {
  margin-bottom: 20px;
}
body[data-content-section="contact"] .contact-card h2 {
  font-family: var(--font-family-sans);
  font-size: 1.7rem;
  font-weight: var(--font-weight-bold);
  color: var(--color-primary-night);
  margin: 0 0 14px;
}
body[data-content-section="contact"] .contact-desc {
  color: var(--color-text-secondary);
  font-size: 0.96rem;
  line-height: 1.6;
  margin-bottom: 28px;
}
body[data-content-section="contact"] .contact-btn {
  display: inline-block;
  background: var(--color-primary);
  color: var(--color-text-on-dark);
  padding: 13px 30px;
  border-radius: var(--radius-lg);
  font-size: var(--font-size-md);
  font-weight: var(--font-weight-semibold);
  text-decoration: none;
  box-shadow: var(--shadow-btn);
  transition: background var(--transition-fast);
}
body[data-content-section="contact"] .contact-btn:hover {
  background: var(--color-primary-hover);
}

body[data-content-section="contact"] .contact-card {
  max-width: 640px;
  text-align: center;
}
body[data-content-section="contact"] .contact-card h2 {
  font-family: var(--font-family-sans);
  font-size: 1.7rem;
}
body[data-content-section="contact"] #contactForm {
  margin-top: 20px;
}
body[data-content-section="contact"] .contact-card input:not([type="checkbox"]),
body[data-content-section="contact"] .contact-card select,
body[data-content-section="contact"] .contact-card textarea {
  background: var(--color-bg, #f5f3ef);
  padding: 9px 12px;
  border-radius: 8px;
}
body[data-content-section="contact"] #contactForm > button {
  display: block;
  margin-left: auto;
}
body[data-content-section="contact"] #apropos:not(:target) {
  display: none;
}
@media (max-width: 540px) {
  body[data-content-section="contact"] .contact-card {
    padding: 26px 20px;
  }
  body[data-content-section="contact"] .contact-body-wrap {
    padding: 26px 12px;
  }
}

body:is(
    [data-content-section="themes"],
    [data-content-section="cases"],
    [data-content-section="learning"],
    [data-content-section="contact"]
  )
  .hero-banner-v2 {
  min-height: 170px;
  padding: 26px 0 24px;
  background-position: center right;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
body:is(
    [data-content-section="themes"],
    [data-content-section="cases"],
    [data-content-section="learning"],
    [data-content-section="contact"]
  )
  .hero-banner-v2-content {
  width: 100%;
  max-width: 1400px;
  margin-inline: auto;
  padding-inline: 28px;
  box-sizing: border-box;
}
body:is(
    [data-content-section="themes"],
    [data-content-section="cases"],
    [data-content-section="learning"],
    [data-content-section="contact"]
  )
  .hero-banner-v2-title {
  font-size: clamp(1.5rem, 3.2vw, 2.1rem);
  margin: 0 0 6px;
}
body:is(
    [data-content-section="themes"],
    [data-content-section="cases"],
    [data-content-section="learning"],
    [data-content-section="contact"]
  )
  .hero-banner-v2-subtitle {
  font-size: 0.95rem;
  margin: 0;
}
