/*
  FlexiCare Insurance — V1178 Editorial Detail Pages Mobile QA Polish
  Scope: /odigoi/<slug> and /nea/<slug> only, via .fc-guide-detail / .fc-news-detail body classes.
  Purpose: mobile/tablet readability, TOC stacking, CTA clarity, overflow protection.
  No content, route, slug, form or editorial-engine changes.
*/

body.fc-guide-detail,
body.fc-news-detail{
  overflow-x: clip;
}

body.fc-guide-detail .fc-article-page,
body.fc-news-detail .fc-article-page,
body.fc-guide-detail .fc-article-head,
body.fc-news-detail .fc-article-head,
body.fc-guide-detail .fc-article-main,
body.fc-news-detail .fc-article-main,
body.fc-guide-detail .fc-article-body,
body.fc-news-detail .fc-article-body,
body.fc-guide-detail .fc-editorial-side-rail,
body.fc-news-detail .fc-editorial-side-rail{
  min-width: 0;
  max-width: 100%;
}

body.fc-guide-detail .fc-article-body :is(img, video, iframe, table),
body.fc-news-detail .fc-article-body :is(img, video, iframe, table){
  max-width: 100%;
}

body.fc-guide-detail .fc-article-body :is(pre, code),
body.fc-news-detail .fc-article-body :is(pre, code){
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

body.fc-guide-detail .fc-article-title,
body.fc-news-detail .fc-article-title,
body.fc-guide-detail .fc-article-lead,
body.fc-news-detail .fc-article-lead,
body.fc-guide-detail .fc-article-body :is(h2, h3, p, li, a),
body.fc-news-detail .fc-article-body :is(h2, h3, p, li, a),
body.fc-guide-detail .fc-article-brief__value,
body.fc-news-detail .fc-article-brief__value,
body.fc-guide-detail .fc-post-card__title,
body.fc-news-detail .fc-post-card__title{
  overflow-wrap: anywhere;
  word-break: normal;
}

@media (max-width: 1059px){
  body.fc-guide-detail .fc-shell.fc-article,
  body.fc-news-detail .fc-shell.fc-article,
  body.fc-guide-detail .fc-editorial-article,
  body.fc-news-detail .fc-editorial-article{
    max-width: 100%;
  }

  body.fc-guide-detail .fc-article-layout,
  body.fc-news-detail .fc-article-layout{
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
  }

  body.fc-guide-detail .fc-toc--side,
  body.fc-news-detail .fc-toc--side{
    position: static;
    top: auto;
    max-height: none;
    overflow: visible;
    width: 100%;
    margin-top: 2px;
  }

  body.fc-guide-detail .fc-editorial-side-rail,
  body.fc-news-detail .fc-editorial-side-rail{
    width: 100%;
  }

  body.fc-guide-detail .fc-editorial-side-rail__item,
  body.fc-news-detail .fc-editorial-side-rail__item,
  body.fc-guide-detail .fc-toc,
  body.fc-news-detail .fc-toc{
    padding: 14px;
  }

  body.fc-guide-detail .fc-cta-banner,
  body.fc-news-detail .fc-cta-banner{
    display: grid;
    grid-template-columns: 1fr;
  }

  body.fc-guide-detail .fc-cta-banner__actions,
  body.fc-news-detail .fc-cta-banner__actions{
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
  }
}

@media (max-width: 760px){
  body.fc-guide-detail .section,
  body.fc-news-detail .section{
    padding-top: 18px;
    padding-bottom: 28px;
  }

  body.fc-guide-detail .fc-article-top,
  body.fc-news-detail .fc-article-top{
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    margin-bottom: 12px;
  }

  body.fc-guide-detail .fc-back,
  body.fc-news-detail .fc-back{
    width: fit-content;
    max-width: 100%;
    min-height: 38px;
    display: inline-flex;
    align-items: center;
  }

  body.fc-guide-detail .fc-article-path,
  body.fc-news-detail .fc-article-path{
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    line-height: 1.45;
  }

  body.fc-guide-detail .fc-article-page,
  body.fc-news-detail .fc-article-page{
    padding: 14px;
    border-radius: 22px;
  }

  body.fc-guide-detail .fc-article-head,
  body.fc-news-detail .fc-article-head{
    padding: 15px;
    border-radius: 19px;
  }

  body.fc-guide-detail .fc-article-meta,
  body.fc-news-detail .fc-article-meta{
    gap: 7px 8px;
    font-size: .86rem;
  }

  body.fc-guide-detail .fc-article-meta__sep,
  body.fc-news-detail .fc-article-meta__sep{
    opacity: .55;
  }

  body.fc-guide-detail .fc-article-title,
  body.fc-news-detail .fc-article-title{
    margin-top: 12px;
    font-size: clamp(1.82rem, 9.3vw, 2.35rem);
    line-height: 1.12;
    letter-spacing: -.032em;
  }

  body.fc-guide-detail .fc-article-lead,
  body.fc-news-detail .fc-article-lead{
    font-size: 1rem;
    line-height: 1.66;
  }

  body.fc-guide-detail .fc-article-brief,
  body.fc-news-detail .fc-article-brief{
    grid-template-columns: 1fr;
    gap: 8px;
    margin-top: 14px;
  }

  body.fc-guide-detail .fc-article-brief__item,
  body.fc-news-detail .fc-article-brief__item{
    padding: 11px 12px;
    border-radius: 16px;
  }

  body.fc-guide-detail .fc-article-body,
  body.fc-news-detail .fc-article-body{
    font-size: .98rem;
    line-height: 1.78;
  }

  body.fc-guide-detail .fc-article-body h2,
  body.fc-news-detail .fc-article-body h2{
    margin-top: 1.55em;
    font-size: clamp(1.22rem, 5.6vw, 1.45rem);
    line-height: 1.25;
  }

  body.fc-guide-detail .fc-article-body h3,
  body.fc-news-detail .fc-article-body h3{
    margin-top: 1.25em;
    font-size: 1.04rem;
  }

  body.fc-guide-detail .fc-article-body ul,
  body.fc-news-detail .fc-article-body ul,
  body.fc-guide-detail .fc-article-body ol,
  body.fc-news-detail .fc-article-body ol{
    padding-left: 1.12rem;
  }

  body.fc-guide-detail .fc-article-summary,
  body.fc-news-detail .fc-article-summary,
  body.fc-guide-detail .fc-article-callout,
  body.fc-news-detail .fc-article-callout,
  body.fc-guide-detail .fc-cta-banner,
  body.fc-news-detail .fc-cta-banner,
  body.fc-guide-detail .fc-article-section-nav,
  body.fc-news-detail .fc-article-section-nav{
    border-radius: 18px;
    padding: 14px;
  }

  body.fc-guide-detail .fc-article-takeaways,
  body.fc-news-detail .fc-article-takeaways{
    padding-left: 1.08rem;
  }

  body.fc-guide-detail .fc-cta-banner__actions,
  body.fc-news-detail .fc-cta-banner__actions,
  body.fc-guide-detail .fc-article-bottom,
  body.fc-news-detail .fc-article-bottom,
  body.fc-guide-detail .fc-sticky-cta,
  body.fc-news-detail .fc-sticky-cta{
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
  }

  body.fc-guide-detail .fc-cta-banner__actions .btn,
  body.fc-news-detail .fc-cta-banner__actions .btn,
  body.fc-guide-detail .fc-article-bottom .btn,
  body.fc-news-detail .fc-article-bottom .btn,
  body.fc-guide-detail .fc-sticky-cta .btn,
  body.fc-news-detail .fc-sticky-cta .btn{
    width: 100%;
    justify-content: center;
    min-height: 44px;
    text-align: center;
    white-space: normal;
  }

  body.fc-guide-detail .fc-post-card,
  body.fc-news-detail .fc-post-card,
  body.fc-guide-detail .fc-editorial-side-rail__item,
  body.fc-news-detail .fc-editorial-side-rail__item,
  body.fc-guide-detail .fc-toc,
  body.fc-news-detail .fc-toc{
    border-radius: 18px;
  }
}

@media (max-width: 520px){
  body.fc-guide-detail .container,
  body.fc-news-detail .container{
    padding-left: 14px;
    padding-right: 14px;
  }

  body.fc-guide-detail .fc-article-page,
  body.fc-news-detail .fc-article-page{
    padding: 12px;
  }

  body.fc-guide-detail .fc-article-head,
  body.fc-news-detail .fc-article-head{
    padding: 14px;
  }

  body.fc-guide-detail .fc-article-meta,
  body.fc-news-detail .fc-article-meta{
    align-items: flex-start;
  }

  body.fc-guide-detail .fc-article-chip,
  body.fc-news-detail .fc-article-chip{
    max-width: 100%;
    white-space: normal;
  }

  body.fc-guide-detail .fc-toc a,
  body.fc-news-detail .fc-toc a{
    display: block;
    padding-block: 5px;
  }

  body.fc-guide-detail .fc-article-body table,
  body.fc-news-detail .fc-article-body table{
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}
