/* VIMSAR_NEWS_READER_FRONTEND_V2 */

:root {
    font-family: Arial,"Noto Sans Devanagari","Nirmala UI",sans-serif;
    color: #171717;
    background: #f4f5f7;
}

* { box-sizing: border-box; }

html,body {
    margin: 0;
    min-height: 100%;
    background: #f4f5f7;
}

body { overflow-x: hidden; }

a {
    color: inherit;
    text-decoration: none;
}

img {
    display: block;
    max-width: 100%;
}

button { font: inherit; }

.app {
    width: 100%;
    max-width: 760px;
    min-height: 100vh;
    margin: 0 auto;
    background: #fff;
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 20;
    min-height: 58px;
    padding: 8px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: rgba(255,255,255,.97);
    border-bottom: 1px solid #e5e7eb;
}

.brand {
    font-size: 25px;
    font-weight: 800;
}

.toplinks {
    display: flex;
    gap: 8px;
    overflow-x: auto;
}

.toplinks a {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    padding: 7px 11px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
}

.message {
    padding: 34px 16px;
    text-align: center;
    color: #666;
}

.section {
    padding: 20px 14px 7px;
}

.section + .section {
    border-top: 8px solid #f4f5f7;
}

.section-title {
    margin: 0 0 14px;
    font-size: 21px;
    line-height: 1.3;
    font-weight: 800;
}

.section-title a {
    display: inline-block;
}

.section-title-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
}

.section-link-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0;
    margin-left: 2px;
    min-width: 30px;
    line-height: 1;
    overflow: visible;
}

.section-link-chevron {
    display: inline-block;
    margin-left: -2px;
    font-size: 21px;
    line-height: 1;
    font-weight: 700;
    opacity: .22;

    animation:
        reader-section-chevron-flow
        1.15s
        ease-in-out
        infinite;
}

.section-link-chevron:nth-child(1) {
    animation-delay: 0s;
}

.section-link-chevron:nth-child(2) {
    animation-delay: .16s;
}

.section-link-chevron:nth-child(3) {
    animation-delay: .32s;
}

@keyframes reader-section-chevron-flow {
    0%,
    65%,
    100% {
        opacity: .18;
        transform: translateX(0);
    }

    28% {
        opacity: 1;
        transform: translateX(3px);
    }
}

@media (prefers-reduced-motion: reduce) {
    .section-link-chevron {
        animation: none;
        opacity: .8;
        transform: none;
    }
}

.lead {
    padding-bottom: 16px;
    border-bottom: 1px solid #e5e7eb;
    cursor: pointer;
}

/*
 * VIMSAR_FIXED_16X9_MEDIA_FRAME_V1
 *
 * Fixed feature/listing media frames preserve the
 * source image aspect ratio with object-fit: contain.
 * Portrait/tall sources therefore show dark unused
 * side space instead of stretching or cropping.
 *
 * Article body/inline images remain free-aspect.
 */
.lead-image {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: contain;
    object-position: center;
    border-radius: 10px;
    background: #1f1f1f;
}

.lead-title {
    margin: 11px 0 0;
    font-size: 22px;
    line-height: 1.35;
    font-weight: 800;
}

.compact {
    display: grid;
    grid-template-columns: minmax(0,1fr) 112px;
    gap: 12px;
    align-items: center;
    padding: 13px 0;
    border-bottom: 1px solid #e5e7eb;
    cursor: pointer;
}

.compact.no-image {
    grid-template-columns: minmax(0,1fr);
}

.compact-title {
    margin: 0;
    font-size: 17px;
    line-height: 1.4;
    font-weight: 700;
    overflow-wrap: anywhere;
}

.compact-image {
    display: block;
    width: 112px;
    height: 63px;
    aspect-ratio: 16 / 9;
    object-fit: contain;
    object-position: center;
    flex: 0 0 auto;
    border-radius: 8px;
    background: #1f1f1f;
}

.meta {
    margin-top: 6px;
    color: #777;
    font-size: 12px;
    line-height: 1.4;
}

/*
 * Latest News category label.
 * Category is intentionally above the headline.
 */
.card-category {
    color: #777;
    font-size: 12px;
    line-height: 1.4;
    font-weight: 600;
}

.lead .card-category {
    margin: 10px 0 4px;
}

.lead .card-category + .lead-title {
    margin-top: 0;
}

.compact .card-category {
    margin: 0 0 4px;
}

.pagination {
    padding: 20px 14px 28px;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.pagination button {
    min-width: 100px;
    min-height: 44px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    background: #fff;
    font-weight: 700;
    cursor: pointer;
}

.pagination button:disabled {
    opacity: .4;
    cursor: default;
}

.article {
    padding: 20px 14px 32px;
}

.article-title {
    margin: 0;
    font-size: 28px;
    line-height: 1.36;
    font-weight: 800;
    overflow-wrap: anywhere;
}

.article-subtitle {
    margin-top: 10px;
    color: #555;
    font-size: 18px;
    line-height: 1.50;
}

.article-meta {
    margin-top: 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px 10px;
    color: #777;
    font-size: 13px;
}

.article-meta > span + span::before {
    content: "|";
    display: inline-block;
    margin-right: 10px;
    color: #a0a0a0;
}


.article-feature {
    margin:
        18px 0 0;

    padding:
        0;
}


.article-feature .article-image {
    display:
        block;

    width:
        100%;

    margin-top:
        0;

    aspect-ratio:
        16 / 9;

    object-fit:
        contain;

    object-position:
        center;

    background:
        #1f1f1f;
}


.article-image-caption {
    margin:
        7px 2px 0;

    color:
        #707070;

    font-size:
        13px;

    line-height:
        1.45;

    text-align:
        left;
}


.article-content a {
    color:
        #2459a9;

    /*
     * Reader must not add an underline.
     * If source markup itself contains <u>, that source
     * formatting remains separate and is not removed here.
     */
    text-decoration:
        none;

    overflow-wrap:
        anywhere;
}

/*
 * VIMSAR_NO_FEATURE_ARTICLE_TOP_GAP_FIX_V1
 *
 * Source article HTML may begin with an empty canonical
 * anchor followed by a <br>. When no feature figure is
 * present, article-content directly follows the metadata
 * (or subtitle/title), so that leading <br> creates an
 * unwanted blank line.
 *
 * Hide only that specific leading spacer in no-feature
 * article layouts. Normal feature-image articles and all
 * other body spacing remain unchanged.
 */
.article-meta + .article-content > a:first-child:empty + br,
.article-subtitle + .article-content > a:first-child:empty + br,
.article-title + .article-content > a:first-child:empty + br {
    display:
        none;
}


.article-content blockquote {
    margin:
        18px 0;

    padding:
        12px 14px;

    border-left:
        3px solid #d1d5db;

    background:
        #f7f7f8;

    border-radius:
        4px;

    overflow-wrap:
        anywhere;
}


.article-content figure {
    margin:
        20px 0;
}


.article-content figcaption {
    margin-top:
        7px;

    color:
        #707070;

    font-size:
        13px;

    line-height:
        1.45;
}


.article-content iframe {
    width:
        100%;

    max-width:
        100%;

    border:
        0;
}

.article-image {
    width: 100%;
    margin-top: 18px;
    border-radius: 10px;
    background: #eee;
}

.article-content {
    margin-top: 20px;
    font-size: 18px;
    line-height: 1.75;
    overflow-wrap: anywhere;
}

.article-content img,
.article-content video {
    max-width: 100%;
    height: auto;
}


/*
 * VIMSAR_INSTAGRAM_EMBED_HEIGHT_FIX_V1
 *
 * Do NOT force height:auto on iframes.
 * Instagram/X/YouTube embed providers may supply their
 * own calculated height or aspect-ratio.
 */
.article-content iframe {
    max-width: 100%;
}

.article-content img {
    margin: 18px auto;
    border-radius: 8px;
}

.read-more-hidden {
    display: none !important;
}

.read-more-wrap {
    padding: 0;
    text-align: center;
}

.read-more {
    min-width: 150px;
    min-height: 46px;
    padding: 10px 18px;
    border: 0;
    border-radius: 8px;
    background: #a60f28;
    color: #fff;
    font-weight: 700;
    cursor: pointer;
}

.footer {
    padding: 28px 14px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    text-align: center;
    border-top: 8px solid #f4f5f7;
}

.footer span {
    color: #777;
    font-size: 13px;
}

@media (max-width:420px) {
    .lead-title { font-size: 20px; }

    .compact {
        grid-template-columns: minmax(0,1fr) 96px;
    }

.compact-image {
        width: 96px;
        height: 54px;
        aspect-ratio: 16 / 9;
    }

    .article-title { font-size: 25px; }

    .article-content {
        font-size: 17px;
        line-height: 1.7;
    }
}
/* VIMSAR_ARTICLE_META_CAPTION_STYLE_V1 */

/*
 * Keep Author / Category / Date / Time
 * vertically aligned on the same center line.
 */
.article-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.article-meta > span {
    display: inline-flex;
    align-items: center;
}


/*
 * Softer separator than the previous vertical bar.
 */
.article-meta > span + span::before {
    content: "•";
    display: inline-block;
    margin: 0 8px;
    color: #a0a0a0;
    line-height: 1;
}


/*
 * Feature-image caption:
 * alignment deliberately unchanged.
 */
.article-image-caption {
    font-size: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e5e7eb;
}


/*
 * Inline/body captions:
 * alignment deliberately unchanged.
 */
.article-content figcaption {
    font-size: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e5e7eb;
}

/* VIMSAR_ARTICLE_META_CAPTION_FINAL_V1 */

/*
 * Keep metadata compact.
 * Previous spacing combined flex gap + dot margins,
 * which made separators look too far apart.
 */
.article-meta {
    column-gap: 0;
    row-gap: 4px;
}


.article-meta > span + span::before {
    content: "•";
    margin: 0 4px;
    font-size: 17px;
    line-height: 1;
    font-weight: 700;
    color: #777;
}


/*
 * Feature caption:
 * alignment itself is intentionally unchanged.
 *
 * Equal top/bottom padding places the caption more
 * naturally between the image and separator line.
 */
.article-image-caption {
    margin: 0 2px;
    padding: 9px 0;
    color: #111;
    font-size: 14px;
    line-height: 1.45;
    border-bottom: 1px solid #e5e7eb;
}


/*
 * Inline caption spacing was already visually correct.
 * Keep its layout/alignment and only use body-like
 * black text.
 */
.article-content figcaption {
    color: #111;
    font-size: 14px;
    border-bottom: 1px solid #e5e7eb;
}

/* VIMSAR_SOCIAL_EMBED_LAYOUT_V1 */

.article-content blockquote.twitter-tweet,
.article-content blockquote.instagram-media {
    box-sizing: border-box;
    width: 100%;
    max-width: 550px;
    margin: 20px auto !important;
    overflow: hidden;
}


.article-content iframe.twitter-tweet-rendered,
.article-content iframe.instagram-media {
    display: block;
    width: 100% !important;
    max-width: 100% !important;
    margin: 20px auto !important;
}


.article-content iframe {
    max-width: 100% !important;
}

/*
 * Instagram official embed must be allowed to expand to
 * its platform-calculated height.
 */
.article-content blockquote.instagram-media {
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    overflow: visible;
}
/* VIMSAR_INSTAGRAM_NO_FALLBACK_FLASH_V1 */

/*
 * While Instagram embed.js is converting the source
 * blockquote into the official post, hide only the
 * fallback anchor content. The blockquote remains available
 * to Instagram for normal hydration and sizing.
 */
/*
 * Loktej CMS Instagram markup may wrap its fallback
 * anchor inside a direct <strong> element:
 *
 *   blockquote > strong > a
 *
 * Hide both supported source fallback shapes while
 * Instagram is hydrating. Do not hide the blockquote
 * itself, because embed.js needs it for conversion.
 */
.article-content blockquote.instagram-media.instagram-embed-pending > a,
.article-content blockquote.instagram-media.instagram-embed-pending > strong {
    visibility: hidden !important;
}

/* VIMSAR_INSTAGRAM_CMS_PENDING_STATE_V2 */

/*
 * Durable loading state for Loktej CMS Instagram embeds.
 *
 * The source blockquote remains in the DOM so Instagram
 * embed.js can process it, but the source/fallback rendering
 * cannot flash before the official iframe is ready.
 *
 * If Instagram replaces the blockquote with its official
 * iframe, this selector no longer applies automatically.
 */
.article-content blockquote.instagram-media[data-vimsar-instagram-pending="1"] {
    visibility: hidden !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    min-height: 0 !important;
}



/* VIMSAR_INSTAGRAM_LOADING_SHELL_V3 */

/*
 * Keep Instagram completely invisible until the
 * official generated iframe has actually loaded.
 *
 * Width remains measurable for embed.js, while zero
 * visible height prevents URL boxes, skeletons and the
 * initial grey iframe strip from flashing.
 */
.article-content .vimsar-instagram-shell {
    box-sizing: border-box;
    width: 100%;
    max-width: 550px;
    margin: 20px auto;
    overflow: visible;
}

.article-content .vimsar-instagram-shell.vimsar-instagram-loading {
    height: 0 !important;
    min-height: 0 !important;
    max-height: 0 !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    visibility: hidden !important;
}

.article-content .vimsar-instagram-shell > blockquote.instagram-media,
.article-content .vimsar-instagram-shell > iframe.instagram-media,
.article-content .vimsar-instagram-shell > iframe.instagram-media-rendered {
    margin-left: auto !important;
    margin-right: auto !important;
}

/* VIMSAR_YOUTUBE_WIDE_16X9_V1 */

/*
 * Existing article YouTube embeds are landscape videos.
 *
 * Source iframe width/height attributes must not dictate
 * the responsive player dimensions. Width follows the
 * article container; height is derived from 16:9.
 *
 * Vertical/Shorts embeds will receive their own explicit
 * 9:16 class/rule in the dedicated Shorts test.
 */
.article-content iframe[src*="youtube.com/embed/"],
.article-content iframe[src*="youtube-nocookie.com/embed/"] {
    display: block;
    width: 100% !important;
    max-width: 100% !important;

    height: auto !important;
    aspect-ratio: 16 / 9;

    margin: 20px auto;
    border: 0;
    background: #000;
}

/* VIMSAR_YOUTUBE_BOTTOM_SPACING_V1 */

/*
 * Keep normal breathing room above YouTube,
 * but avoid stacking iframe bottom-margin with the
 * following paragraph's own top-margin.
 */
.article-content iframe[src*="youtube.com/embed/"],
.article-content iframe[src*="youtube-nocookie.com/embed/"] {
    margin-top: 20px;
    margin-right: auto;
    margin-bottom: 0;
    margin-left: auto;
}

/* VIMSAR_YOUTUBE_SHORTS_9X16_V1 */

/*
 * Vertical YouTube/Shorts player:
 * - mobile: available article width
 * - desktop/tablet: capped so portrait video does not
 *   become excessively large
 * - original 9:16 ratio preserved
 */
.article-content iframe.youtube-short-embed {
    display: block;

    width: min(100%, 420px) !important;
    max-width: 100% !important;

    height: auto !important;
    aspect-ratio: 9 / 16 !important;

    margin-top: 20px;
    margin-right: auto;
    margin-bottom: 0;
    margin-left: auto;

    border: 0;
    background: #000;
}

/* VIMSAR_FACEBOOK_POST_LAYOUT_V1 */

.article-content .fb-post,
.article-content .fb_iframe_widget {
    display: block;
    width: 100%;
    max-width: 500px;
    margin: 20px auto 0;
}


.article-content .fb_iframe_widget > span {
    display: block !important;
    max-width: 100% !important;
    margin: 0 auto !important;
}


.article-content .fb_iframe_widget iframe {
    max-width: 100% !important;
}


/*
 * Avoid an additional empty source spacer immediately
 * beneath the Facebook widget itself.
 */
.article-content .fb-post + p:empty,
.article-content .fb_iframe_widget + p:empty {
    display: none;
}

/* VIMSAR_FACEBOOK_VIDEO_EMBED_LAYOUT_V1 */

/*
 * Facebook Video Plugin:
 * source dimensions 560 × 314.
 *
 * Desktop remains capped at the native embed width.
 * Mobile uses the available article width while keeping
 * the original player aspect ratio.
 */
.article-content iframe.facebook-video-embed {
    display: block;

    width: min(100%, 560px) !important;
    max-width: 100% !important;

    height: auto !important;
    aspect-ratio: 560 / 314;

    margin-top: 20px;
    margin-right: auto;
    margin-bottom: 0;
    margin-left: auto;

    border: 0;
    background: #000;
}

/*
 * VIMSAR_ARTICLE_READ_FLOW_CANONICAL_V1
 *
 * Single authoritative Reader rule-set for:
 * - compact Read More separator/button
 * - collapsed Recommended spacing
 * - expanded Recommended separator
 *
 * Historical incremental override blocks were consolidated
 * to avoid future cascade conflicts.
 *
 * IMPORTANT:
 * Collapsed Read More visual state preserves the currently
 * approved V2 appearance.
 */


/* =========================================================
 * COLLAPSED READ MORE
 * ========================================================= */

.read-more-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;

    /*
     * Preserve existing base padding and approved
     * compact V2 vertical position.
     */
    padding: 0;
    margin-top: 13px;
    margin-bottom: 0;

    text-align: center;
}


.read-more-wrap::before,
.read-more-wrap::after {
    content: "";

    flex: 1 1 auto;
    min-width: 20px;
    height: 1px;

    background: #a7192d;
    opacity: .9;
}


.read-more-wrap .read-more {
    flex: 0 0 auto;

    min-width: 0;
    min-height: 0;

    margin: 0;
    padding: 7px 18px;

    border: 1px solid #a7192d;
    border-radius: 999px;

    background: #fff;
    color: #a7192d;

    font-size: 15px;
    font-weight: 700;
    line-height: 1.2;

    box-shadow: none;
    cursor: pointer;
    white-space: nowrap;
}


.read-more-wrap .read-more:hover,
.read-more-wrap .read-more:focus-visible {
    background: #fff7f8;
}



/*
 * Collapsed Read More effective-rhythm normalization.
 *
 * The normal article has 32px bottom padding and source
 * paragraphs have their own bottom margin. Both would stack
 * with the intended Read More spacing.
 */
.article.article-has-read-more {
    padding-bottom: 0;
}

.article-content > .read-more-boundary-end {
    margin-bottom: 0;
}

/* =========================================================
 * RECOMMENDED — COLLAPSED ARTICLE
 *
 * Read More's own horizontal line acts as the separator,
 * therefore Recommended receives no additional top border.
 * ========================================================= */

.article-recommended {
    margin-top: 13px;
    padding-top: 0;
}


.article-recommended .section-title {
    margin-top: 0;
    margin-bottom: 8px;

    font-size: 15px;
    line-height: 1.2;
}


/* =========================================================
 * RECOMMENDED — EXPANDED ARTICLE
 *
 * Expanded Recommended rhythm is standardized at 8px.
 * Use the same 8px rhythm around the Recommended section:
 *
 * article last line
 *      8px
 * separator
 *      8px
 * "ये भी पढ़ें"
 * ========================================================= */

/*
 * Remove only the final source element's own bottom margin
 * after full expansion so it cannot add an unpredictable
 * second gap before the separator.
 */

.article-full-expanded
.article {
    padding-bottom: 0;
}
.article-full-expanded
.article-content > :last-child {
    margin-bottom: 0;
}


.article-full-expanded
.article-recommended {
    border-top: 1px solid #e5e7eb;

    /*
     * Expanded Recommended vertical rhythm:
     *
     * Article end -> separator = 8px
     * Separator -> heading      = 8px
     * Heading -> first card     = 8px
     * Last card -> lower edge   = 8px
     */
    margin-top: 13px;
    padding-top: 13px;
    padding-bottom: 8px;
}
.article-full-expanded
.article-recommended
.section-title {
    margin-bottom: 0;
}

/* VIMSAR_RECOMMENDED_LAST_SEPARATOR_WITH_NEXT_ARTICLE_V1 */

/*
 * A stacked article that is NOT the final child of #readerMain
 * is followed by the visual "अगली खबर" divider.
 *
 * Keep separator lines between Recommended cards, but remove
 * only the grey border below the final Recommended card when
 * another stacked story follows.
 *
 * The final stacked article keeps its existing last-card
 * boundary because no "अगली खबर" divider follows it.
 *
 * Approved 13px Reader rhythm is unchanged.
 */
.article-flow-item:not(:last-child)
.article-recommended {
    padding-bottom: 0;
}

.article-flow-item:not(:last-child)
.article-recommended
.compact:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

/* VIMSAR_READER_CHROME_TASK2_V1
 *
 * Reader-native Top Bar + Footer additions only.
 * Article / Read More / Recommended / stacked flow styles
 * are intentionally untouched.
 */

.brand {
    flex: 0 0 auto;
    min-width: 0;
    max-width: 42%;
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.brand[hidden] {
    display: none;
}

.brand-logo {
    display: block;
    width: auto;
    height: auto;
    max-width: 140px;
    max-height: 34px;
    object-fit: contain;
}

.toplinks {
    flex: 1 1 auto;
    min-width: 0;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.toplinks::-webkit-scrollbar {
    display: none;
}

.toplinks a {
    flex: 0 0 auto;
    gap: 6px;
}

.toplink-icon {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    object-fit: contain;
}

.footer-brand {
    align-self: center;
    font-size: 18px;
    line-height: 1.3;
    font-weight: 800;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 2px 10px;
    margin-top: 3px;
}

.footer-links a {
    min-height: 40px;
    padding: 6px 4px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #444;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
}

.footer-links .toplink-icon {
    width: 16px;
    height: 16px;
    flex-basis: 16px;
}

@media (max-width:420px) {
    .topbar {
        padding-left: 10px;
        padding-right: 10px;
        gap: 8px;
    }

    .brand {
        max-width: 38%;
    }

    .brand-logo {
        max-width: 116px;
        max-height: 30px;
    }

    .toplinks {
        gap: 6px;
    }

    .toplinks a {
        min-height: 40px;
        padding-left: 9px;
        padding-right: 9px;
    }
}

/* VIMSAR_TASK2R_TOPBAR_V1
 *
 * Main branding is fixed left and clickable Home.
 * Configured URL/category items occupy the right scroll strip.
 */

.topbar {
    gap: 16px;
}

.brand {
    flex: 0 0 auto;
    max-width: 150px;
}

.brand-logo {
    max-width: 140px;
    max-height: 36px;
}

.toplinks {
    margin-left: auto;
    justify-content: safe flex-end;
}

.toplinks a.toplink-logo-link {
    min-width: auto;
    min-height: 40px;
    padding: 4px 7px;
    border: 0;
    background: transparent;
    box-shadow: none;
    font-size: 0;
}

.toplinks a.toplink-logo-link:hover {
    background: #f8fafc;
}

.toplinks .toplink-logo-link .toplink-icon {
    display: block;
    width: auto;
    height: auto;
    max-width: 92px;
    max-height: 30px;
    flex: 0 0 auto;
    object-fit: contain;
}

.toplinks .toplink-category {
    flex: 0 0 auto;
}

@media (max-width:420px) {
    .topbar {
        gap: 12px;
    }

    .brand {
        max-width: 120px;
    }

    .brand-logo {
        max-width: 112px;
        max-height: 30px;
    }

    .toplinks .toplink-logo-link .toplink-icon {
        max-width: 78px;
        max-height: 27px;
    }
}

/* VIMSAR_TASK2R_TOPBAR_SIZE_V1
 *
 * Final Reader Top Bar visual refinement.
 *
 * Main Loktej branding remains deliberately more prominent
 * than right-side configured link logos.
 *
 * Desktop:
 * - Loktej: 44px max-height
 * - Link logos: 36px max-height
 *
 * Mobile:
 * - Loktej: 40px max-height
 * - Link logos: 32px max-height
 */

.topbar {
    min-height: 52px;
    padding: 4px 14px;
    gap: 14px;
}

.brand {
    max-width: 158px;
}

.brand-logo {
    max-width: 150px;
    max-height: 44px;
}

.toplinks {
    gap: 5px;
}

.toplinks a.toplink-logo-link {
    min-height: 40px;
    padding: 2px 5px;
}

.toplinks .toplink-logo-link .toplink-icon {
    max-width: 128px;
    max-height: 36px;
}

@media (max-width:420px) {
    .topbar {
        min-height: 48px;
        padding-top: 4px;
        padding-bottom: 4px;
        gap: 10px;
    }

    .brand {
        max-width: 136px;
    }

    .brand-logo {
        max-width: 130px;
        max-height: 40px;
    }

    .toplinks {
        gap: 4px;
    }

    .toplinks a.toplink-logo-link {
        min-height: 36px;
        padding: 2px 4px;
    }

    .toplinks .toplink-logo-link .toplink-icon {
        max-width: 112px;
        max-height: 32px;
    }
}

/* VIMSAR_TASK2R_TOPBAR_TEXT_HOVER_V1
 *
 * Desktop/web pointer hover only.
 * Applies to textual Top Bar links/categories.
 * Logo links remain visually unchanged.
 */
@media (hover: hover) and (pointer: fine) {
    .toplinks a:not(.toplink-logo-link):hover {
        background: #b00020;
        border-color: #b00020;
        color: #ffffff;
    }
}

/* VIMSAR_TASK2R_TOPBAR_TEXT_BUTTON_COMPACT_V1
 *
 * Compact textual Top Bar links/categories on desktop and mobile.
 * Font size intentionally unchanged.
 * Logo links are excluded.
 */
.toplinks a:not(.toplink-logo-link) {
    min-height: 34px;
    padding: 4px 8px;
}

/* VIMSAR_READER_SOCIAL_FOOTER_STYLE_D2_V1
 *
 * Reader-native social footer.
 * Article / Read More / Recommended / stacked-flow rhythm
 * is intentionally untouched.
 */

.footer {
    padding: 24px 14px 22px;
    gap: 0;
    align-items: center;
    border-top: 8px solid #f4f5f7;
    text-align: center;
}

.reader-footer-shell {
    width: 100%;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.reader-footer-heading {
    margin: 0 0 12px;
    color: #222;
    font-size: 18px;
    line-height: 1.3;
    font-weight: 800;
}

.reader-footer-socials {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.reader-footer-social-link {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 7px;

    border: 1px solid #e5e7eb;
    border-radius: 50%;

    background: #fff;
    color: #374151;

    box-shadow: 0 1px 2px rgba(0,0,0,.04);
}

.reader-footer-social-icon {
    display: block;
    width: 100%;
    height: 100%;
    overflow: visible;
}

.reader-footer-social-link[data-platform="facebook"] {
    color: #1877f2;
}

.reader-footer-social-link[data-platform="x"] {
    color: #000;
}

.reader-footer-social-link[data-platform="youtube"] {
    color: #ff0000;
}

.reader-footer-social-link[data-platform="instagram"] {
    color: #e1306c;
}

.reader-footer-social-link[data-platform="telegram"] {
    color: #229ed9;
}

.reader-footer-social-link[data-platform="whatsapp"] {
    color: #25d366;
}

.reader-footer-social-link:focus-visible {
    outline: 2px solid #a7192d;
    outline-offset: 3px;
}

.reader-footer-copyright {
    width: 100%;
    margin-top: 13px;
    padding-top: 13px;

    border-top: 1px solid #e5e7eb;

    color: #777;
    font-size: 13px;
    line-height: 1.5;
    text-align: center;
    white-space: pre-line;
    overflow-wrap: anywhere;
}

@media (hover: hover) and (pointer: fine) {
    .reader-footer-social-link:hover {
        background: #f8fafc;
        border-color: #d1d5db;
    }
}

@media (max-width: 420px) {
    .footer {
        padding: 21px 12px 20px;
    }

    .reader-footer-heading {
        margin-bottom: 10px;
        font-size: 17px;
    }

    .reader-footer-socials {
        gap: 8px;
    }

    .reader-footer-social-link {
        width: 38px;
        height: 38px;
        flex-basis: 38px;
        padding: 6px;
    }

    .reader-footer-copyright {
        margin-top: 13px;
        padding-top: 13px;
        font-size: 12px;
    }
}

/* VIMSAR_CATEGORY_ENHANCED_PAGINATION_STYLE_V1
 *
 * Category-page-only pagination refinement.
 * Existing Latest pagination remains unchanged.
 *
 * Locked Reader spacing:
 * exactly 13px above and below this pagination block.
 */

.category-pagination {
    margin: 13px 0;
    padding: 0 14px;

    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;

    gap: 8px;
}

.category-pagination-group {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.category-pagination button {
    min-width: 54px;
    min-height: 38px;

    padding: 6px 10px;

    border-radius: 7px;

    font: inherit;
    font-weight: 700;

    white-space: nowrap;
}

.category-pagination-status {
    min-width: 0;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    gap: 2px;

    color: #555;
    font-size: 13px;
    line-height: 1.35;
    text-align: center;
}

.category-pagination-page-status {
    font-weight: 700;
    color: #333;
}

.category-pagination-count-status {
    white-space: nowrap;
}

.category-pagination-jump {
    display: flex;
    align-items: center;
    justify-content: center;

    gap: 6px;

    color: #444;
    font-size: 13px;
    font-weight: 600;
}

.category-pagination-input {
    width: 58px;
    min-height: 38px;

    box-sizing: border-box;

    padding: 5px 6px;

    border: 1px solid #d1d5db;
    border-radius: 7px;

    background: #fff;
    color: #222;

    font: inherit;
    text-align: center;
}

.category-pagination-input:focus {
    outline: 2px solid #a7192d;
    outline-offset: 1px;
}

.category-pagination .category-pagination-go {
    min-width: 48px;
}

@media (max-width: 420px) {

    .category-pagination {
        margin-top: 13px;
        margin-bottom: 13px;

        padding-left: 10px;
        padding-right: 10px;

        gap: 8px 6px;
    }

    .category-pagination-status {
        order: 1;
        flex: 1 0 100%;
    }

    .category-pagination-start,
    .category-pagination-end {
        order: 2;
        flex: 1 1 calc(50% - 3px);
    }

    .category-pagination-jump {
        order: 3;
        flex: 1 0 100%;
    }

    .category-pagination button {
        min-width: 50px;
        min-height: 38px;
        padding-left: 8px;
        padding-right: 8px;
    }

    .category-pagination-input {
        width: 56px;
        min-height: 38px;
    }
}

/* VIMSAR_PAGINATION_MOBILE_THREE_ROW_V1
 *
 * Shared Category + Latest mobile pagination.
 *
 * Row 1: status
 * Row 2: First | Prev | Next | Last
 * Row 3: Page [input] Go
 *
 * Desktop layout remains unchanged.
 */

@media (max-width: 420px) {

    .category-pagination {
        display: grid;

        grid-template-columns:
            repeat(
                4,
                minmax(0, 1fr)
            );

        align-items: center;

        margin-top: 13px;
        margin-bottom: 13px;

        padding-left: 10px;
        padding-right: 10px;

        gap: 8px 6px;
    }


    .category-pagination-status {
        grid-column: 1 / -1;
        grid-row: 1;

        order: initial;

        width: 100%;
        min-width: 0;
    }


    .category-pagination-start {
        grid-column: 1 / 3;
        grid-row: 2;

        order: initial;

        display: grid;

        grid-template-columns:
            repeat(
                2,
                minmax(0, 1fr)
            );

        gap: 6px;

        min-width: 0;
    }


    .category-pagination-end {
        grid-column: 3 / 5;
        grid-row: 2;

        order: initial;

        display: grid;

        grid-template-columns:
            repeat(
                2,
                minmax(0, 1fr)
            );

        gap: 6px;

        min-width: 0;
    }


    .category-pagination-start
    .category-pagination-button,
    .category-pagination-end
    .category-pagination-button {
        width: 100%;
        min-width: 0;
    }


    .category-pagination-jump {
        grid-column: 1 / -1;
        grid-row: 3;

        order: initial;

        width: 100%;

        justify-content: center;
    }


    .category-pagination-jump
    .category-pagination-go {
        width: auto;
        min-width: 48px;
    }
}

/*
 * VIMSAR_READER_PREFERENCES_STYLE_TASK3_V1
 *
 * Three-dots control is outside the scrollable Top Bar link
 * strip. Existing logo/link dimensions remain untouched.
 */

.reader-preferences-button {
    flex: 0 0 34px;
    width: 34px;
    height: 34px;

    margin: 0 4px 0 6px;
    padding: 0;

    border: 0;
    border-radius: 50%;

    background: #f3f4f6;
    color: #374151;

    font: inherit;
    font-size: 20px;
    font-weight: 700;
    line-height: 1;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    cursor: pointer;
}

.reader-preferences-button:hover,
.reader-preferences-button:focus-visible {
    background: #e5e7eb;
}

.reader-preferences-button:focus-visible {
    outline: 2px solid #b00020;
    outline-offset: 2px;
}


.reader-preferences-panel {
    background: #ffffff;

    border-bottom:
        1px solid #e5e7eb;

    box-shadow:
        0 6px 18px
        rgba(0,0,0,0.12);

    padding: 13px;

    max-height: min(70vh, 620px);
    overflow-y: auto;
    overscroll-behavior: contain;

    position: relative;
    z-index: 40;
}


.reader-preferences-header {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 12px;

    margin-bottom: 13px;
}


.reader-preferences-title {
    margin: 0;

    color: #111827;

    font-size: 16px;
    font-weight: 800;
    line-height: 1.3;
}


.reader-preferences-close {
    flex: 0 0 32px;

    width: 32px;
    height: 32px;

    padding: 0;

    border: 0;
    border-radius: 50%;

    background: #f3f4f6;
    color: #374151;

    font-size: 22px;
    line-height: 1;

    cursor: pointer;
}


.reader-preferences-intro {
    margin: 0 0 13px;

    color: #6b7280;

    font-size: 13px;
    line-height: 1.45;
}


.reader-preferences-toolbar {
    display: flex;
    justify-content: flex-end;

    margin-bottom: 8px;
}


.reader-preferences-select-all {
    border:
        1px solid #d1d5db;

    border-radius: 999px;

    background: #ffffff;
    color: #374151;

    padding: 6px 10px;

    font: inherit;
    font-size: 12px;
    font-weight: 700;

    cursor: pointer;
}


.reader-preferences-category-list {
    display: grid;

    grid-template-columns:
        repeat(
            2,
            minmax(0,1fr)
        );

    gap: 0 18px;
}


.reader-preferences-category {
    display: flex;
    align-items: flex-start;

    gap: 8px;

    min-width: 0;

    padding: 8px 0;

    color: #111827;

    font-size: 14px;
    line-height: 1.3;

    cursor: pointer;
}


.reader-preferences-checkbox {
    flex: 0 0 auto;

    width: 17px;
    height: 17px;

    margin: 1px 0 0;

    accent-color: #b00020;
}


.reader-preferences-category span {
    min-width: 0;

    overflow-wrap: anywhere;
}


.reader-preferences-warning {
    margin-top: 8px;

    border-radius: 8px;

    background: #fff7ed;
    color: #c2410c;

    padding: 8px 10px;

    font-size: 13px;
    font-weight: 700;
    line-height: 1.35;
}


.reader-preferences-warning[hidden] {
    display: none;
}


.reader-preferences-save {
    width: 100%;

    margin-top: 13px;

    border: 0;
    border-radius: 10px;

    background: #b00020;
    color: #ffffff;

    padding: 10px 12px;

    font: inherit;
    font-size: 14px;
    font-weight: 800;

    cursor: pointer;
}


.reader-preferences-save:disabled {
    opacity: 0.7;
    cursor: default;
}


.reader-preferences-legal {
    margin-top: 13px;

    border-top:
        1px solid #e5e7eb;

    padding-top: 13px;
}


.reader-preferences-legal summary {
    color: #374151;

    font-size: 13px;
    font-weight: 800;

    cursor: pointer;
}


.reader-preferences-legal-links {
    display: grid;

    gap: 8px;

    margin-top: 10px;
}


.reader-preferences-legal-link {
    display: block;

    border:
        1px solid #e5e7eb;

    border-radius: 9px;

    background: #ffffff;
    color: #111827;

    padding: 9px 10px;

    text-decoration: none;

    font-size: 13px;
    font-weight: 700;
}


.reader-preferences-loading,
.reader-preferences-empty,
.reader-preferences-error {
    color: #6b7280;

    padding: 8px 0;

    font-size: 14px;
    line-height: 1.4;
}


@media (max-width: 560px) {

    .reader-preferences-button {
        flex-basis: 32px;

        width: 32px;
        height: 32px;

        margin-left: 4px;
    }

    .reader-preferences-panel {
        padding: 13px 12px;
    }

    /*
     * VIMSAR_READER_THREEDOTS_MOBILE_TWO_COLUMNS_TASK4_V1
     *
     * Keep the category chooser compact on phones too.
     * Desktop already uses two columns; mobile now retains
     * the same two-column structure instead of collapsing to one.
     */
    .reader-preferences-category-list {
        grid-template-columns:
            repeat(
                2,
                minmax(0,1fr)
            );

        gap: 0 12px;
    }
}

/*
 * VIMSAR_READER_THREE_DOTS_GAP_TASK3_V1
 *
 * Reduce only the visual gap between the scrollable
 * Top Bar links/categories and the fixed three-dots control.
 * Logo/link dimensions and internal Top Bar link gaps stay locked.
 */
.reader-preferences-button {
    margin-left: -2px;
}

@media (max-width: 560px) {
    .reader-preferences-button {
        margin-left: -2px;
    }
}

/*
 * VIMSAR_READER_TOPBAR_VERTICAL_CENTER_TASK3_V1
 *
 * Explicitly center the scrollable Top Bar item strip and the
 * fixed three-dots control on the same vertical axis.
 *
 * Horizontal spacing, dimensions and locked link/logo sizing
 * are intentionally unchanged.
 */
.toplinks {
    align-items: center;
}

.reader-preferences-button {
    align-self: center;
}

/*
 * VIMSAR_READER_THREE_DOTS_RIGHT_ALIGN_TASK3_V1
 *
 * Align the visible right edge of the fixed three-dots circle
 * with the Reader content / feature-image right edge.
 *
 * Top Bar right padding remains 14px.
 * Only the button's previous 4px right margin is removed.
 */
.reader-preferences-button {
    margin-right: 0;
}

/*
 * VIMSAR_READER_SAVE_STATUS_STYLE_TASK3_V1
 *
 * Confirmation remains inside Three-Dots settings after Save.
 */
.reader-preferences-save-status {
    margin-top: 13px;
    padding: 8px 10px;

    border: 1px solid #bbf7d0;
    border-radius: 8px;

    background: #f0fdf4;
    color: #166534;

    font-size: 13px;
    font-weight: 700;
    line-height: 1.35;
}

/*
 * VIMSAR_ARTICLE_HEADING_LINEHEIGHT_REFINEMENT_V1
 *
 * Slightly increased multi-line spacing for Article Title
 * and Subtitle so Devanagari matras do not appear crowded.
 *
 * Title: 1.30 -> 1.36
 * Subtitle: 1.45 -> 1.50
 *
 * Font sizes, margins and article body remain unchanged.
 */

/* VIMSAR_READER_FOOTER_FLASH_LAYOUT_GUARD_V1
 *
 * During initial/route loading, Reader content may be
 * temporarily short or empty while API data is fetched.
 *
 * Reserve the remaining viewport height for #readerMain
 * so the footer cannot jump underneath the Top Bar before
 * meaningful Home / Category / Article content is rendered.
 *
 * This is layout-only. Article, Read More, Recommended,
 * stacked-flow and locked 13px rhythm remain untouched.
 */
#readerMain {
    min-height: calc(100vh - 52px);
    min-height: calc(100dvh - 52px);
}

@media (max-width: 420px) {
    #readerMain {
        min-height: calc(100vh - 48px);
        min-height: calc(100dvh - 48px);
    }
}


/* VIMSAR_READER_SHARING_ACTIONS_V1
 *
 * Article sharing phase:
 * - metadata Share: right aligned
 * - article-end Google News: left aligned
 * - article-end Share: right aligned
 * - Direct WhatsApp intentionally deferred
 */

.article-meta
.article-share-button-meta {
    margin-left:
        auto;
}


.article-share-button {
    flex:
        0 0 auto;

    width:
        34px;

    height:
        34px;

    display:
        inline-flex;

    align-items:
        center;

    justify-content:
        center;

    padding:
        0;

    border:
        1px solid #d8dadd;

    border-radius:
        50%;

    background:
        #ffffff;

    color:
        #374151;

    cursor:
        pointer;

    box-shadow:
        none;
}


.article-share-button:hover,
.article-share-button:focus-visible {
    background:
        #f7f7f8;

    border-color:
        #c5c8cc;
}


.article-share-button:disabled {
    opacity:
        .55;

    cursor:
        default;
}


.article-share-button svg {
    width:
        17px;

    height:
        17px;

    fill:
        none;

    stroke:
        currentColor;

    stroke-width:
        2;

    stroke-linecap:
        round;

    stroke-linejoin:
        round;
}


.article-end-actions {
    margin-top:
        13px;

    display:
        flex;

    align-items:
        center;

    justify-content:
        space-between;

    gap:
        12px;

    width:
        100%;

    font-size:
        13px;

    line-height:
        1.2;
}


/*
 * VIMSAR_READER_GOOGLE_TRUSTED_SOURCE_CTA_STYLE_V1
 *
 * Two-face rotating Google source CTA:
 *
 *   Add [Loktej title logo] as a
 *   Trusted source on G
 *
 * Cycle intentionally mirrors the supplied publisher example
 * without changing the approved article-end row geometry.
 */
.article-google-news-follow {
    position:
        relative;

    flex:
        0 0 154px;

    width:
        154px;

    height:
        34px;

    display:
        inline-flex;

    align-items:
        center;

    justify-content:
        center;

    overflow:
        hidden;

    padding:
        0 9px;

    border:
        1px solid #dadce0;

    border-radius:
        999px;

    background:
        #ffffff;

    color:
        #303134;

    font-size:
        11px;

    font-weight:
        600;

    line-height:
        1;

    text-decoration:
        none;

    white-space:
        nowrap;
}


.article-google-news-follow:hover,
.article-google-news-follow:focus-visible {
    background:
        #f8f9fa;

    border-color:
        #c8cacc;
}


.article-google-source-face {
    position:
        absolute;

    inset:
        0;

    display:
        flex;

    align-items:
        center;

    justify-content:
        center;

    gap:
        4px;

    padding:
        0 8px;

    will-change:
        transform,
        opacity;
}


.article-google-source-face-add {
    animation:
        vimsarGoogleSourceFaceAdd
        4s
        ease-in-out
        infinite;
}


.article-google-source-face-trusted {
    animation:
        vimsarGoogleSourceFaceTrusted
        4s
        ease-in-out
        infinite;
}


.article-google-source-copy {
    display:
        inline-flex;

    align-items:
        center;

    flex:
        0 0 auto;
}


.article-google-source-brand {
    height:
        18px;

    max-width:
        58px;

    display:
        inline-flex;

    align-items:
        center;

    justify-content:
        center;

    overflow:
        hidden;

    flex:
        0 1 auto;
}


.article-google-source-loktej-logo {
    display:
        block;

    width:
        auto;

    height:
        18px;

    max-width:
        58px;

    object-fit:
        contain;
}


.article-google-source-loktej-text {
    color:
        #c62828;

    font-size:
        12px;

    font-weight:
        800;
}


.article-google-source-google-g {
    display:
        inline-block;

    flex:
        0 0 auto;

    font-family:
        Arial,
        sans-serif;

    font-size:
        15px;

    font-weight:
        700;

    line-height:
        1;

    background:
        conic-gradient(
            from -45deg,
            #4285f4 0deg 90deg,
            #34a853 90deg 180deg,
            #fbbc05 180deg 270deg,
            #ea4335 270deg 360deg
        );

    -webkit-background-clip:
        text;

    background-clip:
        text;

    color:
        transparent;
}


@keyframes vimsarGoogleSourceFaceAdd {

    0%,
    42% {
        opacity:
            1;

        transform:
            translateY(0);
    }

    48%,
    94% {
        opacity:
            0;

        transform:
            translateY(-7px);
    }

    100% {
        opacity:
            1;

        transform:
            translateY(0);
    }
}


@keyframes vimsarGoogleSourceFaceTrusted {

    0%,
    42% {
        opacity:
            0;

        transform:
            translateY(7px);
    }

    48%,
    94% {
        opacity:
            1;

        transform:
            translateY(0);
    }

    100% {
        opacity:
            0;

        transform:
            translateY(7px);
    }
}


@media (prefers-reduced-motion: reduce) {

    .article-google-source-face-add {
        animation:
            none;

        opacity:
            1;

        transform:
            none;
    }


    .article-google-source-face-trusted {
        display:
            none;
    }
}


@media (max-width:420px) {

    .article-end-actions {
        gap:
            8px;
    }


    .article-google-news-follow {
        flex-basis:
            148px;

        width:
            148px;
    }
}



/* VIMSAR_READER_MOBILE_TOP_ACTIONS_STYLE_V1
 *
 * Desktop:
 *   existing metadata Share remains unchanged.
 *
 * Mobile:
 *   metadata contains text only;
 *   Google Trusted Source + Share move to a dedicated row
 *   immediately below metadata.
 *
 * Google CTA inline contents use an explicit common height
 * so English copy and the Loktej title logo share the same
 * vertical center.
 */

.article-mobile-header-actions {
    display:
        none;
}


/*
 * Explicit vertical-center box shared by text and publisher
 * logo. This avoids baseline differences between IMG and text.
 */
.article-google-source-copy {
    height:
        18px;

    display:
        inline-flex;

    align-items:
        center;

    justify-content:
        center;

    line-height:
        18px;

    vertical-align:
        middle;
}


.article-google-source-brand {
    height:
        18px;

    align-self:
        center;

    vertical-align:
        middle;
}


.article-google-source-loktej-logo {
    height:
        18px;

    align-self:
        center;

    vertical-align:
        middle;
}


.article-google-source-google-g {
    align-self:
        center;

    vertical-align:
        middle;
}


@media (max-width:600px) {

    /*
     * Remove only the metadata-line Share on phones.
     * Desktop/tablet layout is intentionally untouched.
     */
    .article-meta
    .article-share-button-meta {
        display:
            none;
    }


    /*
     * Reuse the already-approved article-end action-row
     * geometry for the mobile header action row.
     */
    .article-mobile-header-actions {
        display:
            flex;

        margin-top:
            10px;

        margin-bottom:
            0;
    }
}



/* VIMSAR_READER_DESKTOP_META_ACTIONS_STYLE_V1
 *
 * Desktop metadata/action contract:
 *
 *   [Author ? Category ? Date ? Time]   [Google CTA] [Share]
 *
 * Mobile keeps the separate header action row already approved.
 */

.article-meta-actions {
    margin-left:
        auto;

    display:
        inline-flex;

    align-items:
        center;

    justify-content:
        flex-end;

    gap:
        8px;

    flex:
        0 0 auto;
}


.article-meta-actions
.article-share-button-meta {
    margin-left:
        0;
}


/*
 * VIMSAR_GOOGLE_CTA_OPTICAL_TEXT_ALIGN_V1
 *
 * Font glyphs visually sit slightly above the optical center
 * of the Loktej title image even when both boxes are
 * mathematically centered. Move copy only 1px downward.
 * Publisher logo itself remains untouched.
 */
.article-google-source-copy {
    transform:
        translateY(1px);
}


@media (max-width:600px) {

    /*
     * Hide the complete Desktop/Web action cluster.
     * Mobile continues to use:
     *
     * Google CTA                         Share
     *
     * in .article-mobile-header-actions.
     */
    .article-meta-actions {
        display:
            none;
    }
}

/*
 * VIMSAR_NATIVE_NOTIFICATION_UI_14E24_V1
 *
 * Native Android notification onboarding + Three-Dots controls.
 * Browser web-push is intentionally outside this phase.
 */

.reader-notification-settings {
    margin-top: 13px;
    padding-top: 13px;

    border-top:
        1px solid #e5e7eb;
}

.reader-notification-settings-title {
    margin-bottom: 5px;

    color: #111827;

    font-size: 14px;
    font-weight: 800;
    line-height: 1.3;
}

.reader-notification-settings-status {
    margin-bottom: 9px;

    color: #6b7280;

    font-size: 12px;
    line-height: 1.4;
}

.reader-notification-settings-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;

    gap: 8px;
}

.reader-notification-enable,
.reader-notification-disable {
    border: 0;
    border-radius: 999px;

    padding: 8px 12px;

    font: inherit;
    font-size: 12px;
    font-weight: 800;

    cursor: pointer;
}

.reader-notification-enable {
    background: #b00020;
    color: #ffffff;
}

.reader-notification-disable {
    background: #374151;
    color: #ffffff;
}

.reader-notification-enable:disabled,
.reader-notification-disable:disabled {
    opacity: 0.65;
    cursor: default;
}

.reader-notification-disable[hidden] {
    display: none;
}


.vimsar-notification-prompt {
    position: fixed;
    inset: 0;

    z-index: 500;

    display: flex;
    align-items: center;
    justify-content: center;

    box-sizing: border-box;

    padding:
        max(18px, var(--vimsar-native-safe-top, env(safe-area-inset-top)))
        18px
        max(18px, var(--vimsar-native-safe-bottom, env(safe-area-inset-bottom)));

    background:
        rgba(17,24,39,0.58);
}

.vimsar-notification-prompt-card {
    width: min(100%, 380px);

    box-sizing: border-box;

    border-radius: 16px;

    background: #ffffff;
    color: #111827;

    box-shadow:
        0 18px 48px
        rgba(0,0,0,0.25);

    padding: 20px;
}

.vimsar-notification-prompt-title {
    margin: 0 0 9px;

    font-size: 20px;
    font-weight: 900;
    line-height: 1.25;
}

.vimsar-notification-prompt-text {
    margin: 0;

    color: #4b5563;

    font-size: 14px;
    line-height: 1.5;
}

.vimsar-notification-prompt-status {
    min-height: 18px;

    margin-top: 10px;

    color: #6b7280;

    font-size: 12px;
    line-height: 1.4;
}

.vimsar-notification-prompt-actions {
    display: grid;

    grid-template-columns:
        minmax(0,1fr)
        auto;

    gap: 9px;

    margin-top: 15px;
}

.vimsar-notification-prompt-enable,
.vimsar-notification-prompt-later {
    border: 0;
    border-radius: 10px;

    padding: 10px 12px;

    font: inherit;
    font-size: 13px;
    font-weight: 800;

    cursor: pointer;
}

.vimsar-notification-prompt-enable {
    background: #b00020;
    color: #ffffff;
}

.vimsar-notification-prompt-later {
    background: #f3f4f6;
    color: #374151;
}

.vimsar-notification-prompt-enable:disabled,
.vimsar-notification-prompt-later:disabled {
    opacity: 0.65;
    cursor: default;
}

@media (max-width: 420px) {

    .vimsar-notification-prompt {
        align-items: flex-end;

        padding-left: 12px;
        padding-right: 12px;
    }

    .vimsar-notification-prompt-card {
        width: 100%;

        border-radius: 16px 16px 12px 12px;
    }

    .vimsar-notification-prompt-actions {
        grid-template-columns:
            1fr;
    }
}

/*
 * VIMSAR_ADMOB_MREC_SLOT_STYLE_1B_V1
 *
 * Provider-neutral 300x250 content-ad host.
 * Hidden until a native controller explicitly claims it.
 */
.vimsar-ad-slot[hidden] {
    display: none !important;
}

.vimsar-ad-slot-mrec {
    width: 300px;
    max-width: 100%;
    height: 250px;
    margin: 13px auto;
    padding: 0;
    position: relative;
    overflow: hidden;
}



/* VIMSAR_ADMOB_BOTTOM_SPACING_TASK1C_V1 */
:root {
    --vimsar-admob-bottom-occupied-height: 0px;
}

.app {
    padding-bottom: var(--vimsar-admob-bottom-occupied-height, 0px);
}

/* VIMSAR_NO_FEATURE_ARTICLE_TOP_GAP_FIX_V2
 * Current Reader inserts mobile header actions between metadata and content.
 * Some no-feature source HTML begins directly with a BR.
 * Hide only that first BR when article-content directly follows mobile actions.
 */
.article-mobile-header-actions + .article-content > br:first-child {
    display: none;
}

/* LOKTEJ_READER_INPAGE_SHARE_DIALOG_STYLE_V1 */
.reader-share-dialog-card { max-width: 420px; max-height: calc(100vh - 36px); overflow-y: auto; }
.reader-share-dialog-actions { grid-template-columns: repeat(2,minmax(0,1fr)); }
.reader-share-dialog-actions button { width: 100%; min-height: 42px; }
.reader-share-dialog-whatsapp { background: #128c7e; color: #ffffff; }
.reader-share-dialog-copy,
.reader-share-dialog-more,
.reader-share-dialog-close { background: #f3f4f6; color: #374151; }
@media (max-width: 420px) {
.reader-share-dialog-actions { grid-template-columns: 1fr; }
}/* LOKTEJ_NOTIFICATION_PROMPT_CENTER_V1_START */
#vimsarNotificationPrompt {
    position: fixed !important;
    inset: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-sizing: border-box !important;
    padding: 24px 18px 110px !important;
}

#vimsarNotificationPrompt .vimsar-notification-prompt-card {
    width: min(100%, 560px) !important;
    max-height: calc(100vh - 170px) !important;
    overflow-y: auto !important;
    margin: 0 auto !important;
}
/* LOKTEJ_NOTIFICATION_PROMPT_CENTER_V1_END */
