/* v14: category-page mobile polish only. Desktop and tool workspaces are unchanged. */
.rft-category-page .rft-mobile-copy { display: none; }

@media (max-width: 600px) {
  /* Keep all navigation, with at least 44px touch targets in two compact rows. */
  .rft-category-page .rft-site-header .header-inner {
    min-height: 0;
    padding: 4px 14px;
    gap: 0;
    flex-direction: column;
    align-items: stretch;
  }
  .rft-category-page .rft-site-header .brand {
    align-self: flex-start;
    min-height: 44px;
    font-size: 17px;
    gap: 5px;
  }
  .rft-category-page .rft-site-header .brand-icon {
    width: 27px;
    height: 29px;
    font-size: 20px;
    border-radius: 9px;
  }
  .rft-category-page .rft-site-header .header-actions {
    width: 100%;
    max-width: 100%;
    justify-content: space-between;
    gap: 4px;
  }
  .rft-category-page .rft-site-header .header-actions > :is(a, button) {
    min-width: 44px;
    min-height: 44px;
    font-size: 13px;
    line-height: 1.45;
  }
  .rft-category-page .rft-site-header .rft-menu-trigger {
    padding: 6px 10px;
    gap: 6px;
  }
  .rft-category-page .rft-site-header .rft-language-link {
    padding: 6px 12px !important; /* overrides the existing language-link padding */
  }
  .rft-category-page main {
    padding-top: 12px;
  }
  .rft-category-page .rft-breadcrumbs {
    margin-bottom: 12px;
    gap: 6px;
    line-height: 1.6;
  }
  .rft-category-page .rft-category-hero {
    margin-bottom: 18px;
  }
  .rft-category-page .rft-category-hero .rft-page-eyebrow {
    margin-bottom: 6px;
    font-size: 10px;
    line-height: 1.5;
    letter-spacing: .6px;
  }
  .rft-category-page .rft-category-hero h1 {
    margin: 0 0 8px;
    font-size: 27px;
    line-height: 1.25;
    letter-spacing: -.5px;
    overflow-wrap: break-word;
  }
  /* The old p:last-child selector missed this paragraph because a list follows it. */
  .rft-category-page .rft-category-hero > p:not(.rft-page-eyebrow) {
    margin: 0;
    font-size: 15px;
    line-height: 1.55;
  }
  .rft-category-page .rft-desktop-copy { display: none; }
  .rft-category-page .rft-mobile-copy { display: inline; }
  .rft-category-page .rft-category-facts {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    margin: 12px 0 0;
    padding: 0;
    gap: 5px 12px;
  }
  .rft-category-page .rft-category-facts li {
    font-size: 11px;
    line-height: 1.5;
    gap: 5px;
    max-width: 100%;
  }
  .rft-category-page .rft-category-facts svg {
    width: 14px;
    height: 14px;
  }
  .rft-category-page .rft-category-hero-icon {
    width: 38px;
    height: 38px;
    margin-bottom: 8px;
    border-radius: 10px;
  }
  .rft-category-page .rft-category-hero-icon svg {
    width: 22px;
    height: 22px;
  }
  .rft-category-page .rft-category-subheading {
    font-size: 22px;
    line-height: 1.35;
    margin-bottom: 12px;
  }
  /* Override the higher-specificity Arabic rules without compressing its letterforms. */
  html[lang=ar] .rft-category-page .rft-category-hero h1 {
    line-height: 1.45;
    letter-spacing: 0;
  }
  html[lang=ar] .rft-category-page .rft-category-hero > p:not(.rft-page-eyebrow) {
    line-height: 1.75;
  }
  html[lang=ar] .rft-category-page .rft-category-hero .rft-page-eyebrow {
    letter-spacing: 0;
  }
  html[lang=ar] .rft-category-page .rft-category-subheading {
    line-height: 1.55;
    letter-spacing: 0;
  }
}
