/* Homepage on phones (inc/mx-home-mobile.php). Everything here applies below 768 px only.
   Columns, hidden widgets and the tiles widget are Elementor/JetEngine settings (build/home-mobile-place.php); this file holds the rest.
   Listing grids by widget id: 836b273 + 13b9938 top stories, 4e88205 domestic, b519115 foreign, c7e1a04 technology (same look as foreign), 4914c88 economy,
   ca2a8df c5ea9ca 6e34b82 abe5875 the lead of sport, travel, lifestyle, knowledge; 22344f9 6881f1e 4731f70 f3dac80 their links. */
.mxh-tiles, .mxh-all { display: none; }
/* the technology row (section c7e1a01, added 18 Oct 2026) stays hidden until the category has a story, at every width */
.mx-home-tech:not(:has(.jet-listing-grid__item)) { display: none !important; }

@media (max-width: 767px) {
    /* ---------- photo cards two to a row ---------- */
    .mx-home-m :is(.elementor-element-836b273, .elementor-element-13b9938, .elementor-element-4e88205, .elementor-element-1d296ba, :is(.elementor-element-b519115, .elementor-element-c7e1a04)) .jet-listing-grid__items { margin-left: -7px !important; margin-right: -7px !important; width: auto !important; }
    .mx-home-m :is(.elementor-element-836b273, .elementor-element-13b9938, .elementor-element-4e88205, .elementor-element-1d296ba, :is(.elementor-element-b519115, .elementor-element-c7e1a04)) .jet-listing-grid__item { padding: 0 7px !important; margin: 0 0 14px !important; }
    .mx-home-m :is(.elementor-element-b519115, .elementor-element-c7e1a04) .jet-listing-grid__item:not(:first-child) { flex: 0 0 50% !important; max-width: 50% !important; }

    /* a small card: photo, a title of three lines at most, time and views */
    .mx-home-m :is(.elementor-element-836b273, .elementor-element-13b9938, .elementor-element-4e88205, .elementor-element-1d296ba, .elementor-element-ca2a8df, .elementor-element-c5ea9ca, .elementor-element-6e34b82, .elementor-element-abe5875) .jet-listing-dynamic-link,
    .mx-home-m :is(.elementor-element-b519115, .elementor-element-c7e1a04) .jet-listing-grid__item:not(:first-child) .jet-listing-dynamic-link { font-size: 15px !important; line-height: 1.5 !important; margin: 0 !important; }
    .mx-home-m :is(.elementor-element-836b273, .elementor-element-13b9938, .elementor-element-4e88205, .elementor-element-1d296ba, .elementor-element-ca2a8df, .elementor-element-c5ea9ca, .elementor-element-6e34b82, .elementor-element-abe5875) .jet-listing-dynamic-link__label,
    .mx-home-m :is(.elementor-element-b519115, .elementor-element-c7e1a04) .jet-listing-grid__item:not(:first-child) .jet-listing-dynamic-link__label { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; }
    .mx-home-m :is(.elementor-element-836b273, .elementor-element-13b9938, .elementor-element-4e88205, .elementor-element-1d296ba, :is(.elementor-element-b519115, .elementor-element-c7e1a04), .elementor-element-ca2a8df, .elementor-element-c5ea9ca, .elementor-element-6e34b82, .elementor-element-abe5875) .elementor-widget-jet-listing-dynamic-link { margin-bottom: 2px !important; }
    .mx-home-m :is(.elementor-element-836b273, .elementor-element-13b9938, .elementor-element-4e88205, .elementor-element-1d296ba, :is(.elementor-element-b519115, .elementor-element-c7e1a04), .elementor-element-ca2a8df, .elementor-element-c5ea9ca, .elementor-element-6e34b82, .elementor-element-abe5875) .elementor-widget-jet-listing-dynamic-link > .elementor-widget-container { margin: 0 !important; padding: 0 !important; }
    .mx-home-m :is(.elementor-element-836b273, .elementor-element-13b9938, .elementor-element-4e88205, .elementor-element-1d296ba, .elementor-element-ca2a8df, .elementor-element-c5ea9ca, .elementor-element-6e34b82, .elementor-element-abe5875) .jet-listing-dynamic-image__img,
    .mx-home-m :is(.elementor-element-b519115, .elementor-element-c7e1a04) .jet-listing-grid__item:not(:first-child) .jet-listing-dynamic-image__img { width: 100%; aspect-ratio: 16 / 10; height: auto; object-fit: cover; border-radius: 6px; }
    .mx-home-m :is(.elementor-element-836b273, .elementor-element-13b9938, .elementor-element-4e88205, .elementor-element-1d296ba, :is(.elementor-element-b519115, .elementor-element-c7e1a04), .elementor-element-4914c88, .elementor-element-ca2a8df, .elementor-element-c5ea9ca, .elementor-element-6e34b82, .elementor-element-abe5875) .jet-listing-dynamic-field__content { font-size: 12px !important; }

    /* top stories: four cards, no category line */
    .mx-home-m .elementor-element-13b9938 .jet-listing-grid__item:nth-child(n+3) { display: none !important; }
    .mx-home-m .elementor-element-13b9938 .elementor-element-d8d1524 { padding-bottom: 0 !important; border-bottom: 0 !important; }
    .mx-home-m .elementor-element-13b9938 .elementor-widget-jet-listing-dynamic-terms { display: none !important; }

    /* category headings sit closer to their stories */
    .mx-home-m :is(.elementor-element-a322938, .elementor-element-4732d9d, .elementor-element-a991a09, .elementor-element-a7a31ea, .elementor-element-01f5294, .elementor-element-e796206, .elementor-element-c7e1a03) { margin-bottom: 14px !important; }

    /* domestic: the four rows with a small photo become cards, photo on top */
    .mx-home-m .elementor-element-4e88205 { margin-top: 16px !important; }
    .mx-home-m :is(.elementor-element-4e88205, .elementor-element-1d296ba) .elementor-element-6007750 { padding: 0 !important; border-bottom: 0 !important; }
    .mx-home-m :is(.elementor-element-4e88205, .elementor-element-1d296ba) .elementor-element-6007750 > .elementor-container { flex-wrap: wrap !important; }
    .mx-home-m :is(.elementor-element-4e88205, .elementor-element-1d296ba) :is(.elementor-element-3f68b4b, .elementor-element-05b4a2c) { width: 100% !important; }
    .mx-home-m :is(.elementor-element-4e88205, .elementor-element-1d296ba) :is(.elementor-element-3f68b4b, .elementor-element-05b4a2c) > .elementor-widget-wrap { padding: 0 !important; }
    .mx-home-m :is(.elementor-element-4e88205, .elementor-element-1d296ba) .elementor-element-05b4a2c { order: -1; margin-bottom: 6px; }
    .mx-home-m :is(.elementor-element-4e88205, .elementor-element-1d296ba) .elementor-element-f131854,
    .mx-home-m :is(.elementor-element-4e88205, .elementor-element-1d296ba) .elementor-element-f131854 :is(.elementor-widget-container, .jet-listing-dynamic-image, a) { display: block; width: 100% !important; max-width: none !important; margin: 0 !important; padding: 0 !important; }

    /* economy: three compact rows, photo beside a title of three lines at most */
    .mx-home-m .elementor-element-4914c88 .elementor-element-1929f23 { padding: 12px 0 !important; }
    .mx-home-m .elementor-element-4914c88 .jet-listing-grid__item:first-child .elementor-element-1929f23 { padding-top: 0 !important; }
    .mx-home-m .elementor-element-4914c88 .jet-listing-dynamic-link { font-size: 16px !important; line-height: 1.5 !important; margin: 0 !important; }
    .mx-home-m .elementor-element-4914c88 .jet-listing-dynamic-link__label { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; }
    .mx-home-m .elementor-element-4914c88 .elementor-widget-jet-listing-dynamic-link { margin-bottom: 2px !important; }
    .mx-home-m .elementor-element-4914c88 .elementor-widget-jet-listing-dynamic-terms { display: none !important; }
    .mx-home-m .elementor-element-4914c88 .jet-listing-dynamic-image__img { width: 100%; aspect-ratio: 3 / 2; height: auto; object-fit: cover; border-radius: 6px; }

    /* sport + travel and lifestyle + knowledge: two categories side by side, each a photo card and two more headlines */
    .mx-home-m :is(.elementor-element-6283f04, .elementor-element-7df684b) > .elementor-container { flex-wrap: nowrap !important; align-items: flex-start; }
    .mx-home-m :is(.elementor-element-6283f04, .elementor-element-7df684b) > .elementor-container > .elementor-column { min-width: 0; }
    .mx-home-m :is(.elementor-element-6283f04, .elementor-element-7df684b) > .elementor-container > .elementor-column:first-child > .elementor-widget-wrap { padding: 0 7px 0 0 !important; }
    .mx-home-m :is(.elementor-element-6283f04, .elementor-element-7df684b) > .elementor-container > .elementor-column:last-child > .elementor-widget-wrap { padding: 0 0 0 7px !important; }
    .mx-home-m :is(.elementor-element-22344f9, .elementor-element-6881f1e, .elementor-element-4731f70, .elementor-element-f3dac80) .jet-listing-grid__item:nth-child(n+3) { display: none !important; }
    .mx-home-m :is(.elementor-element-22344f9, .elementor-element-6881f1e, .elementor-element-4731f70, .elementor-element-f3dac80) .elementor-element-9434096 { padding: 8px 0 !important; }
    .mx-home-m :is(.elementor-element-22344f9, .elementor-element-6881f1e, .elementor-element-4731f70, .elementor-element-f3dac80) .jet-listing-dynamic-link { font-size: 14px !important; line-height: 1.5 !important; margin: 0 !important; }
    .mx-home-m :is(.elementor-element-22344f9, .elementor-element-6881f1e, .elementor-element-4731f70, .elementor-element-f3dac80) .jet-listing-dynamic-link__label { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; }
    .mx-home-m :is(.elementor-element-22344f9, .elementor-element-6881f1e, .elementor-element-4731f70, .elementor-element-f3dac80) .elementor-widget-jet-listing-dynamic-link > .elementor-widget-container { margin: 0 !important; padding: 0 !important; }

    /* ---------- the side column, which falls below the news on phones ---------- */
    /* most read: titles of two lines at most */
    .mx-home-m .elementor-element-3a18809 .jet-listing-dynamic-link { font-size: 17px !important; line-height: 1.5 !important; margin: 0 !important; }
    .mx-home-m :is(.elementor-element-3a18809, .elementor-element-4ea0796) .jet-listing-dynamic-link__label { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
    .mx-home-m .elementor-element-3a18809 .elementor-element-0739a8a { padding: 9px 0 !important; }
    /* services: four buttons, two to a row */
    .mx-home-m .elementor-element-edb6304 .jet-nav { display: grid !important; grid-template-columns: 1fr 1fr; column-gap: 14px; }
    /* notices: three, two lines each */
    .mx-home-m .elementor-element-4ea0796 .jet-listing-grid__item:nth-child(n+4) { display: none !important; }
    .mx-home-m .elementor-element-4ea0796 .jet-listing-dynamic-link { font-size: 17px !important; line-height: 1.5 !important; margin: 0 !important; }
    .mx-home-m .elementor-element-4ea0796 .elementor-element-9434096 { padding: 9px 0 !important; }
    /* events: four cards, two to a row */
    .mx-home-m .elementor-element-1d296ba .jet-listing-grid__item:nth-child(n+5) { display: none !important; }
    .mx-home-m .elementor-element-1d296ba { margin-bottom: 0 !important; }

    /* ---------- Mahaxan Today: six tiles in place of the tall card strip ---------- */
    .mx-home-m .elementor-element-a0dc05c { margin-bottom: 10px !important; padding-left: 20px; }
    .mx-home-m .mxh-wrap { padding: 0 20px; }
    .mxh-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; font-family: Phetsarath, sans-serif; }
    .mxh-tile { position: relative; display: block; min-width: 0; padding: 10px 12px 9px; overflow: hidden; color: #F5F0E4 !important; text-decoration: none !important; border-radius: 14px; box-shadow: 0 3px 10px rgba(15, 43, 36, .10); -webkit-tap-highlight-color: transparent; transition: transform .12s ease; }
    .mxh-tile:active { transform: scale(.97); }
    .mxh-tile__k { display: flex; align-items: center; gap: 6px; font-size: 11.5px; line-height: 1.4; opacity: .9; }
    .mxh-tile__k > span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
    .mxh-tile__k .mxt-i { flex: none; width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
    .mxh-tile__v { display: block; margin-top: 3px; font-size: 24px; font-weight: 700; line-height: 1.2; letter-spacing: -.2px; white-space: nowrap; }
    .mxh-tile__s { display: block; margin-top: 1px; font-size: 11px; line-height: 1.45; opacity: .82; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
    .mxh-tile--weather  { background: linear-gradient(160deg, #2F6F9A, #0D2A3A); }
    .mxh-tile--fuel     { background: linear-gradient(rgb(52, 72, 90), rgb(15, 43, 36)); }
    .mxh-tile--gold     { color: #FFF6DC !important; background: linear-gradient(135deg, #3A2A0C 0%, #6B4A0E 55%, #2A1E0A 100%); }
    .mxh-tile--rates    { background: linear-gradient(rgb(62, 107, 120), rgb(15, 43, 36)); }
    .mxh-tile--calendar { background: linear-gradient(160deg, #C3161E, #7E0E14); }
    .mxh-tile--lottery  { background: linear-gradient(160deg, #1B4A91, #12356B); }
    .mxh-tile--fuel .mxh-tile__v, .mxh-tile--gold .mxh-tile__v { color: #F3C95B; }
    .mxh-tile--lottery .mxh-tile__v { letter-spacing: 2px; }
    .mxh-all { display: block; margin: 10px 0 0; font: 700 13.5px/1.6 Phetsarath, sans-serif; text-align: right; color: #173F35 !important; text-decoration: none !important; }
}
