/*
 * Nuqta mobile baseline.
 * Consolidated in v4.7.0 from the former mobile, editorial and shell layers.
 * Source order is preserved exactly to keep the established cascade stable.
 */

/*
 * Nuqta mobile core — layout primitives only.
 * Editorial and application-shell rules are consolidated below in source order.
 */
/*
 * Nuqta mobile experience
 * Mobile layout for phones and small tablets.
 */

@media (max-width: 760px) {


  html {
    overflow-x: hidden;

  }

  body {
    min-width: 320px;
    overflow-x: clip;

    font-size: 15px;
  }

  body.mobile-menu-open {
    overflow: hidden;
    touch-action: none;
  }

  a,
  button {
    -webkit-tap-highlight-color: transparent;
  }

 /* Header */
  .site-nav {
    position: sticky;
    top: 0;
    z-index: 1100;


  }


  .nav-hamburger {
    display: flex;


    border: 1px solid rgba(255,255,255,.15);


  }

  .nav-hamburger:hover,
  .nav-hamburger:focus-visible {
    background: rgba(255,255,255,.13);
  }

  .nav-hamburger span {
    width: 100%;
    height: 2px;
    background: #fff;
  }

  .mobile-menu-overlay {
    z-index: 1190;


  }

  .mobile-menu-drawer {


    z-index: 1200;


  }


  .mobile-menu-head {

    top: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;


    backdrop-filter: blur(14px);
  }

  .mobile-menu-brand {
    display: inline-flex;
    align-items: center;
  }

  .mobile-menu-brand img {
    width: auto;


    object-fit: contain;

  }

  .mobile-menu-close {
    display: grid;
    place-items: center;


    padding: 0;

    border-radius: 50%;


    font-weight: 400;
    line-height: 1;
  }


  .mob-item {
    min-height: 50px;
    margin: 0;
    padding: 13px 14px;
    border-bottom: 1px solid #efede9;
    border-radius: 12px;
    color: #181818;
    font-size: 15px;
    font-weight: 600;
  }

  .mob-item:active {
    background: #f3f1ed;
  }

 /* Calm promotional strip instead of the old animated banner. */
  .hk-cta-bar {

    border-bottom: 0;
    background: #161616;
    animation: none !important;
  }

  .hk-cta-bar::before {
    display: none;
  }

  .hk-cta-link {
    gap: 9px;

    padding: 8px var(--nq-mobile-gutter);
  }

  .hk-cta-books {
    display: none;
    animation: none !important;
  }

  .hk-cta-text {
    flex: 1;
    flex-direction: row;
    align-items: baseline;
    gap: 7px;
    overflow: hidden;
  }

  .hk-cta-text strong {
    color: #fff;
    font-family: "IBM Plex Sans Arabic", Arial, sans-serif;

    font-weight: 700;
  }

  .hk-cta-text span {
    overflow: hidden;
    color: rgba(255,255,255,.56);

    text-overflow: ellipsis;
  }

  .hk-cta-arrow {
    color: #fff;
    font-size: 15px;
  }

  .hk-cta-close {


    padding: 0;
    color: rgba(255,255,255,.58);
  }

 /* Hero */
  .site-hero {
    display: block !important;
    border-bottom: 0 !important;

  }

  .site-hero::after {
    display: none;
  }

  .hero-in {
    min-height: 0 !important;
    padding: 0 var(--nq-mobile-gutter) !important;
  }

  .hero-center {
    width: 100%;

    text-align: right;
  }

  .hero-eye {

    color: #797979;

    letter-spacing: .08em;
  }

  .hero-h1 {

    margin: 0;


    letter-spacing: -.035em;
    text-align: right;
  }

  .hero-divider {
    justify-content: flex-start;
    margin: 12px 0;
  }

  .hero-sub {
    max-width: 330px;
    margin: 0 0 18px;
    color: #5e5e5e;


    text-align: right;
  }

  .hero-btns {
    justify-content: flex-start;

    flex-wrap: wrap;
  }

  .btn-hp,
  .btn-hg {


    font-size: 12px;
  }

 /* Shortcut rail remains in document flow, so mobile and desktop keep the same order. */
  .nq-stories-bar {
    position: relative !important;
    top: auto !important;
    z-index: 2;
    padding: 12px 0 14px;
    border-block: 1px solid #ece9e4;
    background: #faf9f7;
  }

  .nq-stories-wrap {
    justify-content: flex-start;
    gap: 12px;
    padding-inline: var(--nq-mobile-gutter);
    scroll-snap-type: x proximity;
  }

  .nq-story {
    min-width: 58px;
    padding: 2px 0;
    scroll-snap-align: start;
  }

  .nq-tile-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    box-shadow: none;
  }

  .nq-tile-icon svg {
    width: 21px;
    height: 21px;
  }

  .nq-story-label {
    max-width: 60px;
    font-size: 10px;
  }

 /* Global mobile content rhythm */


  .page-wrap--after-ws {
    padding-top: 0;
  }

  .main-col,
  .main-col--full {
    min-width: 0;
  }

  .featured-post {
    display: flex;
    flex-direction: column;
    gap: 0;

    padding: 0 !important;
    overflow: hidden;


  }

  .featured-copy-link {
    order: 2;

  }

  .feat-img {
    order: 1;
    width: 100%;
    height: auto !important;

    border-radius: 0;
  }

  .feat-kicker {
    margin-bottom: 8px;
    font-size: 10px;
  }

  .feat-title {


    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
  }

  .feat-excerpt {

    color: #656565;


    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
  }

  .feat-byline {
    gap: 6px;

    line-height: 1.5;
  }

  .posts-grid {
    display: grid;
    grid-template-columns: 1fr;

  }

  .post-card,
  .post-card:nth-child(odd),
  .post-card:nth-child(even) {
    display: grid;

    align-items: stretch;


    margin: 0;


  }

  .post-body {
    gap: 5px;
    padding-block: 1px;
  }

  .post-tag {
    font-size: 9.5px;
  }

  .post-title {


    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
  }

  .post-excerpt {
    display: none !important;
  }

  .post-foot {
    margin-top: auto;
    gap: 5px;

  }

  .post-foot .av-sm {
    display: none;
  }

  .post-thumb {

    height: 100% !important;


  }

 /* Shared section headers */


  .nqws-home__title {
    margin: 0 !important;
    font-size: clamp(25px, 7.2vw, 31px) !important;
    font-weight: 800 !important;
    line-height: 1.18 !important;
    letter-spacing: -.025em !important;
  }

  .nqhome-media-more,
  .nqhome-podcast-more {
    flex: none;


    border-radius: 11px !important;

  }

 /* Wash Sra: Instagram-like swipe card */
  .nqws-home {
    margin: var(--nq-mobile-section) 0 44px !important;
    overflow: visible;
  }

  .nqws-home__head {
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 16px;
  }

  .nqws-home__date {
    min-height: 0;
    padding-inline-start: 10px;
    color: #777;
    font-size: 10.5px;
  }

  .nqws-home__slider {
    margin-inline: calc(var(--nq-mobile-gutter) * -1);
  }

  .nqws-home__track {
    grid-auto-columns: calc(100% - 54px) !important;
    gap: 12px;
    padding: 3px var(--nq-mobile-gutter) 11px;
    scroll-padding-inline: var(--nq-mobile-gutter);
    scroll-snap-type: x mandatory;
  }

  .nqws-home__card {
    scroll-snap-align: center;
    scroll-snap-stop: always;
  }

  .nqws-home__link {
    min-height: 0;
    aspect-ratio: 4 / 5;
    border-radius: 22px;
    box-shadow: 0 10px 28px rgba(28,22,20,.08);
    transform: none !important;
  }

  .nqws-home__topline {
    min-height: 64px;
    padding: 15px 17px 13px;
  }

  .nqws-home__number {
    min-width: 0;
    font-size: 36px;
  }

  .nqws-home__content {
    justify-content: center;
    gap: 14px;
    padding: 17px 18px 15px;
  }

  .nqws-home__headline {
    min-height: 0;
    max-height: 7.25em;
    font-size: clamp(18px, 5.1vw, 21px) !important;
    line-height: 1.45 !important;
  }

  .nqws-home__excerpt {
    min-height: 0;
    max-height: 6.5em;
    font-size: 13px !important;
    line-height: 1.62 !important;
    -webkit-line-clamp: 4;
  }

  .nqws-home__footer {
    min-height: 46px;
    padding: 11px 18px;
  }

  .nqws-home__controls {
    grid-template-columns: 1fr;
    margin-top: 7px;
    padding-inline: var(--nq-mobile-gutter);
  }

  .nqws-home__nav {
    display: none;
  }

  .nqws-home__dots {
    min-height: 22px;
    gap: 6px;
  }

 /* Video: one-card horizontal rail instead of a long vertical stack. */


  .nqhome-media-grid {
    display: flex !important;
    gap: 12px !important;
    margin-inline: calc(var(--nq-mobile-gutter) * -1);
    padding: 1px var(--nq-mobile-gutter) 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  .nqhome-media-grid::-webkit-scrollbar {
    display: none;
  }

  .nqhome-media-card {
    flex: 0 0 calc(100% - 48px);
    scroll-snap-align: center;


  }

  .nqhome-media-visual {
    aspect-ratio: 16 / 10;
  }


  .nqhome-media-card-title {
    font-size: 16px !important;
    line-height: 1.5 !important;
  }

  .nqhome-media-excerpt {
    font-size: 12px !important;
    line-height: 1.65 !important;
  }

 /* Podcast rail */


  .nqhome-podcast-grid {
    display: flex !important;
    gap: 12px !important;
    margin-inline: calc(var(--nq-mobile-gutter) * -1);
    padding: 0 var(--nq-mobile-gutter) 8px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  .nqhome-podcast-grid::-webkit-scrollbar {
    display: none;
  }

  .nqhome-podcast-item,
  .nqhome-podcast-item:nth-child(2n),
  .nqhome-podcast-item:nth-child(2n/**/+1) {
    flex: 0 0 calc(100% - 52px);
    min-width: 0;
    padding: 0 !important;
    border: 0 !important;
    scroll-snap-align: center;
  }

  .nqhome-podcast-media {
    border-radius: 18px;
  }

  .nqhome-podcast-title {
    min-height: 3em;
    font-size: 16px !important;
    line-height: 1.5 !important;
  }

  .nqhome-podcast-excerpt {
    font-size: 12px !important;
    line-height: 1.65 !important;
  }

 /* Video modal */
  .nvid-modal-box {
    width: calc(100% - 20px);
    max-height: calc(100dvh - 24px);
    overflow-y: auto;
    border-radius: 18px;
  }

  .nvid-modal-info {
    padding: 16px;
  }

  .nvid-modal-prev,
  .nvid-modal-next {
    top: 28%;
    width: 38px;
    height: 38px;
  }

 /* Footer */


}

@media (max-width: 370px) {


  .hero-h1 { font-size: 34px !important; }

  .post-card,
  .post-card:nth-child(odd),
  .post-card:nth-child(even) { grid-template-columns: minmax(0,1fr) 82px; }
  .post-thumb { width: 82px !important; }
}


/* ===== Editorial mobile layer ===== */

/* Nuqta mobile editorial components. */
/* ========================================================================
 — Mobile Redesign Pass
   Final phone-only layer. Loaded last on purpose so the mobile experience
   is consistent across homepage, category, archive, search, article and writers.
   ======================================================================== */
@media (max-width: 760px) {
  :root {

    --nq-mobile-card-gap: 11px;
    --nq-mobile-text: #111;
    --nq-mobile-muted: #6d6d6d;
    --nq-mobile-line: #e8e6e2;
  }

 /* ---------- Header ---------- */


  .site-logo img {

    width: auto;

  }
  .mobile-ws-toplink {
    min-height: 40px;
    padding: 0 17px;
    border-radius: 999px;
    background: #9b2235;
    color: #fff;
    font-size: 13px;
    font-weight: 800;
  }


 /* ---------- Global rhythm ---------- */
  .page-wrap,.cat-body,.arch-body,.srch-body,.cat-hero-in,.cat-sub-bar,.arch-hero-in,.arch-bar,.srch-hero-in,.srch-tabs-in{
    padding-inline: var(--nq-mobile-gutter) !important;
  }
  .two-col,
  .cat-grid,
  .arch-body,
  .srch-body {
    grid-template-columns: minmax(0,1fr) !important;
    gap: 0 !important;
  }
  .cat-side,
  .arch-sb,
  .srch-sb,
  .side-col { display: none !important; }

 /* ---------- Featured story: one calm full-width lead ---------- */
  .featured-post,
  .cat-featured {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    min-height: 0 !important;
    margin: 18px 0 26px !important;
    padding: 0 !important;
    overflow: hidden !important;
    border: 0 !important;
    border-radius: 18px !important;
    background: #f7f6f3 !important;
    box-shadow: none !important;
  }
  .feat-img,
  .cat-feat-img {
    order: -1 !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    aspect-ratio: 16 / 9 !important;
    margin: 0 !important;
    border-radius: 0 !important;
    overflow: hidden !important;
  }
  .feat-img img,
  .feat-img-ph,
  .cat-feat-img img,
  .cat-feat-img > div {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
  }
  .featured-copy-link,
  .cat-feat-body {
    padding: 17px 16px 19px !important;
  }
  .feat-title,
  .cat-feat-title {
    margin-bottom: 8px !important;
    font-size: clamp(22px, 6.3vw, 28px) !important;
    line-height: 1.36 !important;
    -webkit-line-clamp: 3 !important;
  }
  .feat-excerpt,
  .cat-feat-exc {
    margin-bottom: 12px !important;
    font-size: 12.5px !important;
    line-height: 1.72 !important;
    -webkit-line-clamp: 3 !important;
  }
  .feat-byline,
  .cat-feat-foot {
    font-size: 10.5px !important;
  }

 /* ---------- Editorial grids: two clean newspaper cards per row ---------- */
  .posts-grid,
  .cat-list,
  .arch-list,
  #srchResults {
    display: grid !important;


    width: 100% !important;
  }

  .post-card,
  .post-card:nth-child(odd),
  .post-card:nth-child(even),
  .cat-item,
  .arch-item,
  .srch-item {

    flex-direction: column;

    gap: 0;


    transform: none !important;
  }

  .post-card:hover,
  .cat-item:hover,
  .arch-item:hover,
  .srch-item:hover {
    margin: 0 !important;
    padding: 0 0 14px !important;
    background: transparent !important;
    opacity: 1 !important;
    transform: none !important;
  }

 /* This explicitly replaces the old narrow portrait thumbnail rule. */
  .post-thumb,
  .cat-item-img,
  .arch-item-img,
  .srch-item-img {


    flex: none;


  }
  .post-thumb img,
  .post-thumb .thumb-ph,
  .cat-item-img img,
  .cat-item-img > div,
  .arch-item-img img,
  .arch-item-img-ph,
  .srch-item-img img,
  .srch-item-img > div {


    display: block !important;


  }

  .post-body,
  .cat-item-body,
  .arch-item > div:first-child,
  .srch-item-body {

    flex-direction: column;
    gap: 0;


  }

  .post-tag,
  .cat-item-tag,
  .arch-item-cat,
  .srch-item-cat {

    color: #555 !important;

    font-weight: 700 !important;

    letter-spacing: 0 !important;
    text-transform: none !important;
  }

  .post-title,
  .cat-item-title,
  .arch-item-title,
  .srch-item-title {


    color: var(--nq-mobile-text) !important;
    font-family: "IBM Plex Sans Arabic", Arial, sans-serif !important;


  }

  .post-excerpt,
  .cat-item-exc,
  .arch-item-exc,
  .srch-item-exc {


    color: var(--nq-mobile-muted) !important;


  }

 /* Only the useful public read count remains in compact cards. */
  .post-foot,
  .cat-item-meta,
  .arch-item-meta,
  .srch-item-meta {
    display: flex !important;
    align-items: center !important;


    color: #888 !important;


  }
  .post-foot > *:not(.nuqta-reads),
  .cat-item-meta > *:not(.nuqta-reads),
  .arch-item-meta > *:not(.nuqta-reads),
  .srch-item-meta > *:not(.nuqta-reads) {
    display: none !important;
  }
  .post-foot > .nuqta-reads,
  .cat-item-meta > .nuqta-reads,
  .arch-item-meta > .nuqta-reads,
  .srch-item-meta > .nuqta-reads {
    display: inline-flex !important;
  }

 /* ---------- Category / archive / search headings ---------- */
  .cat-hero,
  .arch-hero,
  .srch-hero {
    padding-block: 30px 24px !important;
  }
  .cat-title,
  .arch-title,
  .srch-title {
    font-size: clamp(28px, 8vw, 36px) !important;
    line-height: 1.22 !important;
  }
  .cat-desc,
  .arch-desc,
  .srch-count {
    font-size: 12px !important;
    line-height: 1.7 !important;
  }
  .cat-divider,
  .srch-results-h {
    margin: 28px 0 18px !important;
    padding-top: 20px !important;
  }
  .cat-divider h2,
  .srch-results-h h2 { font-size: 17px !important; }

 /* ---------- Single article ---------- */
  .nqs-hero-in {
    max-width: none !important;
    padding: 38px 16px 24px !important;
    text-align: right !important;
  }
  .nqs-hero-cat {
    margin-bottom: 15px !important;
    padding: 5px 11px !important;
    font-size: 9.5px !important;
    letter-spacing: .06em !important;
  }
  .nqs-hero-title {
    margin-bottom: 13px !important;


    text-align: right !important;
  }
  .nqs-hero-sub {
    max-width: none !important;
    margin: 0 0 18px !important;

    font-style: normal !important;

    text-align: right !important;
  }
  .nqs-hero-meta {
    justify-content: flex-start !important;
    gap: 10px 14px !important;
    padding-bottom: 0 !important;
  }
  .nqs-hero-av { width: 34px !important; height: 34px !important; }
  .nqs-hero-aname,
  .nqs-hero-dt-v { font-size: 11px !important; }
  .nqs-hero-aspec,
  .nqs-hero-dt-l { font-size: 9px !important; }
  .nqs-hero-sep { height: 22px !important; }

  .nqs-layout {
    display: block !important;
    max-width: none !important;
    padding: 22px 16px 54px !important;
  }
  .nqs-toolbar {
    position: static !important;
    display: flex !important;
    flex-direction: row !important;
    justify-content: flex-start !important;
    gap: 8px !important;
    margin: 0 0 22px !important;
    padding: 0 0 14px !important;
    overflow-x: auto !important;
    border-bottom: 1px solid #eceae6 !important;
    scrollbar-width: none !important;
  }
  .nqs-toolbar::-webkit-scrollbar { display: none !important; }
  .nqs-tool { flex: 0 0 38px !important; width: 38px !important; height: 38px !important; }
  .nqs-tool-div { display: none !important; }
  .nqs-body { width: 100% !important; }
  .nqs-lead {
    margin: 0 0 24px !important;
    padding: 0 12px 0 0 !important;
    border-right-width: 2px !important;
    font-size: 16px !important;
    font-style: normal !important;
    line-height: 1.9 !important;
  }

  .nqs-content p { margin-bottom: 1.4rem !important; }
  .nqs-content h2 {
    margin: 2rem 0 .8rem !important;
    font-size: 21px !important;
    line-height: 1.45 !important;
  }
  .nqs-content h3 { font-size: 18px !important; }
  .nqs-content figure { margin: 1.55rem 0 !important; }
  .nqs-content figure img { border-radius: 1px !important; }
  .nqs-feat-img,
  .nqs-feat-img img { border-radius: 10px !important; }
  .nqs-sidebar { display: none !important; }
  .nqs-author-card {
    display: grid !important;
    grid-template-columns: 64px minmax(0,1fr) !important;
    gap: 13px !important;
    padding: 15px !important;
    border-radius: 14px !important;
  }
  .nqs-auth-av { width: 64px !important; height: 64px !important; }
  .nqs-auth-btn { grid-column: 1 / -1 !important; width: 100% !important; text-align: center !important; }
  .nqs-share {
    gap: 8px !important;
    padding: 14px !important;
    overflow-x: auto !important;
    border-radius: 12px !important;
  }
  .nqs-share-lbl { display: none !important; }
  .nqs-share-btn { white-space: nowrap !important; }
  .nqs-nav { grid-template-columns: 1fr !important; gap: 9px !important; }
  .nqs-nav-a { padding: 14px !important; border-radius: 12px !important; }
  .nqs-related { margin-top: 34px !important; }
  .nqs-related-grid {
    grid-template-columns: repeat(2,minmax(0,1fr)) !important;
    gap: 12px !important;
  }
  .nqs-related-card { border: 0 !important; border-radius: 0 !important; }
  .nqs-related-thumb { height: auto !important; aspect-ratio: 4 / 3 !important; border-radius: 10px !important; }
  .nqs-related-body { padding: 9px 0 0 !important; }
  .nqs-related-ttl { font-size: 13px !important; line-height: 1.5 !important; }
  .nqs-related-meta { display: none !important; }

 /* ---------- Writers ---------- */
  .nqw-wrap { padding-inline: var(--nq-mobile-gutter) !important; }
  .nqw-feature-hero {
    margin-bottom: 28px !important;


  }


  .nqw-section-head { align-items: center !important; margin-bottom: 14px !important; }
  .nqw-section-head h2 { font-size: 23px !important; }
  .nqw-writers {
    grid-template-columns: repeat(2,minmax(0,1fr)) !important;
    gap: 12px !important;
  }
  .nqw-writer {
    display: flex !important;
    flex-direction: column !important;
    min-width: 0 !important;
    border-radius: 14px !important;
    overflow: hidden !important;
  }
  .nqw-writer-media {

    aspect-ratio: 1 / 1 !important;
  }
  .nqw-writer-body { padding: 12px !important; gap: 5px !important; }
  .nqw-writer h3 { font-size: 15px !important; line-height: 1.4 !important; }
  .nqw-writer-specialty { font-size: 9.5px !important; }
  .nqw-writer-latest { display: none !important; }
  .nqw-writer-foot { padding-top: 9px !important; font-size: 9px !important; }
  .nqw-articles {
    grid-template-columns: repeat(2,minmax(0,1fr)) !important;
    gap: 14px 11px !important;
  }
  .nqw-article {
    display: flex !important;
    flex-direction: column !important;
    min-height: 0 !important;
    border: 0 !important;
    background: transparent !important;
  }
  .nqw-article-media {
    width: 100% !important;
    aspect-ratio: 4 / 3 !important;
    border-radius: 10px !important;
  }

  .nqw-article h3 { font-size: 13.5px !important; line-height: 1.5 !important; }
  .nqw-sidebar { display: none !important; }

 /* ---------- Section spacing ---------- */
  .sec-hd { padding: 18px 0 13px !important; }
  .sec-hd-t { font-size: 23px !important; }
  .sec-hd-m { padding: 8px 10px !important; font-size: 10px !important; }

}

@media (max-width: 370px) {
  :root {
    --nq-mobile-gutter: 12px;
    --nq-mobile-card-gap: 8px;
  }
  .post-title,
  .cat-item-title,
  .arch-item-title,
  .srch-item-title { font-size: 13.2px; }
  .post-excerpt,
  .cat-item-exc,
  .arch-item-exc,
  .srch-item-exc { font-size: 10.2px; -webkit-line-clamp: 2; }
  .post-thumb,
  .cat-item-img,
  .arch-item-img,
  .srch-item-img { border-radius: 9px; }
  .nqw-writers,
  .nqw-articles { gap: 10px 8px !important; }
}

/* ========================================================================
 — Mobile stability + homepage media balance
   Hardens two-column editorial cards against portrait stretching/overflow and
   aligns the Video + Mowja sections with the visual scale of the sections above.
   ======================================================================== */
@media (max-width: 760px) {
 /* --- Editorial cards: deterministic geometry, no content leakage --- */
  .posts-grid,
  .cat-list,
  .arch-list,
  #srchResults {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    grid-auto-rows: auto !important;
    gap: 22px 10px !important;
    align-items: start !important;
  }

  .post-card,
  .post-card:nth-child(odd),
  .post-card:nth-child(even),
  .cat-item,
  .arch-item,
  .srch-item {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    grid-template-rows: auto auto !important;
    align-content: start !important;
    align-items: start !important;
    min-width: 0 !important;
    min-height: 0 !important;
    width: 100% !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 0 12px !important;
    overflow: hidden !important;
    border: 0 !important;
    border-bottom: 1px solid #e3e1dd !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
  }

  .post-thumb,
  .cat-item-img,
  .arch-item-img,
  .srch-item-img {
    order: -1 !important;
    position: relative !important;
    display: block !important;
    width: 100% !important;
    height: clamp(106px, 29vw, 138px) !important;
    min-height: 0 !important;
    max-height: none !important;
    aspect-ratio: auto !important;
    margin: 0 0 9px !important;
    overflow: hidden !important;
    border-radius: 9px !important;
    background: #f1f0ed !important;
  }

  .post-thumb img,
  .post-thumb .thumb-ph,
  .cat-item-img img,
  .cat-item-img > div,
  .arch-item-img img,
  .arch-item-img-ph,
  .srch-item-img img,
  .srch-item-img > div {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    min-width: 100% !important;
    min-height: 100% !important;
    max-width: none !important;
    max-height: none !important;
    object-fit: cover !important;
    object-position: center center !important;
    margin: 0 !important;
    padding: 0 !important;
    border-radius: 0 !important;
    transform: none !important;
  }

  .post-body,
  .cat-item-body,
  .arch-item > div:first-child,
  .srch-item-body {
    position: relative !important;
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
  }

  .post-tag,
  .cat-item-tag,
  .arch-item-cat,
  .srch-item-cat {
    display: block !important;
    margin: 0 0 4px !important;
    font-size: 9.5px !important;
    line-height: 1.35 !important;
  }

  .post-title,
  .cat-item-title,
  .arch-item-title,
  .srch-item-title {
    display: -webkit-box !important;
    margin: 0 0 5px !important;
    max-height: 4.35em !important;
    overflow: hidden !important;
    font-size: clamp(13.4px, 3.75vw, 15.2px) !important;
    font-weight: 800 !important;
    line-height: 1.45 !important;
    letter-spacing: -.018em !important;
    -webkit-box-orient: vertical !important;
    -webkit-line-clamp: 3 !important;
  }

  .post-excerpt,
  .cat-item-exc,
  .arch-item-exc,
  .srch-item-exc {
    display: -webkit-box !important;
    margin: 0 !important;
    max-height: 3.2em !important;
    overflow: hidden !important;
    font-size: 10.4px !important;
    line-height: 1.6 !important;
    -webkit-box-orient: vertical !important;
    -webkit-line-clamp: 2 !important;
  }

  .post-foot,
  .cat-item-meta,
  .arch-item-meta,
  .srch-item-meta {
    min-height: 15px !important;
    margin-top: 6px !important;
    font-size: 9px !important;
    line-height: 1.3 !important;
  }

 /* --- Video and Mowja: one shared visual scale on the homepage --- */
  .nqhome-media-section {
    margin: 34px 0 36px;
  }
  .nqhome-media-head,
  .nqhome-podcast-head {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 15px;
  }
  .nqhome-media-title,
  .nqhome-podcast-heading,
  .nqhome-translations__title {
    margin: 0;
    font-family: "IBM Plex Sans Arabic", Tahoma, Arial, sans-serif;

    font-weight: 900;

    letter-spacing: -.035em;
  }
  .nqhome-media-more,
  .nqhome-podcast-more {
    min-height: 32px;
    padding: 0 10px;
    font-size: 10.5px;
    font-weight: 700;
    line-height: 1;
  }

  .nqhome-media-grid,
  .nqhome-podcast-grid {
    gap: 10px;
    scroll-padding-inline: var(--nq-mobile-gutter);
  }
  .nqhome-media-card,
  .nqhome-podcast-item,
  .nqhome-podcast-item:nth-child(2n),
  .nqhome-podcast-item:nth-child(2n/**/+1) {
    flex: 0 0 calc(82% - 2px);
    scroll-snap-align: start;
  }

  .nqhome-media-card {
    border-radius: 14px;
    box-shadow: 0 6px 18px rgba(0,0,0,.055);
  }
  .nqhome-media-visual,
  .nqhome-podcast-media {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    border-radius: 13px;
    overflow: hidden;
  }
  .nqhome-media-play {
    left: 10px;
    bottom: 10px;
    inset: auto auto 10px 10px;
  }
  .nqhome-media-play span {
    width: 42px;
    height: 42px;
    background: rgba(255,255,255,.74);
    border: 1px solid rgba(255,255,255,.56);
    backdrop-filter: blur(7px);
    -webkit-backdrop-filter: blur(7px);
  }
  .nqhome-media-play svg {
    width: 15px;
    height: 18px;
    fill: rgba(17, 17, 17, 0.72);
    transform: translateX(1px);
  }
  .nqhome-media-duration {
    left: 58px;
    bottom: 26px;
    font-size: 11px;
  }
  .nqhome-media-body {
    min-height: 0;

  }
  .nqhome-media-kicker,
  .nqhome-podcast-cat {
    margin-bottom: 5px;
    font-size: 9.5px;
    line-height: 1.35;
  }
  .nqhome-media-card-title,
  .nqhome-podcast-title {
    min-height: 0 !important;
    max-height: 3em !important;
    font-size: 14px !important;
    font-weight: 750 !important;
    line-height: 1.5 !important;
    -webkit-line-clamp: 2 !important;
  }
  .nqhome-media-card-title {
    max-height: 4.5em !important;
    -webkit-line-clamp: 3 !important;
  }
  .nqhome-media-excerpt,
  .nqhome-podcast-excerpt {
    min-height: 0 !important;
    max-height: 3.25em !important;
    margin-top: 6px !important;
    font-size: 10.7px !important;
    line-height: 1.62 !important;
    -webkit-line-clamp: 2 !important;
  }

  .nqhome-podcast-showcase {
    margin: 34px calc(var(--nq-mobile-gutter) * -1) 36px;

  }
  .nqhome-podcast-media {
    margin-bottom: 10px !important;
  }
  .nqhome-podcast-audio {
    top: 9px;
    right: 9px;
    width: 36px;
    height: 36px;
    background: rgba(255,255,255,.16);
    color: rgba(255,255,255,.88);
    border-color: rgba(255,255,255,.38);
  }
  .nqhome-podcast-audio svg {
    width: 17px;
    height: 17px;
    fill: currentColor;
  }
  .nqhome-podcast-footer {
    padding-top: 10px;
    gap: 6px;
    font-size: 9.5px;
  }
  .nqhome-podcast-footer-icon {
    width: 14px;
    height: 14px;
  }
}

@media (max-width: 370px) {
  .post-thumb,
  .cat-item-img,
  .arch-item-img,
  .srch-item-img {
    height: 104px !important;
  }
  .nqhome-media-card,
  .nqhome-podcast-item,
  .nqhome-podcast-item:nth-child(2n),
  .nqhome-podcast-item:nth-child(2n/**/+1) {
    flex-basis: 86% !important;
  }
}


/* ===== Application shell mobile layer ===== */

/* Nuqta mobile application shell: drawer, tab bar, header, topic rail and footer. */
/* ========================================================================
 — Mobile footer + navigation cleanup
   - compact balanced footer
   - white footer logo
   - dark, readable drawer
   - removes legacy top shortcut icon strip
   ======================================================================== */
@media (max-width: 760px) {
 /* The old three shortcut icons are intentionally retired. */
  .nq-stories-bar { display: none; }

 /* Drawer: make it part of the black Nuqta identity, not a white utility panel. */
  .mobile-menu-drawer {

    background: #0b0b0b;
    color: #fff;

    box-shadow: -20px 0 70px rgba(0,0,0,.42);
  }
  .mobile-menu-head {


    background: rgba(11,11,11,.97);
    border-bottom: 1px solid rgba(255,255,255,.11);
  }
  .mobile-menu-brand img {

    max-width: 132px;
    filter: none;
  }
  .mobile-menu-close {


    border: 1px solid rgba(255,255,255,.16);
    background: rgba(255,255,255,.07);
    color: #fff;

  }
  .mobile-menu-inner {
    gap: 3px;

  }
  .mob-item,
  .mob-item.is-wash-sra,
  .mob-item.is-mowja,
  .mob-item.is-plus,
  .mob-item.is-writers,
  .mob-item.is-stories,
  .mob-item.is-translations,
  .mob-item.is-contact {
    display: flex;
    align-items: center;

    margin: 0;

    border: 0;
    border-bottom: 1px solid rgba(255,255,255,.08);

    background: transparent;
    color: rgba(255,255,255,.82);

    font-weight: 700;
    line-height: 1.35;
  }
  .mob-item:hover,
  .mob-item:focus-visible,
  .mob-item:active {
    background: rgba(255,255,255,.08);
    color: #fff;
  }
  .mob-item.active {
    background: #8f2033;
    color: #fff;
    border-bottom-color: transparent;
  }
  .mob-item.is-wash-sra:not(.active) {
    color: #fff;
  }

 /* Footer: compact, balanced and fully readable on phones. */
  .site-footer {


    background: #101010;
    border-top: 0;
    color: #fff;
    overflow: hidden;
  }
  .footer-inner {
    width: 100%;

    
    display: grid;

    
    align-items: start;
  }
  .footer-inner > div:first-child {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-width: 0;
  }
  .f-logo {

    
    display: flex;

  }
  .f-logo img {
    width: auto;

    
    object-fit: contain;
    filter: none;
  }
  .f-desc {

    
    color: rgba(255,255,255,.64);

    
    text-align: right;
  }
  .f-social {
    display: flex;

    
    margin: 0;
  }
  .f-soc {

    
    border: 1px solid rgba(255,255,255,.12);
    background: rgba(255,255,255,.07);
    color: #fff;
    font-size: 13px;
  }
  .footer-col {
    min-width: 0;
  }
  .footer-col h4 {

    color: #fff;

    line-height: 1.35;
  }
  .footer-col ul {
    gap: 7px;
  }
  .footer-col ul a {
    display: inline-block;
    color: rgba(255,255,255,.58);

    
  }
  .footer-col:nth-child(4) {
    grid-column: 1 / -1;
    padding-top: 2px;
    border-top: 1px solid rgba(255,255,255,.08);
  }
  .footer-col:nth-child(4) ul {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 7px 16px;
  }
  .footer-bot {
    width: 100%;

    

    border-top: 1px solid rgba(255,255,255,.08);
    color: rgba(255,255,255,.36);

    
    text-align: right;
  }
}

/* — rose identity on mobile homepage + editorial/article surfaces */
@media(max-width:760px){
  .hero-eye{color:#8F2033!important;}
  .hero-eye::before,.hero-eye::after{background:#F0C7D4!important;}
  .hero-h1 .word-accent{color:#8F2033!important;}
  .hero-h1 .word-accent::after{background:#8F2033!important;}
  .feat-kicker{background:#FAEEF2!important;color:#8F2033!important;border-color:rgba(143,32,51,.2)!important;}
  .post-tag,.cat-item-tag,.arch-item-cat,.srch-item-cat{color:#8F2033!important;}
  .nqs-hero-cat{color:#F0C7D4!important;border-color:rgba(240,199,212,.32)!important;background:rgba(143,32,51,.17)!important;}
  .nqs-lead{border-right-color:#8F2033!important;}
}

/* ========================================================================
 — Mobile app polish
   A final, authoritative phone layer: compact app bar, bottom navigation,
   bottom-sheet menu, tighter editorial rhythm and native-feeling touch UI.
   ======================================================================== */
@media (max-width: 760px) {
  :root {
    --nq-mobile-gutter: 14px;
    --nq-mobile-radius: 16px;
    --nq-mobile-section: 32px;
    --nq-mobile-tabbar-h: 64px;
    --nq-mobile-surface: #fff;
    --nq-mobile-bg: #f6f4ef;
  }

  html {  }
  body {
    background: var(--nq-mobile-bg) !important;
    padding-bottom: calc(var(--nq-mobile-tabbar-h) + env(safe-area-inset-bottom)) !important;
    overscroll-behavior-y: none;
  }
  a, button, input, textarea, select { touch-action: manipulation; }

 /* Compact app bar. Primary destinations move to the bottom tab bar. */
  .site-nav {

    

    

    

  }
  .nav-inner {

    

    
  }
  .site-logo { margin-inline-start: auto; }
  .site-logo img {   }
  .mobile-ws-toplink { display: none; }
  .nav-hamburger {

    

    

    border-color: rgba(255,255,255,.11);
  }
  .nav-hamburger:active {  }

 /* Promotion becomes a small notification strip, not a second header. */
  .hk-cta-bar { min-height: 36px; }
  .hk-cta-link { min-height: 36px; padding-block: 6px; }
  .hk-cta-text strong { font-size: 11px; }
  .hk-cta-text span { font-size: 9px; }
  .hk-cta-close { min-width: 36px; min-height: 36px; }

 /* Bottom-sheet menu. */
  .mobile-menu-overlay {
    background: rgba(0,0,0,.52);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
  }
  .mobile-menu-drawer {
    top: auto;
    right: 8px;
    bottom: 0;
    left: 8px;
    width: auto;
    height: auto;
    max-height: min(78dvh, 650px);
    border-radius: 26px 26px 0 0;
    transform: translateY(calc(100% + 16px));
    transition: transform .28s cubic-bezier(.2,.8,.2,1);
    overflow: hidden;
  }
  .mobile-menu-drawer.open {
    right: 8px;
    left: 8px;
    transform: translateY(0);
  }
  .mobile-menu-head {
    position: sticky;
    min-height: 66px;
    padding: 20px 15px 9px;
  }
  .mobile-menu-head::before {
    content: "";
    position: absolute;
    top: 8px;
    left: 50%;
    width: 42px;
    height: 4px;
    border-radius: 999px;
    background: rgba(255,255,255,.22);
    transform: translateX(-50%);
  }
  .mobile-menu-brand img { height: 29px; }
  .mobile-menu-close { width: 36px; height: 36px; font-size: 24px; }
  .mobile-menu-inner {
    max-height: calc(78dvh - 66px);
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 8px 12px calc(20px + env(safe-area-inset-bottom));
  }
  .mob-item,
  .mob-item.is-wash-sra,
  .mob-item.is-mowja,
  .mob-item.is-plus,
  .mob-item.is-writers,
  .mob-item.is-stories,
  .mob-item.is-translations,
  .mob-item.is-contact {
    min-height: 48px;
    padding: 11px 13px;
    border-radius: 12px;
    font-size: 14px;
  }

 /* App-like bottom navigation. */
  .nq-mobile-tabbar {
    position: fixed;
    right: 8px;
    bottom: calc(7px + env(safe-area-inset-bottom));
    left: 8px;
    z-index: 1140;
    display: grid;
    grid-template-columns: repeat(5,minmax(0,1fr));
    min-height: 58px;
    padding: 5px 6px;
    border: 1px solid rgba(20,20,20,.09);
    border-radius: 20px;
    background: rgba(255,255,255,.94);
    box-shadow: 0 12px 35px rgba(0,0,0,.14);
    backdrop-filter: saturate(1.25) blur(20px);
    -webkit-backdrop-filter: saturate(1.25) blur(20px);
    direction: rtl;
  }
  .nq-mobile-tab {
    appearance: none;
    -webkit-appearance: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    min-width: 0;
    min-height: 48px;
    padding: 3px 2px;
    border: 0;
    border-radius: 14px;
    background: transparent;
    color: #77736d;
    font-family: "IBM Plex Sans Arabic",Tahoma,Arial,sans-serif;
    font-size: 9px;
    font-weight: 700;
    line-height: 1.15;
    text-decoration: none;
    transition: background-color .16s ease,color .16s ease,transform .12s ease;
  }
  .nq-mobile-tab:active { transform: scale(.94); background: #f4f1ec; }
  .nq-mobile-tab__icon {
    display: grid;
    place-items: center;
    width: 24px;
    height: 24px;
    border-radius: 9px;
  }
  .nq-mobile-tab__icon svg { width: 20px; height: 20px; fill: currentColor; }
  .nq-mobile-tab.is-active { color: #8F2033; background: #FAEEF2; }
  .nq-mobile-tab.is-active .nq-mobile-tab__icon { color: #8F2033; }

 /* Home hero: more like an app's editorial masthead, less like desktop. */
  .site-hero { background: #fff !important; }
  .hero-center { padding: 22px 0 20px !important; }
  .hero-eye { margin-bottom: 6px !important; font-size: 9px !important; }
  .hero-h1 { max-width: 330px !important; font-size: clamp(31px,9vw,39px) !important; line-height: 1.13 !important; }
  .hero-sub { margin-bottom: 14px !important; font-size: 12.5px !important; line-height: 1.68 !important; }
  .hero-btns { gap: 7px !important; }
  .btn-hp,.btn-hg { min-height: 40px !important; padding: 9px 14px !important; border-radius: 12px !important; }

 /* Editorial surfaces and cards. */
  .page-wrap{ padding-inline: var(--nq-mobile-gutter) !important; }
  .featured-post {
    margin: 14px 0 12px !important;
    border: 0 !important;
    border-radius: 18px !important;
    background: #fff !important;
    box-shadow: 0 7px 22px rgba(30,25,20,.07) !important;
  }
  .featured-copy-link { padding: 16px 15px 17px !important; }
  .feat-img { aspect-ratio: 16/9 !important; }
  .feat-title { margin-bottom: 8px !important; font-size: clamp(21px,6.2vw,26px) !important; line-height: 1.34 !important; }
  .feat-excerpt { margin-bottom: 11px !important; font-size: 12.3px !important; line-height: 1.7 !important; }
  .feat-byline { font-size: 9.5px !important; }

  .posts-grid { gap: 8px !important; }
  .post-card,.post-card:nth-child(odd),.post-card:nth-child(even) {
    grid-template-columns: minmax(0,1fr) 88px !important;
    gap: 11px !important;
    min-height: 110px !important;
    padding: 11px !important;
    border: 0 !important;
    border-radius: 15px !important;
    background: #fff !important;
    box-shadow: 0 1px 0 rgba(20,20,20,.055) !important;
    transition: transform .12s ease,background-color .12s ease !important;
  }
  .post-card:active { transform: scale(.985); background:#fbfaf8 !important; }
  .post-thumb { width: 88px !important; min-height: 88px !important; border-radius: 12px !important; }
  .post-title { font-size: 14.5px !important; line-height: 1.45 !important; }
  .post-foot { font-size: 8.6px !important; }

 /* Shared section rhythm and native horizontal rails. */
  .nqhome-media-section,
  .nqhome-podcast-showcase,
  .nqhome-translations { margin-top: 28px !important; margin-bottom: 30px !important; }
  .nqhome-media-head,.nqhome-podcast-head,.nqhome-translations__head { margin-bottom: 12px !important; }
  .nqhome-media-title,.nqhome-podcast-heading,.nqhome-translations__title { font-size: clamp(23px,6.8vw,28px) !important; line-height: 1.12 !important; }
  .nqhome-media-more,.nqhome-podcast-more,.nqhome-translations__more {
    min-height: 34px !important;
    padding-inline: 11px !important;
    border-radius: 11px !important;
    font-size: 10px !important;
  }
  .nqhome-media-grid,.nqhome-podcast-grid,.nqhome-translations__grid {
    gap: 10px !important;
    margin-inline: calc(var(--nq-mobile-gutter) * -1) !important;
    padding-inline: var(--nq-mobile-gutter) !important;
    padding-bottom: 8px !important;
    scroll-padding-inline: var(--nq-mobile-gutter) !important;
    scroll-snap-type: x mandatory !important;
    -webkit-overflow-scrolling: touch;
  }
  .nqhome-media-card,
  .nqhome-podcast-item,
  .nqhome-podcast-item:nth-child(2n),
  .nqhome-podcast-item:nth-child(2n/**/+1),
  .nqhome-translation-card {
    flex: 0 0 84% !important;
    scroll-snap-align: start !important;
    scroll-snap-stop: always;
  }
  .nqhome-media-card,.nqhome-podcast-item { border-radius: 16px !important; }
  .nqhome-media-visual,.nqhome-podcast-media,.nqhome-translation-card__media { border-radius: 15px !important; aspect-ratio: 16/9 !important; }
  .nqhome-media-body { padding: 12px 13px 14px !important; }
  .nqhome-media-card-title,.nqhome-podcast-title,.nqhome-translation-card__title { font-size: 13.5px !important; line-height: 1.48 !important; }

 /* Mowja full-width block feels like an app module. */
  .nqhome-podcast-showcase {
    margin-inline: calc(var(--nq-mobile-gutter) * -1) !important;
    padding: 20px var(--nq-mobile-gutter) 22px !important;
    border-radius: 0 !important;
  }

 /* Nuqta Plus page: compact hero + two-column video discovery grid. */
  .nqv-page { padding-top: 10px !important; }
  .nqv-wrap { padding: 0 14px !important; }
  .nqv-hero { border-radius: 19px !important; overflow: hidden !important; box-shadow: 0 8px 28px rgba(0,0,0,.09) !important; }
  .nqv-hero-media { min-height: 0 !important; aspect-ratio: 16/9 !important; }
  .nqv-hero-copy { padding: 18px 16px 20px !important; }
  .nqv-hero-title { font-size: 24px !important; line-height: 1.28 !important; }
  .nqv-hero-excerpt { font-size: 12px !important; line-height: 1.7 !important; }
  .nqv-section { margin-top: 28px !important; }
  .nqv-section-head { margin-bottom: 12px !important; }
  .nqv-section-title { font-size: 25px !important; }
  .nqv-grid { grid-template-columns: repeat(2,minmax(0,1fr)) !important; gap: 10px !important; }
  .nqv-video { min-width:0; }
  .nqv-thumb { border-radius: 14px !important; }
  .nqv-video-title { font-size: 12.5px !important; line-height: 1.45 !important; }
  .nqv-video-meta { font-size: 9px !important; }
  .nqv-subscribe { padding: 20px 17px !important; border-radius: 18px !important; }

 /* Writers / Mowja listing pages: cards feel like mobile media modules. */
  .nqw-page { padding-top: 10px !important; }
  .nqw-wrap { padding: 0 14px !important; }
  .nqw-feature-hero { border-radius: 19px !important; overflow: hidden !important; }
  .nqw-feature-media { min-height: 0 !important; aspect-ratio: 16/9 !important; }
  .nqw-feature-copy { padding: 18px 16px 20px !important; }
  .nqw-feature-copy h1 { font-size: 24px !important; line-height: 1.28 !important; }
  .nqw-writers-block,.nqw-articles-block { margin-top: 26px !important; }
  .nqw-writer,.nqw-article { border-radius: 15px !important; overflow: hidden !important; }
  .nqw-writer { grid-template-columns: 104px 1fr !important; }
  .nqw-writer-media { min-height: 154px !important; }
  .nqw-article { grid-template-columns: 104px 1fr !important; }
  .nqw-article-body { padding: 12px !important; }

 /* Contact: one clean app-form surface. */
  .nqc-wrap { width: calc(100% - 28px) !important; }
  .nqc-hero-in { padding: 16px 0 22px !important; }
  .nqc-title { font-size: 38px !important; line-height: 1.08 !important; }
  .nqc-lead { font-size: 14px !important; line-height: 1.7 !important; }
  .nqc-routes { padding: 30px 0 !important; }
  .nqc-route-grid { gap: 8px !important; }
  .nqc-route { border-radius: 16px !important; padding: 17px !important; }
  .nqc-form-card,.nqc-side { padding: 18px !important; border-radius: 18px !important; }
  .nqc-field input,.nqc-field textarea,.nqc-field select { min-height: 46px !important; border-radius: 12px !important; font-size: 16px !important; }
  .nqc-submit { min-height: 46px !important; border-radius: 12px !important; }

 /* Single articles: readable, calmer, less desktop chrome. */
  .nqs-hero-in { padding-inline: 14px !important; }
  .nqs-hero-title { font-size: clamp(29px,8.4vw,38px) !important; line-height: 1.22 !important; }
  .nqs-hero-sub { font-size: 13px !important; line-height: 1.72 !important; }
  .nqs-toolbar { border-radius: 14px !important; }
  .nqs-content { font-size: 16px !important; line-height: 1.95 !important; }

 /* Single podcast episode: player first, then concise episode data. */
  .nqp-shell { width: calc(100% - 28px) !important; }
  .nqp-hero { padding: 10px 0 20px !important; }
  .nqp-hero-grid { gap: 0 !important; border-radius: 19px !important; overflow: hidden !important; }
  .nqp-media { order: 1 !important; }
  .nqp-details { order: 2 !important; padding: 18px 16px 20px !important; }
  .nqp-title { font-size: 25px !important; line-height: 1.3 !important; }
  .nqp-summary { font-size: 12.5px !important; line-height: 1.75 !important; }
  .nqp-platform { min-height: 40px !important; border-radius: 11px !important; }
  .nqp-episode-bar { position: relative !important; top: auto !important; }

 /* Footer sits above the app tabbar and remains compact. */
  .site-footer {

    padding-bottom: calc(32px + env(safe-area-inset-bottom)) !important;
  }

 /* Native touch feedback only on devices that actually hover less. */
  .nqhome-media-card:active,
  .nqhome-podcast-item:active,
  .nqhome-translation-card:active,
  .nqv-video:active,
  .nqw-writer:active,
  .nqw-article:active { transform: scale(.985) !important; }
}

@media (max-width: 370px) {
  .nq-mobile-tabbar { right: 5px; left: 5px; }
  .nq-mobile-tab { font-size: 8.4px; }
  .nq-mobile-tab__icon svg { width: 19px; height: 19px; }
  .nqhome-media-card,.nqhome-podcast-item,.nqhome-translation-card { flex-basis: 88% !important; }
  .nqv-grid { gap: 8px !important; }
  .nqv-video-title { font-size: 12px !important; }
}

@media (prefers-reduced-motion: reduce) and (max-width: 760px) {
  .mobile-menu-drawer,.nq-mobile-tab,.post-card,.nqhome-media-card,.nqhome-podcast-item,.nqhome-translation-card { transition: none !important; }
}

/* ========================================================================
 — Current mobile header + topic rail
   Current mobile header and topic-rail rules.
   ======================================================================== */
@media (max-width:760px){
  html{scroll-padding-top:62px;}
  .site-nav{min-height:58px;height:58px;background:rgba(10,10,10,.98);border-bottom:1px solid rgba(255,255,255,.08);box-shadow:0 4px 18px rgba(0,0,0,.10);backdrop-filter:saturate(1.1) blur(16px);-webkit-backdrop-filter:saturate(1.1) blur(16px);}
  .nav-inner{direction:rtl;min-height:58px;height:58px;padding-inline:14px;gap:10px;display:flex;align-items:center;justify-content:space-between;}
  .site-logo{order:1;margin:0;margin-inline:0;display:flex;align-items:center;justify-content:flex-start;flex:0 0 auto;}
  .site-logo img{height:31px;width:auto;max-width:120px;object-fit:contain;filter:brightness(0) invert(1);}
  .nav-cats,.mobile-ws-toplink{display:none;}.nq-mobile-search-toggle{display:grid;place-items:center}.nq-mobile-search-panel{display:none}.nq-mobile-search-panel.open{display:block}
  .nq-mobile-head-actions{order:2;display:flex;align-items:center;margin:0;margin-inline:0;}
  .nav-hamburger{display:flex;width:40px;height:40px;min-width:40px;min-height:40px;padding:9px;gap:4px;align-items:center;justify-content:center;border:1px solid rgba(255,255,255,.11);border-radius:12px;background:rgba(255,255,255,.065);color:#fff;box-shadow:none;}
  .nav-hamburger span{width:20px;height:2px;background:#fff;border-radius:999px;}
  .nav-hamburger:active{transform:scale(.95);background:rgba(255,255,255,.12);}
  .nuqta-topic-hubs{background:transparent;border:0;box-shadow:none;}
  .nuqta-topic-hubs__inner{max-width:none;justify-content:flex-start;gap:11px;padding:10px 14px 9px;background:transparent;overflow-x:auto;overflow-y:hidden;scroll-snap-type:x proximity;scroll-padding-inline:14px;scrollbar-width:none;-webkit-overflow-scrolling:touch;}
  .nuqta-topic-hubs__inner::-webkit-scrollbar{display:none;}
  .nuqta-topic-hub{flex:0 0 72px;width:72px;gap:6px;scroll-snap-align:start;}
  .nuqta-topic-hub__avatar{width:60px;height:60px;border-width:.5px;padding:.5px;box-shadow:none;background:transparent;}
  .nuqta-topic-hub.is-active .nuqta-topic-hub__avatar{border-width:.5px;box-shadow:none;}
  .nuqta-topic-hub__label{min-height:2.5em;font-size:11.5px;line-height:1.25;font-weight:800;color:#171717;}
  .nuqta-topic-hub__fallback{font-size:19px;}
}
@media (max-width:380px){
  .site-nav,.nav-inner{min-height:56px;height:56px;}
  .nav-inner{padding-inline:12px;}
  .site-logo img{height:29px;max-width:114px;}
  .nav-hamburger{width:38px;height:38px;min-width:38px;min-height:38px;}
  .nuqta-topic-hubs__inner{gap:10px;padding-inline:12px;}
  .nuqta-topic-hub{flex-basis:68px;width:68px;}
  .nuqta-topic-hub__avatar{width:57px;height:57px;}
  .nuqta-topic-hub__label{font-size:11px;}
}

/* ========================================================================
 — Compact mobile footer
   Keeps every footer destination while cutting the vertical footprint.
   ======================================================================== */
@media (max-width:760px){
  .site-footer{
    margin-top:24px!important;
    padding:20px 14px calc(74px + env(safe-area-inset-bottom))!important;
  }
  .footer-inner{
    max-width:none!important;
    margin:0 auto 12px!important;
    grid-template-columns:repeat(3,minmax(0,1fr))!important;
    gap:14px 10px!important;
  }
  .footer-inner>div:first-child{
    grid-column:1/-1!important;
    display:grid!important;
    grid-template-columns:minmax(0,1fr) auto!important;
    grid-template-areas:"logo social" "desc desc"!important;
    align-items:center!important;
    gap:8px 12px!important;
  }
  .f-logo{
    grid-area:logo!important;
    width:auto!important;
    margin:0!important;
    justify-content:flex-start!important;
  }
  .f-logo img{
    height:34px!important;
    max-width:122px!important;
  }
  .f-social{
    grid-area:social!important;
    flex-wrap:nowrap!important;
    gap:6px!important;
  }
  .f-soc{
    width:30px!important;
    height:30px!important;
  }
  .f-soc svg{
    width:14px!important;
    height:14px!important;
  }
  .f-desc{
    grid-area:desc!important;
    max-width:none!important;
    margin:0!important;
    font-size:11.5px!important;
    line-height:1.55!important;
    display:-webkit-box!important;
    -webkit-box-orient:vertical!important;
    -webkit-line-clamp:2!important;
    overflow:hidden!important;
  }
  .footer-col,
  .footer-col:nth-child(4){
    grid-column:auto!important;
    padding-top:0!important;
    border-top:0!important;
  }
  .footer-col h4{
    margin:0 0 7px!important;
    font-size:12.5px!important;
  }
  .footer-col ul,
  .footer-col:nth-child(4) ul{
    display:flex!important;
    flex-direction:column!important;
    gap:4px!important;
  }
  .footer-col ul a{
    font-size:11px!important;
    line-height:1.45!important;
  }
  .footer-bot{
    max-width:none!important;
    margin:0!important;
    padding-top:10px!important;
    font-size:10.5px!important;
    line-height:1.4!important;
  }
}

@media (max-width:380px){
  .site-footer{padding-inline:12px!important;}
  .footer-inner{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:12px 10px!important;}
  .footer-col:nth-child(4){grid-column:1/-1!important;}
  .footer-col:nth-child(4) ul{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:4px 10px!important;}
  .f-social{gap:5px!important;}
  .f-soc{width:28px!important;height:28px!important;}
}

@media(max-width:760px){
  body.admin-bar .site-nav{top:46px}
  body.admin-bar .mobile-menu-drawer{top:46px;height:calc(100% - 46px)}
  .nq-mobile-search-form input{min-width:0;font-size:16px}
  .mobile-menu-drawer{max-width:calc(100vw - 24px);height:100dvh;touch-action:pan-y}
  .footer-inner>div:first-child{grid-template-columns:minmax(0,1fr)!important;grid-template-areas:"logo" "social" "desc"!important}
  .f-social{flex-wrap:wrap!important}
}
@media(max-width:600px){body.admin-bar .site-nav{top:0}}
@media(max-width:760px){
  .nq-mobile-head-actions{gap:8px}
  .nq-mobile-search-toggle{width:40px;height:40px;padding:9px;border:1px solid rgba(255,255,255,.15);border-radius:12px;background:rgba(255,255,255,.065);color:#fff}
  .nq-mobile-search-toggle svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round}
  .nq-mobile-search-panel{position:absolute;top:100%;inset-inline:0;padding:12px 14px;background:#111;box-shadow:0 8px 18px rgba(0,0,0,.15)}
  .nq-mobile-search-form{display:flex;gap:8px;max-width:720px;margin:auto}
  .nq-mobile-search-form input{flex:1;width:100%;height:44px;padding:8px 12px;border:1px solid #555;border-radius:10px;background:#fff;color:#111}
  .nq-mobile-search-form button{flex-shrink:0;padding:8px 16px;border:0;border-radius:10px;background:#f0c7d4;color:#111;font-weight:700}
}
