@charset "UTF-8";
/* Consolidated from inline <style> in _HeaderPartial.cshtml -> W3C-valid + CSP-clean. Order/cascade preserved. */

    /* GIGW 1.4.3: the logo links and the mobile accessibility toggle inherit Bootstrap's
       default link blue (#0d6efd) = 4.32:1 on the white header. The logo anchors wrap
       only <img>s (no visible text) and the toggle is mobile-only, so darkening to the
       header's dark teal (#0a4660 ≈ 8:1 on white) is visually neutral and clears the
       contrast check. Visible menu links keep their own .menu-link colour below. */
    header.bg-white .container a:has(> img),
    header.bg-white a.Govlogo-link,
    #popdowntoggle_mobile,
    #popdowntoggle_mobile .bi {
        color: var(--nav-bg, #095a6f) !important; /* theme-aware; always dark enough */
    }

    /* District-selector popover: the ">>" angle icons inherit #0d6efd (4.32:1 on the
       white popover). Darken the popover links + icons to the same dark teal. */
    #districtPopoverContent a.dropdown-item,
    #districtPopoverContent a.dropdown-item i {
        color: var(--nav-bg, #095a6f) !important; /* theme-aware; always dark enough */
    }

    /* Default nav link style */
    .menu-link {
        position: relative;
        color: #000; /* normal black text */
        font-weight: 400; /* normal text */
        padding-bottom: 4px; /* space for underline */
        text-decoration: none;
    }

        /* Hover + Active color and bold */
        .menu-link:hover,
        .menu-link.active {
            color: #b1004c !important; /* pink color */
            font-weight: 1000; /* bold text on hover/active */
        }

        /* Underline animation */
        .menu-link::after {
            content: "";
            position: absolute;
            left: 0;
            bottom: 0;
            height: 2px;
            width: 0;
            background-color: #b1004c; /* underline color */
            transition: width 0.3s ease;
        }

        /* Show underline on hover + active */
        .menu-link:hover::after,
        .menu-link.active::after {
            width: 100%;
        }


    /*   mark {
        background: orange;
        color: black;
    }*/

    mark {
        background: yellow;
    }

        mark.current {
            background: orange;
        }

/* ------------------------------------------------------------------ *
 * Brand mark, served as two images
 *
 * logo_01.jpg (660x339) was cut along one vertical line at x=215, giving a 215-wide symbol
 * and a 445-wide wordmark. Rendered at the same 80px height and at their original share of
 * the width — 160 x 215/660 = 52.12px and 160 x 445/660 = 107.88px — they add up to the
 * 160x80 the single image used to occupy, pixel for pixel. Nothing was redrawn.
 *
 * The fractional widths are deliberate: rounding them to 52 and 108 shifts the wordmark by
 * a quarter pixel and the seam becomes visible on a high-DPI screen.
 *
 * `display: block` on both and no gap between them: any whitespace between the two <img>
 * tags would otherwise render as a word space and split the mark.
 * ------------------------------------------------------------------ */
/* 23-Oct-2026: the header is back to the single logo_01.jpg (.brand-logo) so the logo has
   one alt text; the .brand-symbol / .brand-wordmark rules below are no longer used by
   _HeaderPartial and are kept only until the two split images are removed. */
.brand-logo {
    display: block;
    width: 160px;
    height: 80px;
    object-fit: contain;
    flex-shrink: 0;
}

/* Laptops: where the wordmark half used to be dropped (it freed ~108px so logo, name, quick
   links and emblem fit on one row), the whole logo is scaled down instead - same proportions,
   nothing cut. 120x60 frees 40px; the 992-1199px band below tightens the rest of the row. */
@media (max-width: 1199.98px) {
    .brand-logo {
        width: 120px !important;
        height: 60px !important;
    }
}

.brand-symbol,
.brand-wordmark {
    display: block;
    height: 80px;
    object-fit: contain;
}

.brand-symbol {
    width: 52.12px;
}

.brand-wordmark {
    width: 107.88px;
}

/* The anchor wraps both halves; making it a flex row removes the inter-tag whitespace and
   keeps the two pieces locked together however the header is laid out. */
.header-brand-link {
    display: flex;
    align-items: center;
}

/* The department-name block (.header-org-name / -title / -gov / -office) lives in
   header-org-name.css, shared with the district header. */

/* ------------------------------------------------------------------ *
 * The brand row, at EVERY width (no breakpoint band)
 *
 * The row is brand (logo + department name) on the left and the quick-links nav plus
 * the Maharashtra emblem on the right, and it had no way to give. Measured in a 1140px
 * Bootstrap container at a 1280px laptop:
 *
 *     symbol 52 + wordmark 108 + gap 14 + name up to ~260   = ~434px
 *     nav, five Marathi links with gaps                     = ~560px
 *     emblem                                                =   80px
 *                                                           -> ~1074px
 *
 * That fits 1140px, so a wide screen looks fine. At 992-1199px the container is 960px
 * and the same 1074px has nowhere to go — which is why this is wrong on a laptop as
 * well as on a tablet, and why fixing only the phone band would have missed it.
 *
 * Three rules, applied at all widths, so there is no band to fall between:
 *   1. the row may WRAP — if the nav cannot fit it takes its own line instead of
 *      crushing the brand. This is the safety net for every width nobody measured.
 *   2. every flex item gets min-width: 0 — the default `min-width: auto` is what makes
 *      a flex item refuse to shrink below its content and overflow its neighbour.
 *   3. the images never shrink (flex-shrink: 0), so the mark is never squashed; it is
 *      the text and the nav that give, and both can.
 * ------------------------------------------------------------------ */
.header-row {
    flex-wrap: wrap;
    row-gap: 6px;
}

.header-brand,
.header-actions {
    min-width: 0;
}

.header-brand {
    /* Takes the space left over, and yields it before the nav is crushed. */
    flex: 1 1 auto;
}

.header-actions {
    flex: 0 1 auto;
    align-items: center;
}

/* When the nav does wrap onto its own line it should read as a row of links, not as a
   ragged block pushed against one edge. */
.header-row > .header-actions > nav {
    flex-wrap: wrap;
    justify-content: flex-end;
}

.brand-symbol,
.brand-wordmark {
    flex-shrink: 0;
}

/* The wordmark is a PICTURE of the words printed next to it. Below 1200px — the point
   where the measurements above stop fitting — the duplicate is the first thing to drop:
   it frees ~108px and loses nothing, because the same words remain as real text that
   scales, can be selected and is read aloud.
   !important because styles.css forces `header img { display: inline-block !important }`
   in its 768-991.98px band. */
@media (max-width: 1199.98px) {
    .brand-wordmark {
        display: none !important;
    }
}

/* ------------------------------------------------------------------ *
 * Laptops 992-1199.98px: keep the 1440px layout — logo + name, quick links and the
 * Maharashtra emblem on ONE row.
 *
 * In this band Bootstrap's .container is 960px (936px of content), but the row needs
 * ~1006px: brand ~285 + quick-links nav ~619 (incl. px-3) + emblem 80 + gaps. So the nav
 * wrapped under the logo. Font sizes are NOT reduced; the row is given room instead:
 *   - the header container may use the full viewport width (1000px at 1024),
 *   - the nav's px-3 padding and the spacing between its links are tightened,
 *   - the emblem drops 80 -> 64px (still clearly legible),
 *   - the name's left margin 14 -> 8px.
 * `.container:has(> .header-row)` targets only this header's container; an engine
 * without :has() simply keeps the old (wrapping) layout. !important is needed where
 * Bootstrap utilities (px-3, gap-1) are themselves !important.
 * ------------------------------------------------------------------ */
@media (min-width: 992px) and (max-width: 1199.98px) {
    .container:has(> .header-row) {
        max-width: 100%;
        padding-left: 8px;
        padding-right: 8px;
    }

    .header-row {
        flex-wrap: nowrap;
    }

    .header-org-name {
        margin-left: 8px;
    }

    .header-row > .header-actions > nav {
        padding-left: 8px !important;
        padding-right: 8px !important;
        column-gap: 10px !important;
        flex-wrap: nowrap;
    }

    .header-row > .header-actions > nav > a {
        margin: 0 !important;
        white-space: nowrap;
    }

    .header-row > .header-actions > a > img {
        width: 64px !important;
        height: 64px !important;
        flex-shrink: 0;           /* the emblem never gives way - the name text wraps instead */
    }

    .header-row > .header-actions > a {
        flex-shrink: 0;
    }

    /* Single logo (23-Oct-2026) is wider than the old symbol half; at 992px it squeezed the
       emblem to a dot. 96x48 is the whole logo, same proportions. */
    .brand-logo {
        width: 96px !important;
        height: 48px !important;
    }

    .header-row > .header-actions > nav {
        column-gap: 4px !important;
        padding-left: 2px !important;
        padding-right: 2px !important;
    }

    .header-org-name {
        min-width: 0;
    }

    /* The quick links (nowrap) + emblem cannot shrink, so when space runs out it must come
       from the department name, which can wrap. Without this the two sides shrank in
       proportion and the emblem was pushed ~12px past the screen edge at 992px (Marathi). */
    .header-row > .header-actions {
        flex-shrink: 0;
    }

    /* Top bar: the UserWay button is now IN the bar (5.2.29) rather than floating over it,
       so the right-hand group needs ~44px more; with the default 1rem gaps it wrapped onto a
       second line at 992px. Tighter gaps keep it on one line. */
    .top-bar .col-md-6.d-flex {
        gap: 8px !important;
    }
}

/* ------------------------------------------------------------------ *
 * Below 992px: the logo and the department name were printing on top of each other
 *
 * Reported on the live site. The cause is a dead selector, not a spacing value.
 * styles.css has TWO rules meant to stack this row on narrow screens —
 * `header > .container > .d-flex` at its 767.98px and its 768-991.98px band — and
 * NEITHER has ever matched. The real DOM is
 *
 *     header > section.header > div.bg-white > div.container > div.d-flex
 *
 * so `.container` is three levels down, not a direct child, and the `>` combinator
 * fails. (Same structural reason `header.bg-white …` at the top of this file is dead:
 * `bg-white` is on the inner div.) The row therefore stays horizontal at every width.
 *
 * It is worst between 768px and 991.98px, because styles.css re-shows the images there
 * at `height:70px !important` while `.header-brand` has no wrap and no width cap in
 * that band — both were written for 767.98px only. ~136px of logo, a name block up to
 * 22em, a full-width nav and a 70px emblem then compete for under 992px, and the
 * wordmark image (which itself reads "भूमि अभिलेख") lands on the text that repeats it.
 *
 * Rather than repair the dead selector — it sits in a file shared by every layout, and
 * making it live would suddenly restack headers nobody has looked at — this is fixed
 * where the classes are owned. One band covering both phone and tablet, so there is no
 * gap between them to get wrong.
 * ------------------------------------------------------------------ */
@media (max-width: 991.98px) {
    .header-brand {
        flex-wrap: wrap;
        /* No max-width. The calc(100% - 90px) that used to be here reserved room for the
           Maharashtra emblem, which styles.css has already set to display:none below
           768px — so it was holding back 90px for something that was not drawn. */
        min-width: 0;
    }

    /* The symbol stays as the mark, held to a size that leaves the name room. Also
       !important: the same styles.css rule sets height:70px !important there. */
    .brand-symbol {
        height: 56px !important;
        width: auto !important;
        flex-shrink: 0;
    }

    .header-org-name {
        margin-left: 10px;
        /* min-width:0 lets this shrink inside the flex row. Without it a flex item
           refuses to go below its content width, which is what turns a tight row into
           an overflowing one. */
        min-width: 0;
        max-width: 100%;
    }
}

/* Phones: styles.css hides every header image below 768px, so this text is the only
   thing identifying the department there. It takes the full width on its own line. */
@media (max-width: 767.98px) {
    .header-org-name {
        flex: 0 0 100%;
        margin-left: 0;
        margin-top: 2px;
        /* Centred to match the quick-links row below it, which is centred in this band. */
        align-items: center;
        text-align: center;
    }

    /* Below 768px mobile-reflow.css (10a) makes the quick-links nav full width, so the
       `justify-content: flex-end` set above for the desktop row pushed District Websites /
       RTI / RTS / EODB to the right edge and left Dashboard alone under them. On its own
       full-width line it is centred, as styles.css already intended for this band. */
    .header-row > .header-actions > nav {
        justify-content: center;
    }

    /* ------------------------------------------------------------------ *
     * Put the national emblem back on phones
     *
     * styles.css has `header img { display: none !important }` below 768px, under a
     * comment reading "Hide both logos". It was written for the two brand images in the
     * row below — but `header img` is a blanket selector, and the accessibility bar is
     * rendered INSIDE the same <header> (_Layout.cshtml:524). So it also hit the Satyamev
     * Jayate emblem in that bar, which is why it disappeared on mobile.
     *
     * The emblem is the Government of India identity mark and GIGW expects it to be
     * present on every page, so it is not something to drop at a breakpoint. It is shown
     * again here rather than by narrowing the styles.css selector, because that file is
     * shared by every layout and changing what it matches would re-show images on pages
     * nobody has looked at.
     *
     * `.emblem-logo-img` (0,1,0) beats `header img` (0,0,2); both carry !important, so
     * specificity decides and the load order does not matter.
     * ------------------------------------------------------------------ */
    .emblem-logo-img {
        display: inline-block !important;
        /* Slightly smaller than the 50x40 the markup sets, so it sits comfortably in a
           bar that is already tight on a phone. */
        width: 42px !important;
        height: 34px !important;
        object-fit: contain;
    }
}