/* ============================================================
   MUNICIPAL CORPORATION / COUNCIL INNER SITES ONLY OVERRIDES
   GIGW 3.0 & WCAG 2.1 AAA Compliant Stylesheet
   Loaded exclusively by Views/Shared/_MCLayout.cshtml so State
   portal (stylemc3.css) remains 100% untouched.
   ============================================================ */

* {
    font-family: 'Poppins', 'Noto Sans Gurmukhi', 'Segoe UI', Tahoma, sans-serif;
}

a {
    color: #1d4ed8;
    transition: color 0.15s ease;
}

a:hover {
    color: #0b2545;
    text-decoration: underline;
}

body {
    background-color: #ffffff;
    color: #1e293b; /* 13.5:1 contrast against white */
    font-size: 15px;
    line-height: 1.6;
    font-family: 'Poppins', 'Noto Sans Gurmukhi', 'Segoe UI', Tahoma, sans-serif;
}

#body {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

p {
    font-size: 15px !important;
    line-height: 1.6 !important;
    color: #1e293b;
}

h1, h2, h3, h4, h5, h6 {
    color: #0b2545; /* 14.2:1 contrast against white */
    font-weight: 700;
}

.text-muted,
p.text-muted,
span.text-muted {
    color: #475569 !important; /* 5.8:1 contrast against white (WCAG AA Compliant) */
}

/* Top Header & Language Controls */
.upper_header {
    background-color: #0b2545;
    border-bottom: 2px solid #e5a93c;
    padding: 6px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.UH_menu li .nav-link {
    color: #ffffff !important;
}

.btn-header-ctrl {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 4px;
    padding: 3px 9px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    text-decoration: none;
    transition: all 0.2s ease;
    line-height: 1.4;
}

.btn-header-ctrl:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: #ffffff;
    color: #ffffff !important;
    text-decoration: none;
}

.font-ctrl-group {
    display: inline-flex;
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.4);
}

.font-ctrl-group .btn-header-ctrl {
    border: none;
    border-radius: 0;
    border-right: 1px solid rgba(255, 255, 255, 0.3);
    padding: 3px 8px;
}

.font-ctrl-group .btn-header-ctrl:last-child {
    border-right: none;
}

#ddllang,
.header-lang-select,
.mc-header #ddllang {
    background-color: #ffffff !important;
    color: #0b2545 !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 4px !important;
    font-weight: 700 !important;
    padding: 3px 10px !important;
    font-size: 13px !important;
    cursor: pointer !important;
    outline: none !important;
    font-family: 'Noto Sans Gurmukhi', 'Poppins', 'Segoe UI', Tahoma, sans-serif !important;
}

#ddllang option,
.header-lang-select option {
    background-color: #ffffff !important;
    color: #0b2545 !important;
    font-family: 'Noto Sans Gurmukhi', 'Poppins', 'Segoe UI', Tahoma, sans-serif !important;
    font-size: 13.5px !important;
    font-weight: 600 !important;
    padding: 8px 12px !important;
}

/* Navbar Link Polishing */
.navbar .navbar-nav > li > a {
    height: auto;
}

.navbar-nav .nav-item a.active {
    color: #0b2545;
    font-weight: 600;
}

.navbar-nav .nav-item a:hover {
    color: #0284c7;
    text-decoration: none;
}

/* Modern Section Layouts */
.Banner_section2 {
    background: linear-gradient(135deg, #0b2545 0%, #153e75 55%, #1e40af 100%) !important;
    padding: 35px 24px 45px !important;
    position: relative;
}

.management-section {
    padding: 35px 24px !important;
    background-color: #f8fafc !important;
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
}

.Utility_section {
    padding: 35px 24px 45px !important;
    background-color: #ffffff !important;
    background-image: none !important;
    background-attachment: scroll !important;
    position: relative;
    border-bottom: 1px solid #e2e8f0;
}

.News_section {
    padding: 35px 24px 45px !important;
    background-color: #f1f5f9 !important;
    background-image: none !important;
    background-attachment: scroll !important;
    position: relative;
    border-bottom: 1px solid #e2e8f0;
}

.Gallery_section {
    padding: 35px 24px 60px !important;
    background-color: #ffffff;
}

.Gallery_section2 {
    padding: 35px 24px 60px !important;
    background-color: #f8fafc !important;
    background-image: none !important;
    background-attachment: scroll !important;
    position: relative;
    overflow: hidden;
}

.outer-section {
    background-color: #f8fafc !important;
    background-image: none !important;
    background-attachment: scroll !important;
    padding: 24px !important;
    border-top: 1px solid #e2e8f0;
}

/* GIGW Inner Web Compliance: High-contrast Tables, Breadcrumbs, and Back Buttons */
table.dataTable.mc-gigw-table > thead > tr > th,
table.dataTable.mc-gigw-table > thead > tr > th[class*="sort"],
table.dataTable.mc-gigw-table > thead > tr > th[class*="sorting_"],
.table thead th,
.table thead > tr > th,
.table thead th[class*="sorting"],
table.dataTable thead th,
table.dataTable thead > tr > th,
table.dataTable thead > tr > th[class*="sorting"],
table.mc-gigw-table thead th,
table.mc-gigw-table thead > tr > th {
    background-color: #0b2545 !important;
    background-image: none !important;
    --bs-table-bg: #0b2545 !important;
    --bs-table-color: #ffffff !important;
    --bs-table-color-state: #ffffff !important;
    color: #ffffff !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    border-color: #1e3a8a !important;
    vertical-align: middle;
}

table.dataTable.mc-gigw-table > thead > tr > th.text-center {
    text-align: center !important;
}

/* DataTables sort/order arrows clearly visible on dark navy header (overrides ace.css, style_ms.css, datatable.min.css) */
table.dataTable.mc-gigw-table > thead > tr > th[class*="sort"],
table.dataTable thead > tr > th.sorting,
table.dataTable thead > tr > th.sorting_asc,
table.dataTable thead > tr > th.sorting_desc,
table.dataTable thead > tr > th.sorting_asc_disabled,
table.dataTable thead > tr > th.sorting_desc_disabled {
    padding-right: 30px !important;
    position: relative !important;
    cursor: pointer;
}

table.dataTable.mc-gigw-table > thead > tr > th[class*="sort"]:before,
table.dataTable thead > tr > th.sorting:before,
table.dataTable thead > tr > th.sorting_asc:before,
table.dataTable thead > tr > th.sorting_desc:before,
table.dataTable thead > tr > th.sorting_asc_disabled:before,
table.dataTable thead > tr > th.sorting_desc_disabled:before {
    content: "\25B2" !important;
    font-family: Arial, Helvetica, sans-serif !important;
    font-style: normal !important;
    font-weight: 400 !important;
    position: absolute !important;
    right: 10px !important;
    bottom: 50% !important;
    top: auto !important;
    float: none !important;
    display: block !important;
    font-size: 9px !important;
    line-height: 1 !important;
    margin-bottom: 2px !important;
    color: #ffffff !important;
    opacity: 0.5 !important;
}

table.dataTable.mc-gigw-table > thead > tr > th[class*="sort"]:after,
table.dataTable thead > tr > th.sorting:after,
table.dataTable thead > tr > th.sorting_asc:after,
table.dataTable thead > tr > th.sorting_desc:after,
table.dataTable thead > tr > th.sorting_asc_disabled:after,
table.dataTable thead > tr > th.sorting_desc_disabled:after {
    content: "\25BC" !important;
    font-family: Arial, Helvetica, sans-serif !important;
    font-style: normal !important;
    font-weight: 400 !important;
    position: absolute !important;
    right: 10px !important;
    top: 50% !important;
    bottom: auto !important;
    float: none !important;
    display: block !important;
    font-size: 9px !important;
    line-height: 1 !important;
    margin-top: 2px !important;
    color: #ffffff !important;
    opacity: 0.5 !important;
}

table.dataTable.mc-gigw-table > thead > tr > th.sorting_disabled {
    padding-right: 12px !important;
    cursor: default !important;
}

table.dataTable.mc-gigw-table > thead > tr > th.sorting_disabled:before,
table.dataTable.mc-gigw-table > thead > tr > th.sorting_disabled:after {
    content: none !important;
    display: none !important;
}

table.dataTable.mc-gigw-table > thead > tr > th.sorting_asc:before,
table.dataTable thead > tr > th.sorting_asc:before {
    color: #fbbf24 !important;
    opacity: 1 !important;
}

table.dataTable.mc-gigw-table > thead > tr > th.sorting_desc:after,
table.dataTable thead > tr > th.sorting_desc:after {
    color: #fbbf24 !important;
    opacity: 1 !important;
}

.table td,
.table tbody td,
table.dataTable tbody td {
    color: #1e293b !important;
    font-size: 14px !important;
    border-color: #e2e8f0 !important;
    vertical-align: middle;
}

.table tbody th[scope="row"],
table.dataTable tbody th[scope="row"] {
    background-color: transparent;
    --bs-table-bg: transparent;
    color: #0b2545 !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    border-color: #e2e8f0 !important;
    vertical-align: middle;
}

.table-striped tbody tr:nth-of-type(odd) {
    background-color: #f8fafc !important;
    --bs-table-accent-bg: #f8fafc !important;
}

.table-hover tbody tr:hover {
    background-color: #f1f5f9 !important;
    --bs-table-accent-bg: #f1f5f9 !important;
}

/* Compact single eye-icon action button in Tenders table */
.mc-tender-view-btn {
    width: 34px;
    height: 34px;
    padding: 0 !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    border-width: 1.5px !important;
    color: #1d4ed8 !important;
    border-color: #1d4ed8 !important;
    background-color: #eff6ff !important;
    transition: background-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.mc-tender-view-btn:hover,
.mc-tender-view-btn:focus-visible {
    background-color: #1d4ed8 !important;
    color: #ffffff !important;
    transform: translateY(-1px);
}

html.high-contrast .mc-tender-view-btn,
body.high-contrast .mc-tender-view-btn {
    background-color: #000000 !important;
    color: #ffff00 !important;
    border-color: #ffff00 !important;
}

body.dark-mode:not(.high-contrast) .mc-tender-view-btn {
    background-color: #1e3a8a !important;
    color: #ffffff !important;
    border-color: #60a5fa !important;
}

.breadcrumb {
    background-color: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    padding: 10px 16px !important;
    border-radius: 8px !important;
}

.breadcrumb-item a {
    color: #1d4ed8 !important;
    font-weight: 600;
}

.breadcrumb-item.active,
.breadcrumb-item.active * {
    color: #334155 !important;
    font-weight: 600;
}

button[onclick*="history.back"],
.btn-back {
    background-color: #0b2545 !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 6px !important;
    padding: 6px 14px !important;
    font-size: 13.5px !important;
    font-weight: 600 !important;
    transition: all 0.2s ease !important;
}

button[onclick*="history.back"]:hover,
.btn-back:hover {
    background-color: #1d4ed8 !important;
    color: #ffffff !important;
    transform: translateY(-1px);
}

/* Modern Notice Board Drawer Styles */
.ebook-toggle-area {
    display: none;
}

.popper_notice {
    display: flex !important;
    flex-direction: row-reverse !important;
    position: fixed !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    right: 0 !important;
    align-items: center !important;
    z-index: 99999 !important;
    pointer-events: none !important;
    max-height: 90vh !important;
}

.btn_notice {
    pointer-events: auto !important;
    writing-mode: vertical-rl !important;
    text-orientation: mixed !important;
    transform: none !important;
    margin: 0 !important;
    background: linear-gradient(180deg, #0b2545 0%, #1e3a8a 100%) !important;
    color: #ffffff !important;
    padding: 16px 8px !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    border-radius: 14px 0 0 14px !important;
    border: 1.5px solid rgba(255, 255, 255, 0.3) !important;
    border-right: none !important;
    border-left: 3px solid #e5a93c !important;
    box-shadow: -4px 6px 20px rgba(0, 0, 0, 0.25) !important;
    cursor: pointer !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease !important;
}

.btn_notice:hover,
.btn_notice:focus-visible {
    background: linear-gradient(180deg, #153e75 0%, #2563eb 100%) !important;
    color: #ffffff !important;
    box-shadow: -6px 8px 24px rgba(0, 0, 0, 0.35) !important;
    transform: translateX(-4px) !important;
    margin: 0 !important;
}

.btn_notice.Punjabi-notice {
    margin: 0 !important;
}

.notice-toggle-area {
    pointer-events: auto !important;
    display: none;
    width: 380px !important;
    max-width: calc(100vw - 50px) !important;
    max-height: min(520px, 80vh) !important;
    flex-direction: column !important;
    border-radius: 16px 0 0 16px !important;
    overflow: hidden !important;
    box-shadow: -12px 12px 35px rgba(0, 0, 0, 0.25) !important;
    border: 1px solid #cbd5e1 !important;
    border-right: none !important;
    background: #ffffff !important;
}

.Popup_header {
    display: flex !important;
    align-items: center !important;
    background: linear-gradient(135deg, #0b2545 0%, #1e3a8a 100%) !important;
    color: #ffffff !important;
    padding: 12px 16px !important;
    justify-content: space-between !important;
    border-bottom: 2px solid #e5a93c !important;
    flex-shrink: 0 !important;
}

.Popup_header a {
    font-size: 12.5px !important;
    margin-left: 0 !important;
}

.notice_board {
    background-color: #f8fafc !important;
    width: 100% !important;
    padding: 12px 14px !important;
    flex: 1 1 auto !important;
    height: calc(100% - 90px) !important;
    max-height: calc(min(520px, 80vh) - 85px) !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
}

.marquee {
    height: 100% !important;
    max-height: 100% !important;
    display: block !important;
}

/* Partner Logos Carousel (.BottomSwiper) */
.BottomSwiper {
    padding: 20px 0 !important;
    position: relative !important;
}

.BottomSwiper .swiper-wrapper {
    display: flex !important;
    align-items: center !important;
}

.BottomSwiper .swiper-slide {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    height: 75px !important;
    text-align: center !important;
    padding: 6px 16px !important;
    box-sizing: border-box !important;
}

.BottomSwiper .swiper-slide a {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    height: 100% !important;
    text-decoration: none !important;
}

.BottomSwiper .swiper-slide img {
    max-height: 48px !important;
    max-width: 140px !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain !important;
    margin: 0 auto !important;
    display: block !important;
    transition: transform 0.25s ease, filter 0.25s ease !important;
}

.BottomSwiper .swiper-slide a:hover img,
.BottomSwiper .swiper-slide a:focus img {
    transform: scale(1.08) !important;
}

/* Resolutions Cards */
.resolutions-detail {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    display: block !important;
    margin-top: 10px;
}

.resolution-detail-mc {
    display: block !important;
}

/* Responsive Spacing Overrides */
@media (max-width: 1366px) {
    .Banner_section2 {
        padding: 30px 20px 40px !important;
    }
}

@media screen and (max-width: 991.91px) {
    div#navbarSupportedContent {
        max-height: 70vh !important;
    }
    .Banner_section2 {
        padding: 25px 16px 30px !important;
    }
    .News_section {
        padding-left: 16px !important;
        padding-right: 16px !important;
    }
    #body {
        margin-top: 0 !important;
    }
}

@media screen and (max-width: 575px) {
    .News_section {
        padding-left: 16px !important;
        padding-right: 16px !important;
    }
    #body {
        margin-top: 0 !important;
    }
}

/* ============================================================
   MC INNER HEADER DIRECTORY MEGA-PANELS (CORPORATIONS & COUNCILS)
   Fixes narrow .position-relative clipping, hover dead-zones,
   broken hidden Swiper sizing, and faded .mc_tag contrast.
   ============================================================ */
.mc-main-header-wrapper {
    position: relative !important;
    overflow: visible !important;
    z-index: 1035;
}

.mc-brand-actions-bar {
    position: relative !important;
}

.mc-dir-trigger-wrap {
    position: static !important;
    display: inline-flex;
    align-items: center;
}

.btn-pill-action.mc-dir-active {
    box-shadow: 0 0 0 3px rgba(229, 169, 60, 0.55), 0 6px 16px rgba(11, 37, 69, 0.25) !important;
    transform: translateY(-1px);
}

.MC-List_div,
.MCouncil-List_div {
    display: none;
    position: absolute !important;
    top: calc(100% + 6px) !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    border-top: 4px solid #0b2545 !important;
    border-radius: 16px !important;
    box-shadow: 0 22px 54px rgba(11, 37, 69, 0.24), 0 6px 18px rgba(15, 23, 42, 0.08) !important;
    z-index: 100025 !important;
    overflow: visible !important;
    max-height: none !important;
}

/* Transparent hover bridge eliminates dead-air gap when moving cursor from pill button into panel */
.MC-List_div::before,
.MCouncil-List_div::before {
    content: "";
    position: absolute;
    top: -16px;
    left: 0;
    right: 0;
    height: 16px;
    background: transparent;
}

.MCouncil-List_div {
    border-top-color: #0e7490 !important;
}

.mc-dir-panel-inner {
    border-radius: 14px;
    overflow: hidden;
    background: #ffffff;
}

.mc-dir-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
    padding: 14px 20px;
    background: linear-gradient(135deg, #0b2545 0%, #1e3a8a 100%);
    color: #ffffff;
    border-bottom: 2px solid #e5a93c;
}

.MCouncil-List_div .mc-dir-panel-header {
    background: linear-gradient(135deg, #0c4a6e 0%, #0e7490 100%);
}

.mc-dir-header-title-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    flex: 1 1 260px;
}

.mc-dir-header-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(229, 169, 60, 0.65);
    color: #fbbf24;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}

.mc-dir-panel-title {
    margin: 0;
    font-size: 1.05rem !important;
    font-weight: 700 !important;
    color: #ffffff !important;
    line-height: 1.25;
}

.mc-dir-header-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 2px;
    font-size: 12px;
    color: #cbd5e1;
}

.mc-dir-filter-stat {
    display: inline-flex;
    align-items: center;
    padding: 1px 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    color: #ffffff;
    font-weight: 600;
    font-size: 11.5px;
}

.mc-dir-header-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1 1 280px;
    justify-content: flex-end;
}

.mc-dir-search-box {
    position: relative;
    flex: 1 1 240px;
    max-width: 360px;
}

.mc-dir-search-box i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #64748b;
    font-size: 13px;
    pointer-events: none;
}

.mc-dir-search-box input.form-control {
    padding: 7px 14px 7px 34px !important;
    height: 38px !important;
    border-radius: 50px !important;
    border: 1px solid rgba(255, 255, 255, 0.35) !important;
    background: #ffffff !important;
    color: #0f172a !important;
    font-size: 13.5px !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.mc-dir-search-box input.form-control:focus {
    border-color: #e5a93c !important;
    box-shadow: 0 0 0 3px rgba(229, 169, 60, 0.35) !important;
    outline: none;
}

.mc-dir-close-btn {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.14);
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.15s ease, transform 0.15s ease;
}

.mc-dir-close-btn:hover,
.mc-dir-close-btn:focus-visible {
    background: #dc2626;
    border-color: #dc2626;
    color: #ffffff;
    outline: 2px solid #ffffff;
}

.mc-dir-scroll-body {
    max-height: min(460px, calc(100vh - 230px));
    overflow-y: auto;
    padding: 16px 20px 20px;
    background: #f8fafc;
}

ul.mc-dir-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(265px, 1fr)) !important;
    gap: 12px !important;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    transform: none !important;
}

li.mc-dir-card-li {
    margin: 0 !important;
    padding: 0 !important;
    width: auto !important;
    height: auto !important;
    display: flex;
}

.mc-dir-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 100%;
    padding: 12px 14px;
    border-radius: 12px;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04);
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
    cursor: pointer;
    text-align: left;
}

.mc-dir-card.fadeActive_0:hover,
.mc-dir-card.fadeActive_0:focus-visible {
    transform: translateY(-2px);
    border-color: #2563eb;
    box-shadow: 0 10px 22px rgba(37, 99, 235, 0.14);
    outline: none;
}

.mc-dir-card.fadeActive_1 {
    background: #f1f5f9;
    border-style: dashed;
    border-color: #cbd5e1;
    cursor: not-allowed;
    opacity: 0.78;
}

.mc-dir-card-top {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 10px;
}

.mc-dir-card-logo {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    padding: 2px;
    overflow: hidden;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mc-dir-card-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 8px;
}

.mc-dir-card-heading {
    min-width: 0;
    flex: 1 1 auto;
}

.mc-dir-card-name {
    font-size: 14.5px !important;
    font-weight: 700 !important;
    color: #0b2545 !important;
    line-height: 1.3 !important;
    margin: 0 !important;
    word-break: break-word;
}

.mc-dir-card-local {
    display: block;
    font-size: 12px;
    font-weight: 500;
    color: #475569;
    margin-top: 1px;
    line-height: 1.35;
}

.mc-dir-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 10.5px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 999px;
    white-space: nowrap;
    flex-shrink: 0;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.mc-dir-status-pill.is-live {
    background: #dcfce7;
    color: #166534;
    border: 1px solid #86efac;
}

.mc-dir-status-pill.is-upcoming {
    background: #e2e8f0;
    color: #475569;
    border: 1px solid #cbd5e1;
}

.mc-dir-card-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    margin-bottom: 10px;
}

.mc-dir-stat-chip {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 4px 8px;
    font-size: 11.5px;
    color: #334155;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4px;
    min-width: 0;
}

.mc-dir-stat-chip strong {
    color: #0b2545;
    font-weight: 700;
}

.mc-dir-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding-top: 8px;
    border-top: 1px solid #e2e8f0;
    font-size: 11.5px;
    color: #1d4ed8;
    font-weight: 600;
}

.mc-dir-card.fadeActive_1 .mc-dir-card-footer {
    color: #64748b;
}

.mc-dir-domain {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
}

.mc-dir-empty {
    padding: 32px 16px;
    text-align: center;
    color: #475569;
    font-size: 14px;
    font-weight: 500;
    background: #ffffff;
    border: 1px dashed #cbd5e1;
    border-radius: 12px;
}

/* Reduced Motion Respect (WCAG / Modern Web) */
@media (prefers-reduced-motion: reduce) {
    .mc-dir-card,
    .mc-dir-close-btn,
    .btn-pill-action {
        transition: none !important;
    }
    .mc-dir-card.fadeActive_0:hover {
        transform: none !important;
    }
}

/* High Contrast & Dark Mode Overrides for Header Directory Panels */
html.high-contrast .MC-List_div,
body.high-contrast .MC-List_div,
html.high-contrast .MCouncil-List_div,
body.high-contrast .MCouncil-List_div {
    background: #000000 !important;
    border: 3px solid #ffff00 !important;
    color: #ffff00 !important;
}

html.high-contrast .mc-dir-panel-header,
body.high-contrast .mc-dir-panel-header,
html.high-contrast .mc-dir-scroll-body,
body.high-contrast .mc-dir-scroll-body,
html.high-contrast .mc-dir-card,
body.high-contrast .mc-dir-card,
html.high-contrast .mc-dir-stat-chip,
body.high-contrast .mc-dir-stat-chip,
html.high-contrast .mc-dir-empty,
body.high-contrast .mc-dir-empty {
    background: #000000 !important;
    color: #ffff00 !important;
    border-color: #ffff00 !important;
}

html.high-contrast .mc-dir-panel-title,
body.high-contrast .mc-dir-panel-title,
html.high-contrast .mc-dir-card-name,
body.high-contrast .mc-dir-card-name,
html.high-contrast .mc-dir-card-local,
body.high-contrast .mc-dir-card-local,
html.high-contrast .mc-dir-stat-chip strong,
body.high-contrast .mc-dir-stat-chip strong,
html.high-contrast .mc-dir-card-footer,
body.high-contrast .mc-dir-card-footer,
html.high-contrast .mc-dir-header-meta,
body.high-contrast .mc-dir-header-meta {
    color: #ffff00 !important;
}

html.high-contrast .mc-dir-status-pill,
body.high-contrast .mc-dir-status-pill,
html.high-contrast .mc-dir-filter-stat,
body.high-contrast .mc-dir-filter-stat,
html.high-contrast .mc-dir-header-icon,
body.high-contrast .mc-dir-header-icon,
html.high-contrast .mc-dir-close-btn,
body.high-contrast .mc-dir-close-btn {
    background: #000000 !important;
    color: #ffff00 !important;
    border: 1.5px solid #ffff00 !important;
}

html.high-contrast .mc-dir-close-btn:hover,
body.high-contrast .mc-dir-close-btn:hover,
html.high-contrast .mc-dir-card.fadeActive_0:hover,
body.high-contrast .mc-dir-card.fadeActive_0:hover {
    background: #ffff00 !important;
    color: #000000 !important;
}

html.high-contrast .mc-dir-card.fadeActive_0:hover *,
body.high-contrast .mc-dir-card.fadeActive_0:hover * {
    color: #000000 !important;
    border-color: #000000 !important;
}

html.high-contrast .mc-dir-search-box input.form-control,
body.high-contrast .mc-dir-search-box input.form-control {
    background: #000000 !important;
    color: #ffff00 !important;
    border: 2px solid #ffff00 !important;
}

body.dark-mode:not(.high-contrast) .MC-List_div,
body.dark-mode:not(.high-contrast) .MCouncil-List_div,
body.dark-mode:not(.high-contrast) .mc-dir-panel-inner,
body.dark-mode:not(.high-contrast) .mc-dir-scroll-body {
    background: #0f172a !important;
    border-color: #334155 !important;
}

body.dark-mode:not(.high-contrast) .mc-dir-card {
    background: #1e293b !important;
    border-color: #334155 !important;
}

body.dark-mode:not(.high-contrast) .mc-dir-card-name {
    color: #f8fafc !important;
}

body.dark-mode:not(.high-contrast) .mc-dir-card-local {
    color: #cbd5e1 !important;
}

body.dark-mode:not(.high-contrast) .mc-dir-stat-chip {
    background: #0f172a !important;
    border-color: #334155 !important;
    color: #cbd5e1 !important;
}

body.dark-mode:not(.high-contrast) .mc-dir-stat-chip strong {
    color: #ffffff !important;
}

body.dark-mode:not(.high-contrast) .mc-dir-card-footer {
    border-top-color: #334155 !important;
    color: #60a5fa !important;
}

@media screen and (max-width: 767.98px) {
    .MC-List_div,
    .MCouncil-List_div {
        top: calc(100% + 4px) !important;
        border-radius: 12px !important;
    }
    .mc-dir-panel-header {
        padding: 12px 14px;
    }
    .mc-dir-scroll-body {
        padding: 12px;
        max-height: 62vh;
    }
    ul.mc-dir-grid {
        grid-template-columns: 1fr !important;
    }
}

/* ============================================================
   AUTO HOVER SCREEN READER (TEXT-TO-SPEECH, NO TOOLBAR MENU)
   Scoped strictly to MC Inner Web (_Header + _MCLayout)
   ============================================================ */
#mcScreenReaderBtn.active-reader {
    background: #e5a93c !important;
    color: #0b2545 !important;
    border-color: #fbbf24 !important;
    font-weight: 700 !important;
    box-shadow: 0 0 0 2px rgba(251, 191, 36, 0.45);
}

.mc-sr-reading-active {
    outline: 2.5px solid #2563eb !important;
    outline-offset: 3px !important;
    background-color: rgba(254, 240, 138, 0.35) !important;
    border-radius: 5px;
    transition: background-color 0.15s ease, outline-color 0.15s ease;
}

@media (prefers-reduced-motion: reduce) {
    .mc-sr-reading-active {
        transition: none !important;
    }
}

html.high-contrast #mcScreenReaderBtn.active-reader,
body.high-contrast #mcScreenReaderBtn.active-reader {
    background: #ffff00 !important;
    color: #000000 !important;
    border-color: #ffff00 !important;
}

html.high-contrast #mcScreenReaderBtn.active-reader *,
body.high-contrast #mcScreenReaderBtn.active-reader * {
    color: #000000 !important;
}

html.high-contrast .mc-sr-reading-active,
body.high-contrast .mc-sr-reading-active {
    outline: 3px solid #ffff00 !important;
    background-color: rgba(255, 255, 0, 0.2) !important;
}

/* ============================================================
   GIGW 3.0 INNER PAGES SHELL: ABOUT US, CONTACT US & TENDERS
   Scoped strictly to MC Inner Web (_MCLayout.cshtml)
   ============================================================ */
.mc-inner-page-shell {
    background: #f8fafc;
    min-height: 60vh;
}

.mc-page-nav-strip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}

.mc-inner-hero-card {
    background: linear-gradient(135deg, #0b2545 0%, #153e75 55%, #1e40af 100%);
    color: #ffffff;
    border-radius: 18px;
    padding: 28px 30px;
    border-bottom: 4px solid #e5a93c;
    box-shadow: 0 14px 34px rgba(11, 37, 69, 0.16);
}

.mc-inner-kicker {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: 999px;
    background: rgba(229, 169, 60, 0.22);
    border: 1px solid #e5a93c;
    color: #fde68a;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.mc-inner-page-title {
    font-size: clamp(1.45rem, 2.5vw, 2.05rem);
    font-weight: 800;
    color: #ffffff !important;
    line-height: 1.25;
}

.mc-inner-lead {
    color: #e2e8f0 !important;
    font-size: 15px !important;
    line-height: 1.65 !important;
}

.mc-inner-address-pill {
    display: inline-flex;
    align-items: flex-start;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #ffffff;
    font-size: 13.5px;
    line-height: 1.45;
}

.mc-about-media-frame {
    border-radius: 14px;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.28);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.24);
    aspect-ratio: 16 / 10;
}

.mc-about-media-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.mc-inner-section-heading {
    font-size: 1.2rem;
    font-weight: 700;
    color: #0b2545;
}

.mc-inner-stat-pill {
    background: rgba(255, 255, 255, 0.14);
    border: 1.5px solid #e5a93c;
    border-radius: 14px;
    padding: 12px 20px;
    text-align: center;
    min-width: 140px;
}

.mc-inner-stat-pill .mc-pill-num {
    display: block;
    font-size: 1.8rem;
    font-weight: 800;
    color: #fbbf24;
    line-height: 1.1;
}

.mc-inner-stat-pill .mc-pill-caption {
    font-size: 12px;
    font-weight: 600;
    color: #ffffff;
}

.mc-inner-stat-card {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-top: 3px solid #1e3a8a;
    border-radius: 12px;
    padding: 16px 14px;
    text-align: center;
    height: 100%;
    box-shadow: 0 3px 10px rgba(15, 23, 42, 0.04);
}

.mc-inner-stat-card .mc-stat-val {
    font-size: 1.55rem;
    font-weight: 800;
    color: #0b2545;
    line-height: 1.2;
}

.mc-inner-stat-card .mc-stat-lbl {
    font-size: 12.5px;
    font-weight: 600;
    color: #475569;
    margin-top: 4px;
}

.mc-inner-surface-card {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 14px;
    padding: 20px;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.05);
}

.mc-leader-thumb {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #cbd5e1;
    flex-shrink: 0;
}

.mc-contact-icon-wrap {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

/* Responsive Semantic Table (Sticky Header + Container Query Mobile Stack) */
.mc-responsive-table-wrap {
    overflow: auto;
    max-inline-size: 100%;
    max-block-size: 72vh;
    container-type: inline-size;
    border-radius: 10px;
}

.mc-gigw-table {
    border-collapse: separate;
    border-spacing: 0;
    width: 100%;
}

.mc-gigw-table thead {
    position: sticky;
    inset-block-start: 0;
    z-index: 2;
}

.mc-gigw-table tbody th[scope="row"] {
    position: sticky;
    inset-inline-start: 0;
    z-index: 1;
    background: transparent;
    color: #0b2545;
    font-weight: 700;
}

@container (width < 640px) {
    .mc-gigw-table,
    .mc-gigw-table thead,
    .mc-gigw-table tbody,
    .mc-gigw-table tr,
    .mc-gigw-table th,
    .mc-gigw-table td {
        display: block;
    }

    .mc-gigw-table thead {
        display: none;
    }

    .mc-gigw-table tbody tr {
        margin-block-end: 14px;
        border: 1px solid #cbd5e1;
        border-radius: 12px;
        overflow: hidden;
        background: #ffffff;
    }

    .mc-gigw-table tbody th[scope="row"] {
        background: #0b2545 !important;
        color: #ffffff !important;
        padding: 10px 12px;
    }

    .mc-gigw-table tbody td {
        padding: 8px 12px;
        border-bottom: 1px solid #e2e8f0;
    }

    .mc-gigw-table tbody td:last-child {
        border-bottom: none;
    }

    .mc-gigw-table tbody td[data-col-label]::before {
        content: attr(data-col-label) ": ";
        font-weight: 700;
        color: #0b2545;
        display: inline-block;
        margin-right: 6px;
    }
}

/* High Contrast (Black & Yellow) & Dark Mode for GIGW Inner Pages */
html.high-contrast .mc-inner-page-shell,
body.high-contrast .mc-inner-page-shell,
html.high-contrast .mc-inner-hero-card,
body.high-contrast .mc-inner-hero-card,
html.high-contrast .mc-inner-stat-card,
body.high-contrast .mc-inner-stat-card,
html.high-contrast .mc-inner-surface-card,
body.high-contrast .mc-inner-surface-card,
html.high-contrast .mc-inner-stat-pill,
body.high-contrast .mc-inner-stat-pill,
html.high-contrast .mc-gigw-table tbody tr,
body.high-contrast .mc-gigw-table tbody tr,
html.high-contrast .mc-gigw-table tbody th[scope="row"],
body.high-contrast .mc-gigw-table tbody th[scope="row"],
html.high-contrast .mc-gigw-table tbody td,
body.high-contrast .mc-gigw-table tbody td {
    background: #000000 !important;
    color: #ffff00 !important;
    border-color: #ffff00 !important;
}

html.high-contrast .mc-inner-hero-card *,
body.high-contrast .mc-inner-hero-card *,
html.high-contrast .mc-inner-stat-card *,
body.high-contrast .mc-inner-stat-card *,
html.high-contrast .mc-inner-surface-card *,
body.high-contrast .mc-inner-surface-card *,
html.high-contrast .mc-inner-section-heading,
body.high-contrast .mc-inner-section-heading,
html.high-contrast .mc-gigw-table tbody td[data-col-label]::before,
body.high-contrast .mc-gigw-table tbody td[data-col-label]::before {
    color: #ffff00 !important;
}

body.dark-mode:not(.high-contrast) .mc-inner-page-shell {
    background: #0f172a;
}

body.dark-mode:not(.high-contrast) .mc-inner-section-heading {
    color: #f8fafc;
}

body.dark-mode:not(.high-contrast) .mc-inner-stat-card,
body.dark-mode:not(.high-contrast) .mc-inner-surface-card {
    background: #1e293b;
    border-color: #334155;
    color: #e2e8f0;
}

body.dark-mode:not(.high-contrast) .mc-inner-stat-card .mc-stat-val {
    color: #ffffff;
}

body.dark-mode:not(.high-contrast) .mc-inner-stat-card .mc-stat-lbl {
    color: #cbd5e1;
}

body.dark-mode:not(.high-contrast) .mc-gigw-table tbody th[scope="row"] {
    background: #1e293b !important;
    color: #ffffff !important;
}

body.dark-mode:not(.high-contrast) .mc-gigw-table tbody td {
    background: #0f172a !important;
    color: #e2e8f0 !important;
    border-color: #334155 !important;
}

/* GIGW Universal Font Size Resizer Support & Overflow Protection */
.btn-font-ctrl.mc-font-btn-active {
    background: #e5a93c !important;
    color: #0b2545 !important;
}

html.high-contrast .btn-font-ctrl.mc-font-btn-active,
body.high-contrast .btn-font-ctrl.mc-font-btn-active {
    background: #ffff00 !important;
    color: #000000 !important;
}

html.mc-font-scaled-up .mc-utility-title,
body.mc-font-scaled-up .mc-utility-title,
html.mc-font-scaled-up .mc-news-headline,
body.mc-font-scaled-up .mc-news-headline {
    -webkit-line-clamp: unset !important;
    overflow: visible !important;
    white-space: normal !important;
}

html.mc-font-scaled-up .btn-pill-action,
body.mc-font-scaled-up .btn-pill-action,
html.mc-font-scaled-up .mc-nav-bar-wrapper .nav-link,
body.mc-font-scaled-up .mc-nav-bar-wrapper .nav-link,
html.mc-font-scaled-up .mc-dropdown-link,
body.mc-font-scaled-up .mc-dropdown-link,
html.mc-font-scaled-up .btn-top-access,
body.mc-font-scaled-up .btn-top-access,
html.mc-font-scaled-up .btn-contrast-toggle,
body.mc-font-scaled-up .btn-contrast-toggle {
    white-space: normal !important;
    height: auto !important;
}

html.mc-font-scaled-up .mc-dir-search-box input.form-control,
body.mc-font-scaled-up .mc-dir-search-box input.form-control {
    height: auto !important;
    min-height: 38px !important;
}

html.mc-font-scaled-up .mc-utility-card,
body.mc-font-scaled-up .mc-utility-card,
html.mc-font-scaled-up .mc-metric-card,
body.mc-font-scaled-up .mc-metric-card,
html.mc-font-scaled-up .mc-inner-stat-card,
body.mc-font-scaled-up .mc-inner-stat-card {
    height: auto !important;
}

/* ============================================================
   GIGW EMPTY SECTION STATE BOX (SCOPED TO MC INNER WEB)
   ============================================================ */
.mc-empty-section-box {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 22px 20px;
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    border-radius: 12px;
    color: #475569;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
}

body.dark-mode:not(.high-contrast) .mc-empty-section-box {
    background: #1e293b;
    border-color: #334155;
    color: #cbd5e1;
}

html.high-contrast .mc-empty-section-box,
body.high-contrast .mc-empty-section-box {
    background: #000000 !important;
    border: 2px dashed #ffff00 !important;
    color: #ffff00 !important;
}

html.high-contrast .mc-empty-section-box i,
body.high-contrast .mc-empty-section-box i {
    color: #ffff00 !important;
}

/* ============================================================
   GIGW 3.0 GLOBAL KEYBOARD FOCUS RING & COUNCILLORS REDESIGN
   Scoped strictly to MC Inner Web
   ============================================================ */
:where(a:any-link, button, input, select, textarea, summary, [role="button"][tabindex="0"]):focus-visible {
    outline: 3px solid #f59e0b !important;
    outline-offset: 2px !important;
}

html.high-contrast :where(a:any-link, button, input, select, textarea, [role="button"][tabindex="0"]):focus-visible,
body.high-contrast :where(a:any-link, button, input, select, textarea, [role="button"][tabindex="0"]):focus-visible {
    outline: 3px solid #ffff00 !important;
    outline-offset: 2px !important;
}

.mc-councillors-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 16px 20px;
    margin-bottom: 18px;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04);
}

.mc-filter-pills {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.mc-filter-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 38px;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none !important;
    color: #1e293b;
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.mc-filter-pill:hover {
    background: #e0f2fe;
    color: #0b2545;
    border-color: #93c5fd;
}

.mc-filter-pill.is-active,
.mc-filter-pill[aria-current="page"] {
    background: #0b2545 !important;
    color: #ffffff !important;
    border-color: #0b2545 !important;
}

.mc-councillors-search-wrap {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.mc-search-field-group {
    position: relative;
    display: flex;
    align-items: center;
    min-width: min(100%, 270px);
}

.mc-search-field-group .mc-search-icon {
    position: absolute;
    left: 12px;
    color: #475569;
    pointer-events: none;
    font-size: 13px;
}

.mc-search-field-group input.form-control {
    padding-left: 36px !important;
    padding-right: 36px !important;
    min-height: 40px;
    border-radius: 999px !important;
    border: 1px solid #94a3b8;
    font-size: 13.5px;
}

.mc-search-clear-btn {
    position: absolute;
    right: 6px;
    min-width: 28px;
    min-height: 28px;
    border-radius: 50%;
    border: none;
    background: transparent;
    color: #475569;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.mc-search-clear-btn:hover {
    background: #e2e8f0;
    color: #0f172a;
}

.mc-councillor-status-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 16px;
    font-size: 13.5px;
    color: #334155;
    font-weight: 500;
}

ul.mc-councillors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 18px;
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

li.mc-councillor-item {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex;
}

/* Semantic Card with Stretched Primary Link (Modern Web Card Guide) */
.mc-councillor-card {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-top: 4px solid #0b2545;
    border-radius: 14px;
    padding: 18px;
    box-shadow: 0 4px 14px rgba(11, 37, 69, 0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.mc-councillor-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 26px rgba(11, 37, 69, 0.12);
    border-color: #2563eb;
}

.mc-councillor-card a.card-link {
    color: #0b2545;
    text-decoration: none;
}

.mc-councillor-card a.card-link::after {
    content: "";
    position: absolute;
    inset: 0;
}

.mc-councillor-card a.card-link:focus-visible {
    outline: none !important;
}

.mc-councillor-card:has(a.card-link:focus-visible) {
    outline: 3px solid #f59e0b !important;
    outline-offset: 2px !important;
    border-color: #0b2545;
}

.mc-councillor-card-top {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 14px;
}

.mc-councillor-photo {
    width: 72px;
    height: 72px;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 12px;
    border: 2px solid #e2e8f0;
    background: #f1f5f9;
    flex-shrink: 0;
}

.mc-councillor-name {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.3;
    margin: 0 0 6px 0;
    color: #0b2545;
}

.mc-councillor-role-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    background: #eff6ff;
    color: #1d4ed8;
    border: 1px solid #bfdbfe;
}

.mc-councillor-role-badge.is-executive {
    background: #fef3c7;
    color: #92400e;
    border-color: #fde68a;
}

.mc-councillor-meta {
    margin: 0 0 14px 0;
    padding: 10px 12px;
    border-radius: 10px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1 1 auto;
}

.mc-councillor-meta-row {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 13px;
    color: #334155;
    line-height: 1.4;
}

.mc-councillor-meta-row i {
    color: #1d4ed8;
    margin-top: 3px;
    flex-shrink: 0;
    width: 14px;
    text-align: center;
}

.mc-councillor-card-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 10px;
    border-top: 1px solid #e2e8f0;
    font-size: 13px;
    font-weight: 600;
    color: #1d4ed8;
}

.mc-councillor-card:hover .mc-councillor-card-foot {
    color: #0b2545;
}

@media (prefers-reduced-motion: reduce) {
    .mc-councillor-card,
    .mc-filter-pill {
        transition: none !important;
    }
    .mc-councillor-card:hover {
        transform: none !important;
    }
}

body.dark-mode:not(.high-contrast) .mc-councillors-toolbar,
body.dark-mode:not(.high-contrast) .mc-councillor-card {
    background: #1e293b;
    border-color: #334155;
    color: #e2e8f0;
}

body.dark-mode:not(.high-contrast) .mc-councillor-name,
body.dark-mode:not(.high-contrast) .mc-councillor-card a.card-link {
    color: #f8fafc;
}

body.dark-mode:not(.high-contrast) .mc-councillor-meta {
    background: #0f172a;
    border-color: #334155;
}

body.dark-mode:not(.high-contrast) .mc-councillor-meta-row,
body.dark-mode:not(.high-contrast) .mc-councillor-status-bar {
    color: #cbd5e1;
}

body.dark-mode:not(.high-contrast) .mc-councillor-card-foot {
    border-top-color: #334155;
    color: #60a5fa;
}

html.high-contrast .mc-councillors-toolbar,
body.high-contrast .mc-councillors-toolbar,
html.high-contrast .mc-councillor-card,
body.high-contrast .mc-councillor-card,
html.high-contrast .mc-councillor-meta,
body.high-contrast .mc-councillor-meta,
html.high-contrast .mc-filter-pill,
body.high-contrast .mc-filter-pill {
    background: #000000 !important;
    color: #ffff00 !important;
    border-color: #ffff00 !important;
    box-shadow: none !important;
}

html.high-contrast .mc-filter-pill.is-active,
body.high-contrast .mc-filter-pill.is-active,
html.high-contrast .mc-filter-pill[aria-current="page"],
body.high-contrast .mc-filter-pill[aria-current="page"] {
    background: #ffff00 !important;
    color: #000000 !important;
}

html.high-contrast .mc-councillor-name,
body.high-contrast .mc-councillor-name,
html.high-contrast .mc-councillor-card a.card-link,
body.high-contrast .mc-councillor-card a.card-link,
html.high-contrast .mc-councillor-card-foot,
body.high-contrast .mc-councillor-card-foot,
html.high-contrast .mc-councillor-meta-row,
body.high-contrast .mc-councillor-meta-row,
html.high-contrast .mc-councillor-status-bar,
body.high-contrast .mc-councillor-status-bar {
    color: #ffff00 !important;
}

html.high-contrast .mc-councillor-role-badge,
body.high-contrast .mc-councillor-role-badge {
    background: #000000 !important;
    color: #ffff00 !important;
    border: 1px solid #ffff00 !important;
}
