/* ==========================================================================
   Client feedback fixes (loads last).
   Sections: 1 text-size consistency (iOS/Android)  2 HQ badge  3 removed arrows
             4 report rich-content (bullets/indent)  5 mobile alignment
             6 expert arrows on mobile  7 site search page
   ========================================================================== */

/* 1) Same text sizing on iOS Safari and Android Chrome (stops auto-inflated text) */
html {
  -webkit-text-size-adjust: 100%;
  -moz-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

/* 2) "HQ" badge on the Belgium office card (Contact page) */
.location-grid article .location-hq-badge {
  position: absolute;
  top: 24px;
  right: 24px;
  margin: 0;
  padding: 3px 12px;
  border-radius: 999px;
  background: #e6f2ea;
  color: #0B3D2E;
  font: 600 11px/1.5 var(--font-ui, "Poppins", sans-serif);
  letter-spacing: .08em;
}

/* 3) Arrow removed next to "Major players" on the Market Reports cards */
.rf-players:after,
.rf-players::after {
  display: none !important;
}

/* 4) Report content: identical bullets, indents and fonts on every device */
.report-rich-content {
  max-width: 100%;
  overflow-wrap: anywhere;
  word-wrap: break-word;
}

.report-rich-content p,
.report-rich-content li,
.report-rich-content span,
.report-rich-content div,
.report-rich-content a,
.report-rich-content b,
.report-rich-content strong,
.report-rich-content em {
  font-family: inherit !important;
}

.report-rich-content p,
.report-rich-content li {
  text-align: left !important;
  text-indent: 0 !important;
}

.report-rich-content ul,
.report-rich-content ol {
  margin: 0 0 12px;
  padding-left: 24px;
  list-style-position: outside;
}

.report-rich-content ul { list-style-type: disc; }
.report-rich-content ul ul { list-style-type: circle; margin: 8px 0 0; }
.report-rich-content ul ul ul,
.report-rich-content ul ul ul ul { list-style-type: square; }
.report-rich-content ol ol { list-style-type: lower-alpha; margin: 8px 0 0; }

.report-rich-content li {
  margin-left: 0 !important;
  padding-left: 0;
}

.report-rich-content li > p { margin: 0; }
.report-rich-content li > ul,
.report-rich-content li > ol { padding-left: 22px; }

.report-rich-content img,
.report-rich-content table,
.report-rich-content iframe {
  max-width: 100%;
}

/* 5) Mobile alignment */
@media (max-width: 1023px) {
  html, body {
    max-width: 100%;
    overflow-x: hidden;
  }

  .cleansing-report-page .cr-shell,
  .cleansing-report-page .cr-main,
  .cleansing-report-page .cr-section {
    min-width: 0;
    max-width: 100%;
  }

  /* tabs scroll sideways instead of widening the page */
  .cr-tabs { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .cr-tabs .container { display: flex; flex-wrap: nowrap; white-space: nowrap; width: max-content; min-width: 100%; }
}

@media (max-width: 767px) {
  .container { max-width: 100%; }

  /* --- Market Reports hero: search bar + stats must stay inside the screen --- */
  .reports-figma .rf-hero > .container {
    grid-template-columns: minmax(0, 1fr) !important;
    padding-left: 16px !important;
    padding-right: 16px !important;
    gap: 32px;
  }

  .reports-figma .rf-search,
  .reports-figma .rf-summary {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0;
  }

  .reports-figma .rf-search form.rf-search-form,
  .rf-search-form {
    width: calc(100% - 16px) !important;
    max-width: calc(100% - 16px) !important;
    margin-left: 16px !important;
    box-sizing: border-box;
  }

  .rf-search-field { max-width: 100%; box-sizing: border-box; }

  .reports-figma .rf-summary nav { white-space: normal; flex-wrap: wrap; }

  .reports-figma .rf-stats {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    column-gap: 14px !important;
    row-gap: 26px !important;
  }

  .reports-figma .rf-stats article {
    width: auto !important;
    min-width: 0;
  }

  .reports-figma .rf-stats strong { font-size: 28px; line-height: 1.1; }
  .reports-figma .rf-stats span { overflow-wrap: anywhere; line-height: 1.3; }

  /* --- M&A "Our Approach" accordion: the answer used a 184px left gutter --- */
  .ma-approach .approach-accordion summary {
    grid-template-columns: 48px 40px minmax(0, 1fr) 24px;
    min-height: 72px;
    padding-left: 0;
  }

  .ma-approach .approach-accordion summary > i { width: 44px; height: 44px; }
  .ma-approach .approach-accordion summary > i img { width: 28px; height: 28px; }
  .ma-approach .approach-accordion summary > span { padding-left: 6px; font-size: 18px; }
  .ma-approach .approach-accordion summary h3 { font-size: 18px; overflow-wrap: anywhere; }
  .ma-approach .approach-accordion summary b { width: 24px; height: 24px; font-size: 20px; }

  .ma-approach .approach-accordion .approach-answer {
    padding: 0 12px 22px 12px !important;
  }

  .ma-approach .approach-accordion .approach-answer p { margin: 0 0 8px; overflow-wrap: anywhere; }

  /* --- Report pages: long words ("Allograft") and the big gap before bullets --- */
  .report-rich-content,
  .report-rich-content * {
    overflow-wrap: anywhere;
    word-break: normal;
    hyphens: auto;
    -webkit-hyphens: auto;
  }

  .report-rich-content table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .report-rich-content ul,
  .report-rich-content ol { padding-left: 20px; }
  .report-rich-content li > ul,
  .report-rich-content li > ol,
  .report-rich-content ul ul,
  .report-rich-content ol ol { padding-left: 18px; margin-left: 0 !important; }

  .cleansing-report-page .cr-main,
  .cleansing-report-page .cr-section { padding-left: 16px; padding-right: 16px; }
}

/* 6) Expert profile arrows - same arrow as desktop, now also on tablet / mobile */
@media (max-width: 1023px) {
  .experts-popup-section .expert-card { position: relative; }

  .experts-popup-section .expert-card::after {
    content: "\2192";
    position: absolute;
    right: 14px;
    bottom: 88px;
    z-index: 2;
    display: grid;
    width: 40px;
    height: 40px;
    place-items: center;
    border-radius: 50%;
    background: #fff;
    color: #0B3D2E;
    font: 18px/1 Arial, sans-serif;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .12);
    pointer-events: none;
  }
}

/* 7) Whole-website search results page */
.site-search-page .ss-hero {
  padding: 56px 0 28px;
  background: #0B3D2E;
  color: #fff;
}

.site-search-page .ss-hero h1 {
  margin: 0 0 18px;
  font: 400 36px/1.2 "DM Serif Display", serif;
  color: #fff;
}

.site-search-page .ss-form { display: flex; gap: 10px; max-width: 640px; }

.site-search-page .ss-form input {
  flex: 1 1 auto;
  min-width: 0;
  height: 48px;
  padding: 0 16px;
  border: 0;
  border-radius: 6px;
  font: 400 15px var(--font-ui, "Poppins", sans-serif);
  box-sizing: border-box;
}

.site-search-page .ss-form button {
  height: 48px;
  padding: 0 22px;
  border: 0;
  border-radius: 6px;
  background: #008028;
  color: #fff;
  font: 600 14px var(--font-ui, "Poppins", sans-serif);
  cursor: pointer;
}

.site-search-page .ss-summary { margin: 16px 0 0; color: rgba(255, 255, 255, .85); }

.site-search-page .ss-results { padding: 36px 0 72px; }
.site-search-page .ss-group { margin-bottom: 36px; }
.site-search-page .ss-group h2 { margin: 0 0 14px; font: 400 26px "DM Serif Display", serif; color: #0B3D2E; }
.site-search-page .ss-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }

.site-search-page .ss-list a {
  display: block;
  padding: 14px 18px;
  border: 1px solid #dbe5df;
  border-radius: 9px;
  background: #fff;
  color: #102018;
  text-decoration: none;
}

.site-search-page .ss-list a:hover { border-color: #008028; }
.site-search-page .ss-list strong { display: block; font: 500 16px/1.4 var(--font-ui, "Poppins", sans-serif); color: #0B3D2E; }
.site-search-page .ss-list span { display: block; margin-top: 4px; color: #525252; font-size: 14px; line-height: 1.5; }
.site-search-page .ss-more a { display: inline; padding: 0; border: 0; background: none; color: #008028; font-weight: 600; }
.site-search-page .ss-empty { padding: 32px 0; color: #525252; }

@media (max-width: 600px) {
  .site-search-page .ss-form { flex-direction: column; }
  .site-search-page .ss-hero h1 { font-size: 28px; }
}
