/* Mahaxan Today phone navigation: bottom bar on every page, More panel, and the hub's first page and card switching.
   Everything here applies below 768 px only; from tablet width up the bar and the first page are hidden. */
.mxt-appnav, .mxt-appsheet, .mxt-appbar, .mxt-appdots, .mxt-ov { display: none; }
.mxt-i { fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; flex: none; }

@media (max-width: 767px) {
    body.mxt-has-appnav { padding-bottom: calc(78px + env(safe-area-inset-bottom, 0px)); }

    /* ---------- bottom bar ---------- */
    .mxt-appnav {
        position: fixed; z-index: 9990; left: 0; right: 0; bottom: 0;
        display: grid; grid-template-columns: repeat(5, minmax(0, 1fr));
        padding: 6px 4px calc(8px + env(safe-area-inset-bottom, 0px));
        font-family: Phetsarath, sans-serif;
        background: #fff; border-top: 1px solid #E4DCCB; box-shadow: 0 -6px 18px rgba(15, 43, 36, .08);
    }
    .mxt-appnav a, .mxt-appnav button {
        display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
        min-height: 58px; margin: 0; padding: 0;
        font: 400 12px/1.3 Phetsarath, sans-serif; color: #4D5852 !important; text-decoration: none !important; white-space: nowrap;
        background: none; border: 0; border-radius: 0; box-shadow: none; cursor: pointer; -webkit-tap-highlight-color: transparent;
    }
    .mxt-appnav button:hover, .mxt-appnav button:focus { color: #4D5852; background: none; }
    .mxt-appnav__pill { display: grid; place-items: center; width: 60px; height: 32px; border-radius: 16px; transition: background-color .18s ease, transform .12s ease; }
    .mxt-appnav .mxt-i { width: 27px; height: 27px; }
    .mxt-appnav a:active .mxt-appnav__pill, .mxt-appnav button:active .mxt-appnav__pill { background: #F1EAD6; transform: scale(.9); }
    .mxt-appnav [aria-current="page"], .mxt-appnav [aria-expanded="true"],
    .mxt-appnav button[aria-current="page"]:hover, .mxt-appnav button[aria-expanded="true"]:hover { font-weight: 700; color: #0F2B24 !important; }
    .mxt-appnav [aria-current="page"] .mxt-appnav__pill, .mxt-appnav [aria-expanded="true"] .mxt-appnav__pill { background: #F3C95B; }
    .mxt-appnav a:focus-visible, .mxt-appnav button:focus-visible, .mxt-appsheet a:focus-visible, .mxt-appsheet button:focus-visible { outline: 3px solid #1D6FD6; outline-offset: -3px; }

    /* ---------- More panel ---------- */
    .mxt-appsheet { display: block; position: fixed; z-index: 9980; inset: 0; font-family: Phetsarath, sans-serif; }
    .mxt-appsheet[hidden] { display: none; }
    .mxt-appsheet__scrim { position: absolute; inset: 0; width: 100%; margin: 0; padding: 0; background: rgba(10, 20, 16, .5); border: 0; border-radius: 0; opacity: 0; transition: opacity .25s ease; }
    .mxt-appsheet__scrim:hover, .mxt-appsheet__scrim:focus { background: rgba(10, 20, 16, .5); }
    .mxt-appsheet__panel {
        position: absolute; left: 0; right: 0; bottom: 0; padding: 8px 14px calc(96px + env(safe-area-inset-bottom, 0px));
        background: #F5F0E4; border-radius: 24px 24px 0 0; outline: 0;
        transform: translateY(100%); transition: transform .28s cubic-bezier(.2, .8, .2, 1);
    }
    .mxt-appsheet.is-open .mxt-appsheet__scrim { opacity: 1; }
    .mxt-appsheet.is-open .mxt-appsheet__panel { transform: none; }
    .mxt-appsheet__grab { display: block; width: 40px; height: 4px; margin: 0 auto 8px; background: #CFC8B4; border-radius: 4px; }
    .mxt-appsheet__top { display: flex; align-items: center; margin-bottom: 10px; }
    .mxt-appsheet__top b { flex: 1; font-size: 17px; color: #173F35; }
    .mxt-appsheet__x, .mxt-appsheet__x:hover, .mxt-appsheet__x:focus { display: grid; place-items: center; width: 40px; height: 40px; padding: 0; color: #15181C; background: #E6DFCD; border: 0; border-radius: 50%; }
    .mxt-appsheet__x .mxt-i { width: 20px; height: 20px; }
    .mxt-appsheet__opts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
    .mxt-appsheet__opts a { display: flex; align-items: center; gap: 10px; min-height: 68px; padding: 10px; color: #15181C !important; text-decoration: none !important; background: #FFFDF8; border: 1px solid #E4DCCB; border-radius: 16px; transition: transform .12s ease; }
    .mxt-appsheet__opts a:active { transform: scale(.97); }
    .mxt-appsheet__opts a[aria-current="page"] { border: 2px solid #173F35; }
    .mxt-appsheet__ib { display: grid; place-items: center; flex: none; width: 44px; height: 44px; color: #fff; border-radius: 13px; }
    .mxt-appsheet__opts b { display: block; font-size: 14.5px; line-height: 1.3; }
    .mxt-appsheet__opts small { display: block; font-size: 10.5px; line-height: 1.35; color: #5D6A63; }

    /* the green text sub-navigation is replaced by the bar */
    .mxt-today .mxt-subnav { display: none !important; }

    /* ---------- hub: title bar, dots, first page ---------- */
    .mxt-hub .mxt-ovsec { padding: 0 !important; margin: 0 !important; }
    .mxt-hub .mxt-ovsec > .elementor-container > .elementor-column > .elementor-widget-wrap { padding: 0 !important; }
    .mxt-appbar { display: flex; align-items: center; gap: 10px; min-height: 60px; padding: 10px 14px; font-family: Phetsarath, sans-serif; color: #fff; background: #173F35; }
    .mxt-appbar__back { display: none; place-items: center; flex: none; width: 40px; height: 40px; margin-left: -4px; color: #fff !important; background: rgba(255, 255, 255, .16); border-radius: 50%; }
    html[data-mxt-tab]:not([data-mxt-tab="today"]) .mxt-appbar__back { display: grid; }
    .mxt-appbar__tt { flex: 1; min-width: 0; }
    .mxt-appbar__tt b { display: block; font-size: 20px; line-height: 1.25; color: #F3C95B; white-space: nowrap; }
    .mxt-appbar__tt small { display: block; font-size: 12px; opacity: .9; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .mxt-appbar__news, .mxt-appbar__news:hover, .mxt-appbar__news:focus { display: flex; align-items: center; gap: 6px; flex: none; min-height: 40px; padding: 0 14px 0 10px; font-size: 13.5px; font-weight: 700; color: #fff !important; text-decoration: none !important; background: rgba(255, 255, 255, .16); border-radius: 999px; }
    .mxt-appbar__news .mxt-i { width: 20px; height: 20px; }
    .mxt-appdots { display: flex; justify-content: center; gap: 5px; padding: 12px 0 2px; }
    .mxt-appdots i { width: 6px; height: 6px; background: #CFC8B4; border-radius: 6px; transition: width .2s ease, background-color .2s ease; }
    .mxt-appdots i.is-on { width: 18px; background: #173F35; }

    .mxt-ov { display: block; padding: 10px 12px 4px; font-family: Phetsarath, sans-serif; }
    html[data-mxt-tab]:not([data-mxt-tab="today"]) .mxt-ov { display: none; }

    /* one full card at a time; the first page shows none of them */
    .mxt-hub .mxt-m-hide { display: none !important; }
    .mxt-hub .mxt-view { display: none !important; }
    html[data-mxt-tab="fuel"] .mxt-hub .mxt-view--fuel,
    html[data-mxt-tab="gold"] .mxt-hub .mxt-view--gold,
    html[data-mxt-tab="weather"] .mxt-hub .mxt-view--weather,
    html[data-mxt-tab="rates"] .mxt-hub .mxt-view--rates,
    html[data-mxt-tab="calendar"] .mxt-hub .mxt-view--calendar,
    html[data-mxt-tab="lottery"] .mxt-hub .mxt-view--lottery,
    html:not([data-mxt-tab]) .mxt-hub .mxt-view--news,
    html[data-mxt-tab="today"] .mxt-hub .mxt-view--news { display: flex !important; }
    html[data-mxt-tab]:not([data-mxt-tab="today"]) .mxt-hub .mxt-m-today { display: none !important; }
    .mxt-hub .mxt-viewsec { margin-top: 0 !important; margin-bottom: 0 !important; padding-top: 0 !important; padding-bottom: 0 !important; }
    .mxt-hub .mxt-view { margin-top: 10px !important; margin-bottom: 4px !important; }

    .mxt-in-r { animation: mxtInR .26s cubic-bezier(.2, .8, .2, 1); }
    .mxt-in-l { animation: mxtInL .26s cubic-bezier(.2, .8, .2, 1); }

    /* ---------- first-page summaries, in the look of the card each one opens ---------- */
    .mxt-o { position: relative; display: block; margin: 0 0 12px; padding: 16px; overflow: hidden; isolation: isolate; color: #F5F0E4 !important; text-decoration: none !important; border-radius: 20px; box-shadow: 0 4px 12px rgba(15, 43, 36, .10); transition: transform .12s ease; -webkit-tap-highlight-color: transparent; }
    .mxt-o:active { transform: scale(.985); }
    .mxt-o b, .mxt-o strong { font-weight: 700; }
    .mxt-o small, .mxt-o em { font-style: normal; }
    .mxt-o__h { display: block; font-size: 17px; line-height: 1.3; }
    .mxt-o__sub { display: block; font-size: 11.5px; opacity: .82; }
    .mxt-o__meta { display: block; margin-top: 10px; font-size: 11px; opacity: .75; }
    .mxt-o__go { position: absolute; top: 12px; right: 12px; display: grid; place-items: center; width: 30px; height: 30px; background: rgba(255, 255, 255, .16); border-radius: 50%; }
    .mxt-o__go .mxt-i { width: 16px; height: 16px; stroke-width: 2.4; }
    .mxt-o__chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; font-size: 11.5px; font-weight: 700; background: rgba(255, 255, 255, .14); border-radius: 999px; }
    .mxt-o__chip::before { content: ""; width: 7px; height: 7px; background: #F3C95B; border-radius: 50%; }

    .mxt-o--wx { display: flex; flex-direction: column; min-height: 176px; background: #0D2A3A center / cover no-repeat; }
    .mxt-o--wx::before { content: ""; position: absolute; z-index: -1; inset: 0; background: linear-gradient(180deg, rgba(8, 20, 30, .25), rgba(8, 20, 30, .78)); }
    .mxt-o--wx .mxt-o__chip { align-self: flex-start; }
    .mxt-o__now { display: flex; align-items: flex-end; gap: 12px; margin-top: auto; padding-top: 18px; }
    .mxt-o__now > b { font-size: 58px; line-height: .95; letter-spacing: -1px; }
    .mxt-o__now strong { display: block; font-size: 17px; line-height: 1.25; }
    .mxt-o__now small { display: block; font-size: 11.5px; opacity: .85; }
    .mxt-o__hrs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin-top: 12px; }
    .mxt-o__hrs > span { padding: 5px 4px; font-size: 11px; text-align: center; background: rgba(255, 255, 255, .14); border-radius: 12px; -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
    .mxt-o__hrs b { display: block; font-size: 14.5px; white-space: nowrap; }
    .mxt-o__credit { display: block; margin-top: 6px; font: 9px/1.3 system-ui, sans-serif; text-align: right; opacity: .7; }

    .mxt-o--fuel { background: linear-gradient(rgb(52, 72, 90), rgb(15, 43, 36)); }
    .mxt-o__grades { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 12px; }
    .mxt-o__grades > span { padding: 9px 6px 8px; text-align: center; background: rgba(255, 255, 255, .07); border-radius: 14px; }
    .mxt-o__grades i { display: flex; flex-direction: column; justify-content: center; min-height: 46px; padding: 2px 2px 1px; font-size: 11.5px; font-style: normal; font-weight: 700; line-height: 1.25; color: #fff; border: 2px solid rgba(255, 255, 255, .85); border-radius: 7px; box-shadow: 0 2px 0 rgba(0, 0, 0, .25); }
    .mxt-o__grades i em { display: block; font: 700 8.5px/1.3 system-ui, sans-serif; letter-spacing: .04em; }
    .mxt-o__grades .p95 { background: #D9731A; } .mxt-o__grades .p91 { background: #C3161E; } .mxt-o__grades .pd { background: #2E3192; }
    .mxt-o__grades b { display: block; margin-top: 7px; font-size: 21px; color: #F3C95B; }

    .mxt-o-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 12px; }
    .mxt-o-pair .mxt-o { margin: 0; padding: 14px; }
    .mxt-o--gold { color: #FFF6DC !important; background: linear-gradient(135deg, #3A2A0C 0%, #6B4A0E 55%, #2A1E0A 100%); }
    .mxt-o--gold::after { content: ""; position: absolute; z-index: -1; inset: 0; background: linear-gradient(110deg, transparent 35%, rgba(255, 233, 166, .22) 50%, transparent 65%); }
    .mxt-o--gold > .mxt-i { display: block; width: 34px; height: 34px; margin-bottom: 4px; fill: #F3C95B; stroke: #3A2A0C; stroke-width: 1.2; }
    .mxt-o__v { display: block; margin-top: 6px; font-size: 21px; line-height: 1.2; color: #FCE9B0; }
    .mxt-o__chg { display: inline-block; margin-top: 5px; padding: 1px 8px; font-size: 12px; font-weight: 700; border-radius: 999px; }
    .mxt-o__chg.is-down { color: #B3261E; background: #FBE9E7; } .mxt-o__chg.is-up { color: #1F7A4A; background: #E3F4EA; }
    .mxt-o--cal { padding: 0 !important; color: #3A2A12 !important; background: #FFFDF8; border: 1px solid #E4DCCB; }
    .mxt-o__band { display: block; padding: 8px 40px 6px 12px; font-size: 12.5px; font-weight: 700; color: #fff; background: linear-gradient(135deg, #C3161E, #8E0F16); }
    .mxt-o--cal .mxt-o__go { top: 4px; right: 6px; width: 26px; height: 26px; color: #fff; background: rgba(255, 255, 255, .25); }
    .mxt-o__day { display: block; padding: 8px 12px 0; font-size: 50px; line-height: 1; color: #15181C; }
    .mxt-o__lun { display: block; padding: 2px 12px 0; font-size: 12.5px; font-weight: 700; line-height: 1.45; }
    .mxt-o__nx { display: block; margin: 8px; padding: 6px 8px; font-size: 11.5px; font-weight: 700; background: linear-gradient(135deg, #FFF3CF, #FBE3A0); border-radius: 10px; }

    .mxt-o--fx { background: linear-gradient(rgb(62, 107, 120), rgb(15, 43, 36)); }
    .mxt-o__rates { display: block; margin-top: 12px; }
    .mxt-o__rates > span { display: grid; grid-template-columns: 28px minmax(0, 1fr) 78px 78px; align-items: center; gap: 8px; padding: 7px 0; font-size: 15px; border-top: 1px solid rgba(255, 255, 255, .12); }
    .mxt-o__rates > span.is-head { padding: 0 0 4px; font-size: 10.5px; opacity: .75; border: 0; }
    .mxt-o__rates img { display: block; width: 26px; height: 26px; border-radius: 50%; }
    .mxt-o__rates b small { font-size: 11.5px; font-weight: 400; opacity: .82; }
    .mxt-o__rates em { font-weight: 700; text-align: right; font-variant-numeric: tabular-nums; }
    .mxt-o__rates .is-head em { font-weight: 400; }
    .mxt-o__rates em.is-sell { color: #F3C95B; }

    .mxt-o--lot { background: linear-gradient(140deg, #12356B 0%, #0B2247 60%, #2A1454 100%); }
    .mxt-o__tiles { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; margin-top: 12px; }
    .mxt-o__tiles b { font-size: 26px; line-height: 1.5; text-align: center; color: #15181C; background: linear-gradient(180deg, #fff, #F3F0E6); border-radius: 10px; box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .12), 0 4px 10px rgba(0, 0, 0, .28); }
    .mxt-o__warn { display: inline-block; margin-top: 8px; padding: 2px 9px; font-size: 10.5px; line-height: 1.5; color: #5C4400; background: #FFF3CD; border-radius: 10px; }
}
@media (max-width: 359px) {
    .mxt-appnav__pill { width: 52px; }
    .mxt-o__grades b { font-size: 18px; } .mxt-o__grades i { font-size: 10px; }
    .mxt-o__v { font-size: 18px; } .mxt-o__now > b { font-size: 50px; } .mxt-o__hrs b { font-size: 12.5px; }
    .mxt-o__rates > span { grid-template-columns: 26px minmax(0, 1fr) 66px 66px; font-size: 14px; }
    .mxt-o__tiles b { font-size: 22px; }
    .mxt-appsheet__opts a { gap: 8px; padding: 8px; } .mxt-appsheet__ib { width: 38px; height: 38px; } .mxt-appsheet__opts b { font-size: 13px; }
}
@keyframes mxtInR { from { opacity: 0; transform: translateX(46px); } }
@keyframes mxtInL { from { opacity: 0; transform: translateX(-46px); } }
@media (prefers-reduced-motion: reduce) {
    .mxt-in-r, .mxt-in-l { animation: none; }
    .mxt-appsheet__panel, .mxt-appsheet__scrim, .mxt-o, .mxt-appnav__pill { transition: none; }
}

@media (min-width: 768px) { .mxt-ovsec { display: none !important; } }
