/* GFY_ENTRY_DETAIL_MOBILE_FIX_1_0_0
 * Targeted mobile containment for public entry detail pages.
 * Desktop intentionally unchanged.
 */
@media (max-width: 720px) {
  html, body { max-width:100%; overflow-x:hidden; }
  .public-entry-v5,
  .public-entry-v5 .entry-detail,
  .public-entry-v5 .entry-detail-layout,
  .public-entry-v5 .entry-detail-main,
  .public-entry-v5 .entry-main,
  .public-entry-v5 section,
  .public-entry-v5 article,
  .public-entry-v5 div { min-width:0; box-sizing:border-box; }

  .public-entry-v5 img,
  .public-entry-v5 svg,
  .public-entry-v5 video,
  .public-entry-v5 iframe { max-width:100%; }

  .public-entry-v5 h1,
  .public-entry-v5 h2,
  .public-entry-v5 h3,
  .public-entry-v5 p,
  .public-entry-v5 a,
  .public-entry-v5 span,
  .public-entry-v5 strong,
  .public-entry-v5 small { max-width:100%; overflow-wrap:anywhere; word-break:normal; }

  /* Entry hero: long company/category names must stay inside viewport. */
  .public-entry-v5 h1 { font-size:clamp(2rem, 9.5vw, 3rem) !important; line-height:1.08 !important; letter-spacing:-.035em; }

  /* Intelligence / health cards and their inner grids. */
  .public-entry-v5 [class*="intelligence"],
  .public-entry-v5 [class*="health"],
  .public-entry-v5 [class*="monitor"],
  .public-entry-v5 [class*="badge"],
  .public-entry-v5 [class*="embed"] { max-width:100%; min-width:0; }

  /* Embed code must never enlarge the document. */
  .public-entry-v5 textarea,
  .public-entry-v5 input,
  .public-entry-v5 select { width:100%; max-width:100%; min-width:0; box-sizing:border-box; }
  .public-entry-v5 textarea { white-space:pre-wrap; overflow-wrap:anywhere; word-break:break-all; }

  /* SEO card shown in the reported screenshot. */
  .public-entry-v5 .gfy-seo-entry-card,
  .public-entry-v5 [class^="gfy-seo-entry-card"],
  .public-entry-v5 [class*=" gfy-seo-entry-card"] { width:100% !important; max-width:100% !important; min-width:0 !important; }
  .public-entry-v5 .gfy-seo-entry-card__action {
    display:flex !important; width:100% !important; max-width:100% !important;
    min-width:0 !important; height:auto !important; min-height:52px;
    padding:13px 16px !important; white-space:normal !important;
    text-align:center; justify-content:center; line-height:1.25;
    overflow-wrap:anywhere; box-sizing:border-box;
  }
  .public-entry-v5 .gfy-seo-entry-card h2,
  .public-entry-v5 .gfy-seo-entry-card p { width:auto !important; max-width:100% !important; }

  /* Profile tab navigation may scroll horizontally, but must not widen the page. */
  .public-entry-v5 .entry-detail-profile-tabs,
  .public-entry-v5 .gfy-entry-profile-tabs { width:100% !important; max-width:100% !important; min-width:0 !important; }
  .public-entry-v5 .entry-detail-profile-tabs nav,
  .public-entry-v5 .gfy-entry-profile-tabs__nav { max-width:100% !important; overflow-x:auto !important; overscroll-behavior-inline:contain; }

  /* Generic actions inside cards: wrap instead of causing document overflow. */
  .public-entry-v5 [class*="actions"] { max-width:100%; flex-wrap:wrap; }
  .public-entry-v5 [class*="action"] { max-width:100%; }
}

@media (max-width: 420px) {
  .public-entry-v5 h1 { font-size:clamp(1.85rem, 9vw, 2.45rem) !important; }
}
