/* Homepage-only mobile components. */
/* — Homepage Nuqta Plus: 4 cards, 2 per row on phones. */
@media (max-width: 760px) {
  body.home .nqhome-media-grid,
  body.front-page .nqhome-media-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px;
    margin-inline: 0;
    padding: 0;
    overflow: visible;
    scroll-snap-type: none;
  }
  body.home .nqhome-media-card,
  body.front-page .nqhome-media-card {
    display: block;
    width: auto;
    min-width: 0;
    flex: none;
    scroll-snap-align: none;
    border-radius: 15px !important;
  }

  body.home .nqhome-media-visual,
  body.front-page .nqhome-media-visual {
    aspect-ratio: 16 / 10;
    border-radius: 14px 14px 0 0 !important;
  }
  body.home .nqhome-media-body,
  body.front-page .nqhome-media-body {
    min-height: 0 !important;
    padding: 10px 10px 12px !important;
  }
  body.home .nqhome-media-kicker,
  body.front-page .nqhome-media-kicker {
    margin-bottom: 5px !important;
    font-size: 9px !important;
  }
  body.home .nqhome-media-card-title,
  body.front-page .nqhome-media-card-title {
    min-height: 4.35em !important;
    max-height: 4.35em !important;
    font-size: 12.5px;
    line-height: 1.45;
    -webkit-line-clamp: 3 !important;
  }
  body.home .nqhome-media-excerpt,
  body.front-page .nqhome-media-excerpt {
    display: none;
  }
  body.home .nqhome-media-play,
  body.front-page .nqhome-media-play {
    left: 8px !important;
    bottom: 8px !important;
    inset: auto auto 8px 8px !important;
  }
  body.home .nqhome-media-play span,
  body.front-page .nqhome-media-play span {
    width: 38px !important;
    height: 38px !important;
  }
  body.home .nqhome-media-play svg,
  body.front-page .nqhome-media-play svg {
    width: 14px !important;
    height: 17px !important;
  }
  body.home .nqhome-media-duration,
  body.front-page .nqhome-media-duration {
    left: 52px !important;
    bottom: 20px !important;
    font-size: 10px !important;
  }
}

/* Nuqta home — mobile component
 * Extracted in from the global mobile stylesheet.
 * Loaded only on the front page / posts home.
 */
/* ═══════════════════════════════════════════════════════
 — Professional mobile homepage pass
   Optimized for the latest editorial hierarchy:
   editorial hero → Wash Sra → context → articles → media → podcast → writers.
   ═══════════════════════════════════════════════════════ */
@media (max-width: 760px) {
  body.home,
  body.front-page {
    --nq-mobile-gutter: 14px;
    --nq-mobile-section-gap: 30px;
    background: #f7f6f3 !important;
  }

  body.home .page-wrap,
  body.front-page .page-wrap {
    width: 100% !important;
    max-width: none !important;
    padding-inline: var(--nq-mobile-gutter) !important;
  }

 /* 1) Editorial hero: compact, hierarchical, and touch-friendly. */
  body.home .page-wrap--context-hero,
  body.front-page .page-wrap--context-hero {
    padding-top: 0 !important;
  }
  body.home .page-wrap--context-hero .nqhome-understand,
  body.front-page .page-wrap--context-hero .nqhome-understand {
    margin: 0 !important;
    padding: 10px 0 4px !important;
    background: transparent !important;
  }
  body.home .nqhome-understand .nqhome-politics__layout,
  body.front-page .nqhome-understand .nqhome-politics__layout {
    display: flex !important;
    flex-direction: column !important;
    gap: 18px !important;
  }
  body.home .nqhome-understand .nqhome-politics-feature,
  body.front-page .nqhome-understand .nqhome-politics-feature {
    order: 1 !important;
    overflow: hidden !important;
    border: 1px solid #e4e1dc !important;
    border-radius: 20px !important;
    background: #fff !important;
    box-shadow: 0 8px 26px rgba(26,22,18,.06) !important;
  }
  body.home .nqhome-understand .nqhome-politics-feature__media,
  body.front-page .nqhome-understand .nqhome-politics-feature__media {
    display: block !important;
    padding: 0 !important;
    aspect-ratio: 16 / 10 !important;
    overflow: hidden !important;
    border-radius: 0 !important;
    background: #ece9e4 !important;
  }
  body.home .nqhome-understand .nqhome-politics-feature__media img,
  body.front-page .nqhome-understand .nqhome-politics-feature__media img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
  }
  body.home .nqhome-understand .nqhome-politics-feature__body,
  body.front-page .nqhome-understand .nqhome-politics-feature__body {
    padding: 15px 15px 16px !important;
  }
  body.home .nqhome-understand .nqhome-politics__kicker,
  body.front-page .nqhome-understand .nqhome-politics__kicker {
    margin-bottom: 6px !important;
    font-size: 9.5px !important;
  }
  body.home .nqhome-understand .nqhome-politics-feature__title,
  body.front-page .nqhome-understand .nqhome-politics-feature__title {
    margin: 0 !important;
    font-size: 24px !important;
    line-height: 1.3 !important;
    text-align: right !important;
  }
  body.home .nqhome-understand .nqhome-politics-feature__excerpt,
  body.front-page .nqhome-understand .nqhome-politics-feature__excerpt {
    max-width: none !important;
    min-height: 0 !important;
    margin: 9px 0 0 !important;
    font-size: 12.3px !important;
    line-height: 1.72 !important;
    -webkit-line-clamp: 3 !important;
  }
  body.home .nqhome-understand .nqhome-politics-feature .nqhome-politics__byline,
  body.front-page .nqhome-understand .nqhome-politics-feature .nqhome-politics__byline {
    margin-top: 9px !important;
    text-align: right !important;
    font-size: 9px !important;
  }

  body.home .nqhome-understand .nqhome-politics-main,
  body.front-page .nqhome-understand .nqhome-politics-main {

    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
  }
  body.home .nqhome-understand .nqhome-politics-lead,
  body.front-page .nqhome-understand .nqhome-politics-lead {
    min-height: 0 !important;
    margin: 0 0 14px !important;
    padding: 17px 15px 18px !important;
    border: 1px solid #e4e1dc !important;
    border-radius: 18px !important;
    background: #fff !important;
  }
  body.home .nqhome-understand .nqhome-politics-lead__title,
  body.front-page .nqhome-understand .nqhome-politics-lead__title {
    margin: 0 !important;
    font-size: 23px !important;
    line-height: 1.3 !important;
    text-align: right !important;
  }
  body.home .nqhome-understand .nqhome-politics-lead__excerpt,
  body.front-page .nqhome-understand .nqhome-politics-lead__excerpt {
    margin: 10px 0 0 !important;
    font-size: 13px !important;
    line-height: 1.75 !important;
    text-align: right !important;
    display: -webkit-box !important;
    -webkit-box-orient: vertical !important;
    -webkit-line-clamp: 3 !important;
    overflow: hidden !important;
  }
  body.home .nqhome-understand .nqhome-politics__byline--lead,
  body.front-page .nqhome-understand .nqhome-politics__byline--lead {
    margin-top: 9px !important;
    text-align: right !important;
    font-size: 9px !important;
  }

 /* Editor picks: visual horizontal rail instead of a tall stacked block. */
  body.home .nqhome-understand .nqhome-politics-cards,
  body.front-page .nqhome-understand .nqhome-politics-cards {
    display: flex !important;
    gap: 10px !important;
    margin: 0 calc(var(--nq-mobile-gutter) * -1) 2px !important;
    padding: 0 var(--nq-mobile-gutter) 8px !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    scroll-snap-type: x mandatory !important;
    scrollbar-width: none !important;
  }
  body.home .nqhome-understand .nqhome-politics-cards::-webkit-scrollbar,
  body.front-page .nqhome-understand .nqhome-politics-cards::-webkit-scrollbar { display: none !important; }
  body.home .nqhome-understand .nqhome-politics-card,
  body.front-page .nqhome-understand .nqhome-politics-card {
    flex: 0 0 79% !important;
    min-width: 0 !important;
    padding: 0 0 12px !important;
    overflow: hidden !important;
    border: 1px solid #e5e2dd !important;
    border-radius: 16px !important;
    background: #fff !important;
    scroll-snap-align: start !important;
  }
  body.home .nqhome-understand .nqhome-politics-card__media,
  body.front-page .nqhome-understand .nqhome-politics-card__media {
    display: block !important;
    aspect-ratio: 16 / 10 !important;
    overflow: hidden !important;
    background: #ece9e4 !important;
  }
  body.home .nqhome-understand .nqhome-politics-card__media img,
  body.front-page .nqhome-understand .nqhome-politics-card__media img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
  }
  body.home .nqhome-understand .nqhome-politics__kicker--card,
  body.front-page .nqhome-understand .nqhome-politics__kicker--card {
    margin: 10px 12px 4px !important;
    text-align: right !important;
  }
  body.home .nqhome-understand .nqhome-politics-card__title,
  body.front-page .nqhome-understand .nqhome-politics-card__title {
    margin: 0 12px !important;
    font-size: 15px !important;
    line-height: 1.45 !important;
    text-align: right !important;
  }
  body.home .nqhome-understand .nqhome-politics-card__excerpt,
  body.front-page .nqhome-understand .nqhome-politics-card__excerpt {
    min-height: 0 !important;
    margin: 6px 12px 0 !important;
    font-size: 11px !important;
    line-height: 1.55 !important;
    text-align: right !important;
    -webkit-line-clamp: 2 !important;
  }

 /* 2) Wash Sra: one strong story card at a time, swipeable. */

  
  body.home .nqws-home__title,
  body.front-page .nqws-home__title {
    font-size: 25px;
    line-height: 1.1;
  }
  body.home .nqws-home__date,
  body.front-page .nqws-home__date {
    font-size: 9px;
  }

  

  body.home .nqws-home__link,
  body.front-page .nqws-home__link {
    position: relative;
    min-height: 0;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    border: 0;
    border-radius: 18px;
    background: #171717;
    box-shadow: 0 6px 22px rgba(0,0,0,.09);
  }

  body.home .nqws-home__story-media,
  body.front-page .nqws-home__story-media {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
  }
  body.home .nqws-home__story-shade,
  body.front-page .nqws-home__story-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,rgba(0,0,0,.08) 0%,rgba(0,0,0,.15) 42%,rgba(0,0,0,.83) 100%);
  }
  body.home .nqws-home__topline,
  body.front-page .nqws-home__topline {

    
    top: 13px;
    right: 13px;
    left: 13px;

    

  }
  body.home .nqws-home__number,
  body.front-page .nqws-home__number {
    color: #fff;
    font-size: 26px;
    text-shadow: 0 1px 7px rgba(0,0,0,.25);
  }
  body.home .nqws-home__total,
  body.front-page .nqws-home__total {

    color: rgba(255,255,255,.75);
    font-size: 9px;
  }

  body.home .nqws-home__content,
  body.front-page .nqws-home__content {

    
    right: 14px;
    left: 14px;
    bottom: 16px;

    
  }

  body.home .nqws-home__excerpt,
  body.front-page .nqws-home__excerpt,
  body.home .nqws-home__footer,
  body.front-page .nqws-home__footer {
    display: none;
  }


 /* 3) «في السياق» moved below Wash Sra: compact mobile masthead. */
  body.home .site-hero,
  body.front-page .site-hero {
    margin: 26px 0 22px !important;
    border-block: 1px solid #e2dfda !important;
    background: #fff !important;
  }
  body.home .site-hero .hero-in,
  body.front-page .site-hero .hero-in {
    display: block !important;
    padding-inline: var(--nq-mobile-gutter) !important;
  }
  body.home .site-hero .hero-stats,
  body.front-page .site-hero .hero-stats,
  body.home .site-hero .hero-cards,
  body.front-page .site-hero .hero-cards {
    display: none !important;
  }
  body.home .site-hero .hero-center,
  body.front-page .site-hero .hero-center {
    padding: 20px 0 21px !important;
    text-align: right !important;
    align-items: flex-start !important;
  }
  body.home .site-hero .hero-eye,
  body.front-page .site-hero .hero-eye {
    margin-bottom: 6px !important;
    color: #8F2033 !important;
    font-size: 9px !important;
  }
  body.home .site-hero .hero-h1,
  body.front-page .site-hero .hero-h1 {
    max-width: 100% !important;
    font-size: 28px !important;
    line-height: 1.24 !important;
    text-align: right !important;
  }
  body.home .site-hero .hero-divider,
  body.front-page .site-hero .hero-divider {
    margin: 10px 0 !important;
  }
  body.home .site-hero .hero-sub,
  body.front-page .site-hero .hero-sub {
    max-width: 100% !important;
    margin-bottom: 13px !important;
    font-size: 12px !important;
    line-height: 1.7 !important;
    display: -webkit-box !important;
    -webkit-box-orient: vertical !important;
    -webkit-line-clamp: 3 !important;
    overflow: hidden !important;
  }
  body.home .site-hero .hero-btns,
  body.front-page .site-hero .hero-btns {
    justify-content: flex-start !important;
  }

 /* 4) Main news feed: calm card rhythm with readable hit targets. */
  body.home .featured-post,
  body.front-page .featured-post {
    margin-top: 8px !important;
    border-radius: 18px !important;
  }
  body.home .feat-title,
  body.front-page .feat-title {
    font-size: 22px !important;
    line-height: 1.36 !important;
  }
  body.home .post-card,
  body.front-page .post-card {
    min-height: 104px !important;
    padding: 10px !important;
    border-radius: 14px !important;
  }
  body.home .post-title,
  body.front-page .post-title {
    font-size: 14px !important;
    line-height: 1.46 !important;
  }

 /* 5) Shared section headers stay visually aligned. */
  body.home .nqhome-media-title,
  body.front-page .nqhome-media-title,
  body.home .nqhome-podcast-heading,
  body.front-page .nqhome-podcast-heading,
  body.home .nqhome-translations__title,
  body.front-page .nqhome-translations__title,
  body.home .nqhome-writers-strip__heading h2,
  body.front-page .nqhome-writers-strip__heading h2 {
    font-size: 24px !important;
    line-height: 1.15 !important;
  }

 /* 6) Aqlam Nuqta: compact writer carousel made for thumbs. */
  body.home .nqhome-writers-strip,
  body.front-page .nqhome-writers-strip {
    margin-top: 30px !important;
    padding-bottom: 22px !important;
  }
  body.home .nqhome-writers-strip__head,
  body.front-page .nqhome-writers-strip__head {
    align-items: center !important;
    margin-bottom: 14px !important;
  }
  body.home .nqhome-writers-strip__mark,
  body.front-page .nqhome-writers-strip__mark {
    margin-top: 6px !important;
  }
  body.home .nqhome-writers-strip__all,
  body.front-page .nqhome-writers-strip__all {
    font-size: 10px !important;
  }
  body.home .nqhome-writers-strip__rail,
  body.front-page .nqhome-writers-strip__rail {
    display: flex !important;
    gap: 10px !important;
    margin-inline: calc(var(--nq-mobile-gutter) * -1) !important;
    padding: 0 var(--nq-mobile-gutter) 7px !important;
    overflow-x: auto !important;
    scroll-snap-type: x mandatory !important;
    scrollbar-width: none !important;
  }
  body.home .nqhome-writers-strip__rail::-webkit-scrollbar,
  body.front-page .nqhome-writers-strip__rail::-webkit-scrollbar { display: none !important; }
  body.home .nqhome-writers-strip__item,
  body.front-page .nqhome-writers-strip__item,
  body.home .nqhome-writers-strip__item:nth-child(odd),
  body.front-page .nqhome-writers-strip__item:nth-child(odd),
  body.home .nqhome-writers-strip__item:nth-child(even),
  body.front-page .nqhome-writers-strip__item:nth-child(even) {
    flex: 0 0 82% !important;
    display: grid !important;
    grid-template-columns: 72px minmax(0,1fr) !important;
    gap: 12px !important;
    align-items: center !important;
    padding: 13px !important;
    border: 1px solid #e4e1dc !important;
    border-radius: 15px !important;
    background: #fff !important;
    scroll-snap-align: start !important;
  }
  body.home .nqhome-writers-strip__portrait,
  body.front-page .nqhome-writers-strip__portrait {
    width: 72px !important;
    height: 72px !important;
  }
  body.home .nqhome-writers-strip__author,
  body.front-page .nqhome-writers-strip__author {
    font-size: 11px !important;
  }
  body.home .nqhome-writers-strip__copy h3,
  body.front-page .nqhome-writers-strip__copy h3 {
    margin-top: 3px !important;
    font-size: 14px !important;
    line-height: 1.45 !important;
    -webkit-line-clamp: 2 !important;
  }
  body.home .nqhome-writers-strip__meta,
  body.front-page .nqhome-writers-strip__meta {
    margin-top: 4px !important;
    font-size: 9px !important;
  }

 /* 7) Podcast and translations remain swipeable, with consistent card width. */
  body.home .nqhome-podcast-item,
  body.front-page .nqhome-podcast-item,
  body.home .nqhome-translation-card,
  body.front-page .nqhome-translation-card {
    flex-basis: 82% !important;
  }
  body.home .nqhome-podcast-title,
  body.front-page .nqhome-podcast-title,
  body.home .nqhome-translation-card__title,
  body.front-page .nqhome-translation-card__title {
    font-size: 13.5px !important;
    line-height: 1.48 !important;
  }
}

@media (max-width: 380px) {
  body.home .nqhome-understand .nqhome-politics-card,
  body.front-page .nqhome-understand .nqhome-politics-card,
  body.home .nqhome-writers-strip__item,
  body.front-page .nqhome-writers-strip__item {
    flex-basis: 88% !important;
  }

}

/* ========================================================================
 — Restore text-only Wash Sra cards on phones
   Keeps the rest of the  mobile experience unchanged.
   ======================================================================== */
@media (max-width: 760px) {
  body.home .nqws-home,
  body.front-page .nqws-home {
    margin: 28px 0 30px !important;
    padding: 0 !important;
    background: transparent !important;
  }

  body.home .nqws-home__head,
  body.front-page .nqws-home__head {
    margin-bottom: 12px !important;
    align-items: center !important;
  }

  body.home .nqws-home__slider,
  body.front-page .nqws-home__slider {
    margin-inline: calc(var(--nq-mobile-gutter) * -1) !important;
  }

  body.home .nqws-home__track,
  body.front-page .nqws-home__track {
    display: grid !important;
    grid-auto-flow: column !important;
    grid-auto-columns: calc((100% - 12px) / 2) !important;
    gap: 12px !important;
    padding: 3px var(--nq-mobile-gutter) 10px !important;
    overflow-x: auto !important;
    scroll-padding-inline: var(--nq-mobile-gutter) !important;
    scroll-snap-type: x mandatory !important;
    scrollbar-width: none !important;
  }
  body.home .nqws-home__track::-webkit-scrollbar,
  body.front-page .nqws-home__track::-webkit-scrollbar {
    display: none !important;
  }

  body.home .nqws-home__card,
  body.front-page .nqws-home__card {
    scroll-snap-align: start !important;
    scroll-snap-stop: always !important;
  }

  body.home .nqws-home__link,
  body.front-page .nqws-home__link,
  body.home .nqws-home__card.is-current .nqws-home__link,
  body.front-page .nqws-home__card.is-current .nqws-home__link {
    position: relative !important;
    display: grid !important;
    grid-template-rows: auto minmax(0, 1fr) auto !important;
    width: 100% !important;
    min-height: 342px !important;
    aspect-ratio: auto !important;
    overflow: hidden !important;
    border: 1px solid rgba(24,20,18,.14) !important;
    border-radius: 16px !important;
    background: #fff !important;
    color: #171311 !important;
    box-shadow: 0 8px 22px rgba(24,18,16,.065) !important;
    transform: none !important;
  }

 /* Text-only presentation: never show story images or image shading in the homepage cards. */
  body.home .nqws-home__story-media,
  body.front-page .nqws-home__story-media,
  body.home .nqws-home__story-shade,
  body.front-page .nqws-home__story-shade {
    display: none !important;
  }

  body.home .nqws-home__topline,
  body.front-page .nqws-home__topline {
    position: relative !important;
    inset: auto !important;
    z-index: auto !important;
    display: flex !important;
    align-items: center !important;
    min-height: 58px !important;
    padding: 13px 12px 11px !important;
    border: 0 !important;
    border-bottom: 1px solid rgba(24,20,18,.12) !important;
    background: transparent !important;
    color: #171311 !important;
  }

  body.home .nqws-home__number-wrap,
  body.front-page .nqws-home__number-wrap {
    gap: 3px !important;
  }

  body.home .nqws-home__number,
  body.front-page .nqws-home__number,
  body.home .nqws-home__card.is-current .nqws-home__number,
  body.front-page .nqws-home__card.is-current .nqws-home__number {
    min-width: 0 !important;
    color: #8F2033 !important;
    font-size: 30px !important;
    line-height: 1 !important;
    text-shadow: none !important;
  }

  body.home .nqws-home__total,
  body.front-page .nqws-home__total {
    display: none !important;
  }

  body.home .nqws-home__rule,
  body.front-page .nqws-home__rule {
    display: block !important;
    flex: 1 !important;
    height: 1px !important;
    margin-inline-start: 10px !important;
    background: linear-gradient(90deg, rgba(143,32,51,.08), rgba(143,32,51,.5)) !important;
  }

  body.home .nqws-home__content,
  body.front-page .nqws-home__content {
    position: relative !important;
    inset: auto !important;
    z-index: auto !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
    gap: 10px !important;
    min-height: 0 !important;
    padding: 16px 12px 13px !important;
    background: transparent !important;
    color: #171311 !important;
  }

  body.home .nqws-home__headline,
  body.front-page .nqws-home__headline {
    min-height: 0 !important;
    max-height: 7.25em !important;
    margin: 0 !important;
    color: #171311 !important;
    font-size: 14px !important;
    font-weight: 800 !important;
    line-height: 1.45 !important;
    text-shadow: none !important;
    display: -webkit-box !important;
    -webkit-box-orient: vertical !important;
    -webkit-line-clamp: 5 !important;
    overflow: hidden !important;
  }

  body.home .nqws-home__excerpt,
  body.front-page .nqws-home__excerpt,
  body.home .nqws-home__card.is-current .nqws-home__excerpt,
  body.front-page .nqws-home__card.is-current .nqws-home__excerpt {
    display: -webkit-box !important;
    min-height: 0 !important;
    max-height: 6.6em !important;
    margin: 0 !important;
    color: #625f5b !important;
    font-size: 11.4px !important;
    line-height: 1.65 !important;
    -webkit-box-orient: vertical !important;
    -webkit-line-clamp: 4 !important;
    overflow: hidden !important;
    opacity: 1 !important;
  }

  body.home .nqws-home__footer,
  body.front-page .nqws-home__footer,
  body.home .nqws-home__card.is-current .nqws-home__footer,
  body.front-page .nqws-home__card.is-current .nqws-home__footer {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    min-height: 43px !important;
    padding: 10px 12px !important;
    border-top: 1px solid rgba(24,20,18,.12) !important;
    color: #8F2033 !important;
    background: transparent !important;
    font-size: 10.5px !important;
  }

  body.home .nqws-home__card-arrow,
  body.front-page .nqws-home__card-arrow {
    color: #8F2033 !important;
  }

  body.home .nqws-home__controls,
  body.front-page .nqws-home__controls {
    margin-top: 3px !important;
    padding-inline: var(--nq-mobile-gutter) !important;
  }
}

@media (max-width: 380px) {
  body.home .nqws-home__track,
  body.front-page .nqws-home__track {
    grid-auto-columns: calc((100% - 10px) / 2) !important;
    gap: 10px !important;
  }
  body.home .nqws-home__link,
  body.front-page .nqws-home__link {
    min-height: 326px !important;
  }
  body.home .nqws-home__headline,
  body.front-page .nqws-home__headline {
    font-size: 13.2px !important;
  }
  body.home .nqws-home__excerpt,
  body.front-page .nqws-home__excerpt {
    font-size: 10.8px !important;
  }
}

/* ========================================================================
 — Editorial rail: one DOM on phone and desktop.
   The desktop text rail becomes the same four visual briefing cards on phone.
   ======================================================================== */
@media (max-width: 760px) {
  body.home .nqhome-understand .nqhome-politics-rail,
  body.front-page .nqhome-understand .nqhome-politics-rail {
    order: 2 !important;
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0,1fr)) !important;
    gap: 10px !important;
    margin: -2px 0 0 !important;
    padding: 0 !important;
    border: 0 !important;
  }

  body.home .nqhome-understand .nqhome-politics-rail__item,
  body.front-page .nqhome-understand .nqhome-politics-rail__item {
    display: grid !important;
    grid-template-columns: 58px minmax(0,1fr) !important;
    align-items: center !important;
    gap: 9px !important;
    min-width: 0 !important;
    min-height: 76px !important;
    padding: 8px !important;
    border: 1px solid #e4e1dc !important;
    border-radius: 14px !important;
    background: #fff !important;
    box-shadow: 0 4px 14px rgba(25,20,18,.035) !important;
  }

  body.home .nqhome-understand .nqhome-politics-rail__item + .nqhome-politics-rail__item,
  body.front-page .nqhome-understand .nqhome-politics-rail__item + .nqhome-politics-rail__item {
    border-top: 1px solid #e4e1dc !important;
  }

  body.home .nqhome-understand .nqhome-politics-rail__media,
  body.front-page .nqhome-understand .nqhome-politics-rail__media {
    display: block !important;
    width: 58px !important;
    height: 58px !important;
    overflow: hidden !important;
    border-radius: 10px !important;
    background: #ece9e4 !important;
  }

  body.home .nqhome-understand .nqhome-politics-rail__image,
  body.front-page .nqhome-understand .nqhome-politics-rail__image,
  body.home .nqhome-understand .nqhome-politics-rail__media img,
  body.front-page .nqhome-understand .nqhome-politics-rail__media img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
  }

  body.home .nqhome-understand .nqhome-politics-rail__copy,
  body.front-page .nqhome-understand .nqhome-politics-rail__copy {
    min-width: 0 !important;
  }

  body.home .nqhome-understand .nqhome-politics-rail__item h3,
  body.front-page .nqhome-understand .nqhome-politics-rail__item h3 {
    min-width: 0 !important;
    margin: 0 !important;
    font-family: "IBM Plex Sans Arabic", Tahoma, Arial, sans-serif !important;
    font-size: 12.5px !important;
    font-weight: 800 !important;
    line-height: 1.48 !important;
    text-align: right !important;
    display: -webkit-box !important;
    -webkit-box-orient: vertical !important;
    -webkit-line-clamp: 3 !important;
    overflow: hidden !important;
  }

  body.home .nqhome-understand .nqhome-politics-rail__item p,
  body.front-page .nqhome-understand .nqhome-politics-rail__item p,
  body.home .nqhome-understand .nqhome-politics-rail__item .nqhome-politics__byline,
  body.front-page .nqhome-understand .nqhome-politics-rail__item .nqhome-politics__byline {
    display: none !important;
  }

  body.home .nqhome-understand .nqhome-politics-main,
  body.front-page .nqhome-understand .nqhome-politics-main {
    order: 3 !important;
  }
}

@media (max-width: 380px) {
  body.home .nqhome-understand .nqhome-politics-rail,
  body.front-page .nqhome-understand .nqhome-politics-rail {
    gap: 8px !important;
  }
  body.home .nqhome-understand .nqhome-politics-rail__item,
  body.front-page .nqhome-understand .nqhome-politics-rail__item {
    grid-template-columns: 52px minmax(0,1fr) !important;
    gap: 7px !important;
    min-height: 70px !important;
    padding: 7px !important;
  }
  body.home .nqhome-understand .nqhome-politics-rail__media,
  body.front-page .nqhome-understand .nqhome-politics-rail__media {
    width: 52px !important;
    height: 52px !important;
  }
  body.home .nqhome-understand .nqhome-politics-rail__item h3,
  body.front-page .nqhome-understand .nqhome-politics-rail__item h3 {
    font-size: 11.7px !important;
  }
}

/* ========================================================================
 — Mobile video + podcast: two cards visible, swipeable carousel
   ======================================================================== */
@media (max-width: 760px) {
  body.home .nqhome-media-grid,
  body.front-page .nqhome-media-grid,
  body.home .nqhome-podcast-grid,
  body.front-page .nqhome-podcast-grid {
    display: flex !important;
    gap: 10px !important;
    margin-inline: calc(var(--nq-mobile-gutter) * -1) !important;
    padding: 0 var(--nq-mobile-gutter) 8px !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    scroll-snap-type: x mandatory !important;
    scroll-padding-inline: var(--nq-mobile-gutter) !important;
    scrollbar-width: none !important;
    -webkit-overflow-scrolling: touch !important;
  }

  body.home .nqhome-media-grid::-webkit-scrollbar,
  body.front-page .nqhome-media-grid::-webkit-scrollbar,
  body.home .nqhome-podcast-grid::-webkit-scrollbar,
  body.front-page .nqhome-podcast-grid::-webkit-scrollbar {
    display: none !important;
  }

  body.home .nqhome-media-card,
  body.front-page .nqhome-media-card,
  body.home .nqhome-podcast-item,
  body.front-page .nqhome-podcast-item,
  body.home .nqhome-podcast-item:nth-child(2n),
  body.front-page .nqhome-podcast-item:nth-child(2n),
  body.home .nqhome-podcast-item:nth-child(2n/**/+1),
  body.front-page .nqhome-podcast-item:nth-child(2n/**/+1) {
    display: block !important;
    flex: 0 0 calc((100% - 10px) / 2) !important;
    width: calc((100% - 10px) / 2) !important;
    min-width: 0 !important;
    scroll-snap-align: start !important;
    scroll-snap-stop: always !important;
  }

  body.home .nqhome-media-card:nth-child(n/**/+5),
  body.front-page .nqhome-media-card:nth-child(n/**/+5) {
    display: block !important;
  }

  body.home .nqhome-media-visual,
  body.front-page .nqhome-media-visual,
  body.home .nqhome-podcast-media,
  body.front-page .nqhome-podcast-media {
    aspect-ratio: 16 / 10 !important;
  }

  body.home .nqhome-media-card-title,
  body.front-page .nqhome-media-card-title,
  body.home .nqhome-podcast-title,
  body.front-page .nqhome-podcast-title {
    font-size: 12.5px !important;
    line-height: 1.45 !important;
  }

  body.home .nqhome-podcast-excerpt,
  body.front-page .nqhome-podcast-excerpt,
  body.home .nqhome-media-excerpt,
  body.front-page .nqhome-media-excerpt {
    display: none !important;
  }
}

@media (max-width: 380px) {
  body.home .nqhome-media-card,
  body.front-page .nqhome-media-card,
  body.home .nqhome-podcast-item,
  body.front-page .nqhome-podcast-item,
  body.home .nqhome-podcast-item:nth-child(2n),
  body.front-page .nqhome-podcast-item:nth-child(2n),
  body.home .nqhome-podcast-item:nth-child(2n/**/+1),
  body.front-page .nqhome-podcast-item:nth-child(2n/**/+1) {
    flex-basis: calc((100% - 8px) / 2) !important;
    width: calc((100% - 8px) / 2) !important;
  }

  body.home .nqhome-media-grid,
  body.front-page .nqhome-media-grid,
  body.home .nqhome-podcast-grid,
  body.front-page .nqhome-podcast-grid {
    gap: 8px !important;
  }
}

/* Homepage mobile context cards: image above copy so the headline never crowds the photo. */
@media (max-width: 760px) {
  body.home .nqhome-context-feed .post-card,
  body.front-page .nqhome-context-feed .post-card,
  body.home .nqhome-context-feed .post-card:nth-child(odd),
  body.front-page .nqhome-context-feed .post-card:nth-child(odd),
  body.home .nqhome-context-feed .post-card:nth-child(even),
  body.front-page .nqhome-context-feed .post-card:nth-child(even) {
    display: grid !important;
    grid-template-columns: minmax(0,1fr) !important;
    grid-template-rows: auto auto !important;
    gap: 0 !important;
    min-height: 0 !important;
    padding: 10px !important;
  }

  body.home .nqhome-context-feed .post-thumb,
  body.front-page .nqhome-context-feed .post-thumb {
    order: -1 !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    aspect-ratio: 16 / 10 !important;
    margin: 0 0 12px !important;
    border-radius: 12px !important;
  }

  body.home .nqhome-context-feed .post-body,
  body.front-page .nqhome-context-feed .post-body {
    width: 100% !important;
    min-width: 0 !important;
    padding: 0 2px 2px !important;
    overflow: visible !important;
  }

  body.home .nqhome-context-feed .post-excerpt,
  body.front-page .nqhome-context-feed .post-excerpt {
    display: none !important;
  }

  body.home .nqhome-context-feed .post-title,
  body.front-page .nqhome-context-feed .post-title {
    margin: 0 0 7px !important;
    -webkit-line-clamp: 3 !important;
  }

  body.home .nqhome-context-feed .post-foot,
  body.front-page .nqhome-context-feed .post-foot {
    margin-top: 8px !important;
  }
}
