/* =====================================================================
   KARDIA - The Heart of Our City
   India 2040 Smart City Command & Sustainability Platform
   Design system + public website
   ---------------------------------------------------------------------
   Palette is drawn from the Indian flag - saffron, white, India green -
   with a deep navy borrowed from the Ashoka Chakra for technology
   surfaces. Colour is used sparingly: navy and neutrals carry the
   structure, saffron and green carry meaning.
   ===================================================================== */

/* ---------------------------------------------------------------------
   1. Tokens
   --------------------------------------------------------------------- */
:root {
    /* Brand */
    --k-saffron:        #E8871E;
    --k-saffron-dark:   #C96D0E;
    --k-saffron-soft:   #FDF2E4;
    --k-green:          #12805C;
    --k-green-dark:     #0C5F44;
    --k-green-soft:     #E6F4EF;
    --k-navy:           #0F2748;
    --k-navy-2:         #16375F;
    --k-navy-3:         #1E4A7D;
    --k-chakra:         #1B4B8F;

    /* Neutrals */
    --k-ink:            #16202E;
    --k-body:           #35455A;
    --k-muted:          #64748B;
    --k-line:           #E3E9F0;
    --k-line-soft:      #EFF3F8;
    --k-surface:        #FFFFFF;
    --k-bg:             #F5F8FC;
    --k-bg-alt:         #EEF3F9;

    /* Semantic */
    --k-success:        #12805C;
    --k-info:           #1D6FCB;
    --k-warning:        #D9861B;
    --k-danger:         #C43B33;
    --k-critical:       #8E24AA;

    /* Traffic-light indicators for energy wastage */
    --k-red:            #C43B33;
    --k-orange:         #E08A1E;
    --k-green-light:    #17A673;

    /* Elevation */
    --k-shadow-sm:      0 1px 2px rgba(15, 39, 72, .06), 0 1px 3px rgba(15, 39, 72, .04);
    --k-shadow:         0 2px 6px rgba(15, 39, 72, .06), 0 8px 24px rgba(15, 39, 72, .07);
    --k-shadow-lg:      0 12px 40px rgba(15, 39, 72, .14);

    /* Geometry */
    --k-radius-sm:      8px;
    --k-radius:         14px;
    --k-radius-lg:      20px;
    --k-radius-pill:    999px;

    /* Motion */
    --k-ease:           cubic-bezier(.4, 0, .2, 1);
    --k-speed:          .28s;

    /* Layout */
    --k-header-h:       76px;
    --k-container:      1280px;
}

/* ---------------------------------------------------------------------
   2. Base
   --------------------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--k-header-h) + 16px);
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    font-family: 'Roboto', 'Roboto Flex', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
    font-variation-settings: 'wdth' 100;
    font-size: 1rem;
    line-height: 1.65;
    color: var(--k-body);
    background: var(--k-bg);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}

/* Typography scale - fluid between mobile and desktop */
h1, .h1 { font-size: clamp(2.05rem, 1.35rem + 2.6vw, 3.4rem); }
h2, .h2 { font-size: clamp(1.65rem, 1.20rem + 1.7vw, 2.5rem); }
h3, .h3 { font-size: clamp(1.30rem, 1.10rem + 0.9vw, 1.75rem); }
h4, .h4 { font-size: clamp(1.13rem, 1.03rem + 0.4vw, 1.35rem); }
h5, .h5 { font-size: 1.05rem; }
h6, .h6 { font-size: .95rem; }

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
    font-family: inherit;
    color: var(--k-ink);
    font-weight: 700;
    line-height: 1.22;
    letter-spacing: -.015em;
    margin: 0 0 .6em;
}

p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }

small, .small { font-size: .8125rem; }
.text-tiny { font-size: .75rem; }

a {
    color: var(--k-navy-3);
    text-decoration: none;
    transition: color var(--k-speed) var(--k-ease);
}
a:hover { color: var(--k-saffron-dark); text-decoration: underline; }

img { max-width: 100%; height: auto; }

hr { border: 0; border-top: 1px solid var(--k-line); opacity: 1; margin: 2rem 0; }

::selection { background: var(--k-saffron); color: #fff; }

/* Focus visibility - never removed, only restyled */
:focus-visible {
    outline: 3px solid var(--k-saffron);
    outline-offset: 2px;
    border-radius: 4px;
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 2000;
    padding: .75rem 1.25rem;
    background: var(--k-navy);
    color: #fff;
    font-weight: 600;
    border-radius: 0 0 var(--k-radius-sm) 0;
}
.skip-link:focus {
    left: 0;
    color: #fff;
    text-decoration: none;
}

/* Visually hidden but available to screen readers */
.visually-hidden {
    position: absolute !important;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ---------------------------------------------------------------------
   3. Layout helpers
   --------------------------------------------------------------------- */
.k-container {
    width: 100%;
    max-width: var(--k-container);
    margin-inline: auto;
    padding-inline: 1.15rem;
}

@media (min-width: 768px) { .k-container { padding-inline: 2rem; } }

.k-section { padding: clamp(3rem, 6vw, 5.5rem) 0; }
.k-section--tight { padding: clamp(2rem, 4vw, 3.5rem) 0; }
.k-section--alt { background: var(--k-bg-alt); }
.k-section--white { background: #fff; }

.k-section--dark {
    background:
        radial-gradient(1000px 500px at 12% -10%, rgba(232, 135, 30, .18), transparent 60%),
        radial-gradient(900px 500px at 92% 110%, rgba(18, 128, 92, .22), transparent 60%),
        linear-gradient(160deg, #0C1F3A 0%, var(--k-navy) 55%, #123056 100%);
    color: #C9D6E6;
}
.k-section--dark h1,
.k-section--dark h2,
.k-section--dark h3,
.k-section--dark h4 { color: #fff; }

/* Section heading block */
.k-section-head { max-width: 760px; margin-bottom: clamp(2rem, 4vw, 3rem); }
.k-section-head--center { margin-inline: auto; text-align: center; }

.k-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--k-saffron-dark);
    margin-bottom: .85rem;
}
.k-eyebrow::before {
    content: '';
    width: 26px; height: 2px;
    background: linear-gradient(90deg, var(--k-saffron), var(--k-green));
    border-radius: 2px;
}
.k-section--dark .k-eyebrow { color: var(--k-saffron); }
.k-section-head--center .k-eyebrow { justify-content: center; }

.k-lead {
    font-size: clamp(1rem, .96rem + .25vw, 1.15rem);
    color: var(--k-muted);
    line-height: 1.7;
}
.k-section--dark .k-lead { color: #A9BDD4; }

/* ---------------------------------------------------------------------
   4. Buttons
   --------------------------------------------------------------------- */
.btn {
    --bs-btn-font-weight: 600;
    border-radius: var(--k-radius-pill);
    padding: .70rem 1.5rem;
    font-size: .9375rem;
    font-weight: 600;
    letter-spacing: .01em;
    border: 1.5px solid transparent;
    transition: all var(--k-speed) var(--k-ease);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    min-height: 44px;              /* touch target */
    text-decoration: none;
}
.btn:hover { text-decoration: none; }

.btn-primary,
.btn-kardia {
    background: linear-gradient(135deg, var(--k-saffron) 0%, var(--k-saffron-dark) 100%);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 4px 14px rgba(232, 135, 30, .32);
}
.btn-primary:hover, .btn-primary:focus,
.btn-kardia:hover, .btn-kardia:focus {
    background: linear-gradient(135deg, var(--k-saffron-dark) 0%, #A85A08 100%);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(232, 135, 30, .42);
}

.btn-success, .btn-kardia-green {
    background: linear-gradient(135deg, var(--k-green) 0%, var(--k-green-dark) 100%);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 4px 14px rgba(18, 128, 92, .28);
}
.btn-success:hover, .btn-kardia-green:hover {
    background: linear-gradient(135deg, var(--k-green-dark) 0%, #08422F 100%);
    color: #fff;
    transform: translateY(-2px);
}

.btn-navy {
    background: var(--k-navy);
    color: #fff;
    border-color: var(--k-navy);
}
.btn-navy:hover { background: var(--k-navy-2); color: #fff; transform: translateY(-2px); }

.btn-outline-navy {
    background: transparent;
    color: var(--k-navy);
    border-color: rgba(15, 39, 72, .28);
}
.btn-outline-navy:hover { background: var(--k-navy); color: #fff; border-color: var(--k-navy); }

.btn-outline-light {
    border-color: rgba(255, 255, 255, .45);
    color: #fff;
}
.btn-outline-light:hover { background: #fff; color: var(--k-navy); border-color: #fff; }

.btn-ghost {
    background: transparent;
    color: var(--k-muted);
    border-color: var(--k-line);
}
.btn-ghost:hover { background: var(--k-bg-alt); color: var(--k-ink); border-color: var(--k-line); }

.btn-sm { padding: .42rem 1rem; font-size: .8125rem; min-height: 36px; }
.btn-lg { padding: .9rem 2rem; font-size: 1.0125rem; min-height: 52px; }

/* ---------------------------------------------------------------------
   5. Cards
   --------------------------------------------------------------------- */
.k-card {
    background: var(--k-surface);
    border: 1px solid var(--k-line);
    border-radius: var(--k-radius);
    box-shadow: var(--k-shadow-sm);
    transition: transform var(--k-speed) var(--k-ease), box-shadow var(--k-speed) var(--k-ease), border-color var(--k-speed) var(--k-ease);
    position: relative;
    overflow: hidden;
    height: 100%;
}
.k-card--hover:hover {
    transform: translateY(-4px);
    box-shadow: var(--k-shadow);
    border-color: #D4DEEA;
}
.k-card__body { padding: 1.35rem; }
.k-card__head {
    padding: 1.05rem 1.35rem;
    border-bottom: 1px solid var(--k-line-soft);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}
.k-card__title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--k-ink);
    margin: 0;
    display: flex;
    align-items: center;
    gap: .55rem;
}
.k-card__title i { color: var(--k-saffron); }
.k-card__sub { font-size: .8125rem; color: var(--k-muted); margin: .15rem 0 0; }

/* Glass card for use over dark/imagery surfaces */
.k-glass {
    background: rgba(255, 255, 255, .07);
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: var(--k-radius);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

/* ---------------------------------------------------------------------
   6. KPI tiles
   --------------------------------------------------------------------- */
.k-kpi {
    background: var(--k-surface);
    border: 1px solid var(--k-line);
    border-radius: var(--k-radius);
    padding: 1.2rem 1.25rem;
    height: 100%;
    position: relative;
    overflow: hidden;
    box-shadow: var(--k-shadow-sm);
    transition: transform var(--k-speed) var(--k-ease), box-shadow var(--k-speed) var(--k-ease);
}
.k-kpi:hover { transform: translateY(-3px); box-shadow: var(--k-shadow); }

/* Accent rail identifies the portal a tile belongs to */
.k-kpi::before {
    content: '';
    position: absolute;
    inset: 0 auto 0 0;
    width: 4px;
    background: var(--k-accent, var(--k-saffron));
}

.k-kpi--waste       { --k-accent: #E8871E; }
.k-kpi--fuel        { --k-accent: #C25A1B; }
.k-kpi--energy      { --k-accent: #12805C; }
.k-kpi--transport   { --k-accent: #1B4B8F; }
.k-kpi--environment { --k-accent: #0E8C8C; }
.k-kpi--complaint   { --k-accent: #7A4BC4; }
.k-kpi--danger      { --k-accent: var(--k-danger); }
.k-kpi--warning     { --k-accent: var(--k-warning); }

.k-kpi__top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: .75rem;
    margin-bottom: .55rem;
}
.k-kpi__label {
    font-size: .78rem;
    font-weight: 600;
    color: var(--k-muted);
    text-transform: uppercase;
    letter-spacing: .06em;
    line-height: 1.35;
}
.k-kpi__icon {
    flex: 0 0 auto;
    width: 38px; height: 38px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    background: color-mix(in srgb, var(--k-accent) 12%, transparent);
    color: var(--k-accent);
    font-size: 1.05rem;
}
.k-kpi__value {
    font-size: clamp(1.6rem, 1.25rem + 1.1vw, 2.3rem);
    font-weight: 800;
    line-height: 1.1;
    color: var(--k-ink);
    letter-spacing: -.02em;
    display: flex;
    align-items: baseline;
    gap: .3rem;
    flex-wrap: wrap;
}
.k-kpi__unit { font-size: .875rem; font-weight: 600; color: var(--k-muted); letter-spacing: 0; }
.k-kpi__meta {
    margin-top: .5rem;
    font-size: .78rem;
    color: var(--k-muted);
    display: flex;
    align-items: center;
    gap: .4rem;
    flex-wrap: wrap;
}
.k-kpi__delta { font-weight: 700; display: inline-flex; align-items: center; gap: .18rem; }
.k-kpi__delta--up   { color: var(--k-success); }
.k-kpi__delta--down { color: var(--k-danger); }
.k-kpi__delta--flat { color: var(--k-muted); }

/* Dark variant used inside command-centre panels */
.k-kpi--dark {
    background: rgba(255, 255, 255, .06);
    border-color: rgba(255, 255, 255, .13);
    box-shadow: none;
}
.k-kpi--dark .k-kpi__label { color: #92A8C4; }
.k-kpi--dark .k-kpi__value { color: #fff; }
.k-kpi--dark .k-kpi__meta  { color: #8FA5C0; }
.k-kpi--dark .k-kpi__unit  { color: #92A8C4; }

/* ---------------------------------------------------------------------
   7. Status pills & badges
   --------------------------------------------------------------------- */
.k-pill {
    display: inline-flex;
    align-items: center;
    gap: .38rem;
    padding: .26rem .7rem;
    border-radius: var(--k-radius-pill);
    font-size: .74rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    line-height: 1.5;
    white-space: nowrap;
}
.k-pill--success  { background: var(--k-green-soft);      color: var(--k-green-dark); }
.k-pill--info     { background: #E7F0FB;                  color: #1A5FAF; }
.k-pill--warning  { background: #FDF1E0;                  color: #A9660D; }
.k-pill--danger   { background: #FBE9E7;                  color: #A3291F; }
.k-pill--secondary{ background: var(--k-bg-alt);          color: var(--k-muted); }
.k-pill--critical { background: #F3E5F5;                  color: #6A1B9A; }

.k-dot {
    width: 7px; height: 7px;
    border-radius: 50%;
    background: currentColor;
    flex: 0 0 auto;
}

/* Live status - the pulsing dot signals a simulated live feed */
.k-live {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    font-size: .74rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    padding: .3rem .78rem;
    border-radius: var(--k-radius-pill);
    background: rgba(18, 128, 92, .12);
    color: var(--k-green-dark);
    border: 1px solid rgba(18, 128, 92, .22);
}
.k-live__dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--k-green-light);
    position: relative;
}
.k-live__dot::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 2px solid var(--k-green-light);
    animation: k-ping 2s var(--k-ease) infinite;
}
.k-live--warning  { background: rgba(217, 134, 27, .13); color: #A9660D; border-color: rgba(217, 134, 27, .26); }
.k-live--warning .k-live__dot, .k-live--warning .k-live__dot::after { background: var(--k-warning); border-color: var(--k-warning); }
.k-live--danger   { background: rgba(196, 59, 51, .12); color: #A3291F; border-color: rgba(196, 59, 51, .24); }
.k-live--danger .k-live__dot, .k-live--danger .k-live__dot::after { background: var(--k-danger); border-color: var(--k-danger); }
.k-live--onDark { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.2); color: #D5E3F2; }

@keyframes k-ping {
    0%   { transform: scale(.7); opacity: .9; }
    70%  { transform: scale(1.7); opacity: 0; }
    100% { transform: scale(1.7); opacity: 0; }
}

/* Demo-data marker - shown wherever simulated figures appear */
.k-demo-tag {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: #8A6A2B;
    background: #FFF8E8;
    border: 1px dashed #E4C77E;
    border-radius: var(--k-radius-pill);
    padding: .16rem .6rem;
}
.k-demo-tag--onDark { color: #E7C87D; background: rgba(231, 200, 125, .1); border-color: rgba(231, 200, 125, .35); }

/* Traffic-light indicator for energy wastage */
.k-indicator {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    font-weight: 700;
    font-size: .78rem;
}
.k-indicator__light {
    width: 12px; height: 12px;
    border-radius: 50%;
    box-shadow: 0 0 0 3px color-mix(in srgb, currentColor 18%, transparent);
}
.k-indicator--red    { color: var(--k-red); }
.k-indicator--orange { color: var(--k-orange); }
.k-indicator--green  { color: var(--k-green-light); }
.k-indicator--red .k-indicator__light    { background: var(--k-red); }
.k-indicator--orange .k-indicator__light { background: var(--k-orange); }
.k-indicator--green .k-indicator__light  { background: var(--k-green-light); }

/* ---------------------------------------------------------------------
   8. Header & navigation
   --------------------------------------------------------------------- */
.k-topbar {
    background: var(--k-navy);
    color: #A9BDD4;
    font-size: .78rem;
    padding: .4rem 0;
}
.k-topbar a { color: #C9D6E6; }
.k-topbar a:hover { color: #fff; }
.k-topbar__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}
.k-topbar__list { display: flex; align-items: center; gap: 1.1rem; flex-wrap: wrap; margin: 0; padding: 0; list-style: none; }

.k-header {
    position: sticky;
    top: 0;
    z-index: 1030;
    background: rgba(255, 255, 255, .93);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--k-line);
    transition: box-shadow var(--k-speed) var(--k-ease);
}
.k-header--scrolled { box-shadow: 0 4px 20px rgba(15, 39, 72, .10); }

.k-navbar { padding: .55rem 0; }

.k-brand { display: inline-flex; align-items: center; gap: .7rem; text-decoration: none; }
.k-brand:hover { text-decoration: none; }
.k-brand__mark { width: 42px; height: 42px; flex: 0 0 auto; }
.k-brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.k-brand__name {
    font-size: 1.32rem;
    font-weight: 800;
    letter-spacing: .17em;
    color: var(--k-navy);
    text-transform: uppercase;
}
.k-brand__tag {
    font-size: .655rem;
    letter-spacing: .13em;
    text-transform: uppercase;
    color: var(--k-saffron-dark);
    font-weight: 600;
}

.k-nav { gap: .1rem; }
.k-nav .nav-link {
    color: var(--k-body);
    font-weight: 600;
    font-size: .9rem;
    padding: .55rem .8rem !important;
    border-radius: var(--k-radius-sm);
    position: relative;
    transition: color var(--k-speed) var(--k-ease), background var(--k-speed) var(--k-ease);
}
.k-nav .nav-link:hover { color: var(--k-navy); background: var(--k-bg-alt); text-decoration: none; }
.k-nav .nav-link.active { color: var(--k-navy); }
.k-nav .nav-link.active::after {
    content: '';
    position: absolute;
    left: .8rem; right: .8rem; bottom: .18rem;
    height: 2.5px;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--k-saffron), var(--k-green));
}

.k-nav .dropdown-menu {
    border: 1px solid var(--k-line);
    border-radius: var(--k-radius);
    box-shadow: var(--k-shadow);
    padding: .4rem;
    min-width: 250px;
}
.k-nav .dropdown-item {
    border-radius: var(--k-radius-sm);
    padding: .55rem .75rem;
    font-size: .875rem;
    font-weight: 500;
    color: var(--k-body);
    display: flex;
    align-items: center;
    gap: .6rem;
    white-space: normal;
}
.k-nav .dropdown-item:hover, .k-nav .dropdown-item:focus { background: var(--k-bg-alt); color: var(--k-navy); }
.k-nav .dropdown-item i { color: var(--k-saffron); width: 18px; text-align: center; flex: 0 0 auto; }
.k-nav .dropdown-item small { display: block; color: var(--k-muted); font-size: .74rem; font-weight: 400; }

.navbar-toggler {
    border: 1px solid var(--k-line);
    border-radius: var(--k-radius-sm);
    padding: .45rem .6rem;
    width: 46px; height: 44px;
}
.navbar-toggler:focus { box-shadow: none; outline: 3px solid var(--k-saffron); outline-offset: 2px; }

@media (max-width: 1199.98px) {
    .k-nav {
        padding: .75rem 0 .25rem;
        max-height: calc(100vh - var(--k-header-h) - 40px);
        overflow-y: auto;
    }
    .k-nav .nav-link { padding: .7rem .6rem !important; }
    .k-nav .nav-link.active::after { left: .6rem; right: auto; width: 22px; bottom: .35rem; }
    .k-nav .dropdown-menu { border: 0; box-shadow: none; padding-left: 1rem; background: var(--k-bg-alt); }
    .k-header__cta { margin-top: .6rem; display: flex; gap: .5rem; }
    .k-header__cta .btn { flex: 1; }
}

/* ---------------------------------------------------------------------
   9. Hero
   --------------------------------------------------------------------- */
.k-hero {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(1100px 560px at 8% -8%, rgba(232, 135, 30, .22), transparent 62%),
        radial-gradient(900px 620px at 96% 8%, rgba(18, 128, 92, .24), transparent 60%),
        linear-gradient(155deg, #0B1C33 0%, var(--k-navy) 48%, #133258 100%);
    color: #C6D5E7;
    padding: clamp(3.5rem, 8vw, 7rem) 0 clamp(3rem, 7vw, 6rem);
    isolation: isolate;
}

/* Fine grid overlay - reads as instrumentation, not decoration */
.k-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 40%, transparent 100%);
    -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 40%, transparent 100%);
    z-index: -1;
}

.k-hero h1 { color: #fff; margin-bottom: 1.1rem; }
.k-hero__lead {
    font-size: clamp(1rem, .95rem + .4vw, 1.2rem);
    color: #A9BDD4;
    max-width: 620px;
    margin-bottom: 2rem;
}
.k-hero__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-bottom: 2.25rem; }

.k-hero__badges { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: 1.5rem; }

/* Rotating chakra used as the hero's visual anchor */
.k-chakra {
    width: min(84%, 400px);
    aspect-ratio: 1;
    margin-inline: auto;
    display: block;
    filter: drop-shadow(0 18px 50px rgba(0, 0, 0, .45));
}
.k-chakra__wheel {
    transform-origin: 50% 50%;
    animation: k-spin 70s linear infinite;
}
@keyframes k-spin { to { transform: rotate(360deg); } }

/* Orbiting portal nodes around the chakra */
.k-orbit { position: relative; }
.k-orbit__node {
    position: absolute;
    display: flex;
    align-items: center;
    gap: .45rem;
    padding: .45rem .75rem;
    border-radius: var(--k-radius-pill);
    background: rgba(255, 255, 255, .09);
    border: 1px solid rgba(255, 255, 255, .18);
    backdrop-filter: blur(10px);
    font-size: .74rem;
    font-weight: 700;
    color: #E4EDF7;
    letter-spacing: .04em;
    text-transform: uppercase;
    white-space: nowrap;
    animation: k-float 6s var(--k-ease) infinite;
}
.k-orbit__node i { color: var(--k-saffron); }
.k-orbit__node:nth-child(1) { top: 4%;  left: 50%; transform: translateX(-50%); animation-delay: 0s; }
.k-orbit__node:nth-child(2) { top: 30%; right: -4%; animation-delay: .8s; }
.k-orbit__node:nth-child(3) { bottom: 22%; right: 2%; animation-delay: 1.6s; }
.k-orbit__node:nth-child(4) { bottom: 4%; left: 50%; transform: translateX(-50%); animation-delay: 2.4s; }
.k-orbit__node:nth-child(5) { top: 30%; left: -4%; animation-delay: 3.2s; }

@keyframes k-float {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-9px); }
}
.k-orbit__node:nth-child(1),
.k-orbit__node:nth-child(4) {
    animation-name: k-float-x;
}
@keyframes k-float-x {
    0%, 100% { transform: translate(-50%, 0); }
    50%      { transform: translate(-50%, -9px); }
}

@media (max-width: 991.98px) {
    .k-orbit__node { font-size: .68rem; padding: .35rem .6rem; }
}

/* ---------------------------------------------------------------------
   10. Statistics strip (animated counters)
   --------------------------------------------------------------------- */
.k-stat {
    text-align: center;
    padding: 1.1rem .75rem;
    border-radius: var(--k-radius);
    height: 100%;
}
.k-stat__value {
    font-size: clamp(1.55rem, 1.2rem + 1.3vw, 2.35rem);
    font-weight: 800;
    line-height: 1.08;
    color: #fff;
    letter-spacing: -.02em;
}
.k-stat__unit { font-size: .8rem; font-weight: 600; color: var(--k-saffron); margin-left: .15rem; }
.k-stat__label {
    font-size: .78rem;
    color: #93A9C6;
    margin-top: .4rem;
    font-weight: 500;
    line-height: 1.4;
}
.k-stat__icon { font-size: 1.15rem; color: var(--k-saffron); margin-bottom: .35rem; display: block; }

.k-stat--light .k-stat__value { color: var(--k-ink); }
.k-stat--light .k-stat__label { color: var(--k-muted); }

/* ---------------------------------------------------------------------
   11. Portal cards
   --------------------------------------------------------------------- */
.k-portal {
    display: block;
    padding: 1.6rem 1.4rem;
    border-radius: var(--k-radius);
    background: var(--k-surface);
    border: 1px solid var(--k-line);
    height: 100%;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    transition: transform var(--k-speed) var(--k-ease), box-shadow var(--k-speed) var(--k-ease), border-color var(--k-speed) var(--k-ease);
}
.k-portal::after {
    content: '';
    position: absolute;
    inset: auto 0 0 0;
    height: 3px;
    background: var(--k-accent, var(--k-saffron));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .45s var(--k-ease);
}
.k-portal:hover {
    transform: translateY(-5px);
    box-shadow: var(--k-shadow);
    border-color: #D4DEEA;
    text-decoration: none;
}
.k-portal:hover::after { transform: scaleX(1); }

.k-portal__icon {
    width: 52px; height: 52px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    font-size: 1.45rem;
    margin-bottom: 1rem;
    background: color-mix(in srgb, var(--k-accent) 12%, transparent);
    color: var(--k-accent);
    transition: transform var(--k-speed) var(--k-ease);
}
.k-portal:hover .k-portal__icon { transform: scale(1.08) rotate(-4deg); }

.k-portal__title { font-size: 1.1rem; font-weight: 700; color: var(--k-ink); margin-bottom: .4rem; }
.k-portal__text  { font-size: .875rem; color: var(--k-muted); margin-bottom: .9rem; line-height: 1.6; }
.k-portal__metrics { display: flex; flex-wrap: wrap; gap: .35rem 1.1rem; padding-top: .85rem; border-top: 1px solid var(--k-line-soft); }
.k-portal__metric { font-size: .78rem; color: var(--k-muted); }
.k-portal__metric b { display: block; font-size: 1rem; color: var(--k-ink); font-weight: 700; }
.k-portal__link { font-size: .8125rem; font-weight: 700; color: var(--k-accent); display: inline-flex; align-items: center; gap: .3rem; margin-top: .9rem; }
.k-portal:hover .k-portal__link i { transform: translateX(3px); }
.k-portal__link i { transition: transform var(--k-speed) var(--k-ease); }

.k-portal--waste       { --k-accent: #E8871E; }
.k-portal--fuel        { --k-accent: #C25A1B; }
.k-portal--energy      { --k-accent: #12805C; }
.k-portal--transport   { --k-accent: #1B4B8F; }
.k-portal--environment { --k-accent: #0E8C8C; }
.k-portal--complaint   { --k-accent: #7A4BC4; }

/* ---------------------------------------------------------------------
   12. Process / flow diagram
   --------------------------------------------------------------------- */
.k-flow {
    display: flex;
    align-items: stretch;
    gap: .5rem;
    flex-wrap: wrap;
    justify-content: center;
}
.k-flow__step {
    flex: 1 1 150px;
    min-width: 138px;
    text-align: center;
    padding: 1.1rem .8rem;
    border-radius: var(--k-radius);
    background: rgba(255, 255, 255, .05);
    border: 1px solid rgba(255, 255, 255, .12);
    position: relative;
}
.k-flow--light .k-flow__step { background: var(--k-surface); border-color: var(--k-line); }

.k-flow__icon {
    width: 46px; height: 46px;
    margin: 0 auto .6rem;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 1.2rem;
    background: color-mix(in srgb, var(--k-accent, var(--k-saffron)) 18%, transparent);
    color: var(--k-accent, var(--k-saffron));
    position: relative;
}
.k-flow__icon::after {
    content: '';
    position: absolute;
    inset: -5px;
    border-radius: 50%;
    border: 1.5px solid color-mix(in srgb, var(--k-accent, var(--k-saffron)) 40%, transparent);
    animation: k-ping 3s var(--k-ease) infinite;
    animation-delay: var(--k-delay, 0s);
}
.k-flow__label { font-size: .82rem; font-weight: 700; color: #fff; letter-spacing: .03em; }
.k-flow--light .k-flow__label { color: var(--k-ink); }
.k-flow__value { font-size: .74rem; color: #92A8C4; margin-top: .18rem; }
.k-flow--light .k-flow__value { color: var(--k-muted); }

.k-flow__arrow {
    align-self: center;
    color: var(--k-saffron);
    font-size: 1.15rem;
    flex: 0 0 auto;
    animation: k-nudge 2.2s var(--k-ease) infinite;
}
@keyframes k-nudge {
    0%, 100% { transform: translateX(0); opacity: .55; }
    50%      { transform: translateX(5px); opacity: 1; }
}
@media (max-width: 767.98px) {
    .k-flow__arrow { transform: rotate(90deg); animation: none; opacity: .7; }
    .k-flow { flex-direction: column; align-items: stretch; }
}

/* Energy flow - vertical cascade */
.k-cascade { display: grid; gap: .6rem; }
.k-cascade__node {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: .95rem 1.15rem;
    border-radius: var(--k-radius);
    background: rgba(255, 255, 255, .055);
    border: 1px solid rgba(255, 255, 255, .13);
}
.k-cascade__icon {
    width: 42px; height: 42px;
    border-radius: 12px;
    display: grid; place-items: center;
    font-size: 1.15rem;
    flex: 0 0 auto;
    background: color-mix(in srgb, var(--k-accent, var(--k-saffron)) 20%, transparent);
    color: var(--k-accent, var(--k-saffron));
}
.k-cascade__label { font-weight: 700; color: #fff; font-size: .92rem; }
.k-cascade__meta  { font-size: .78rem; color: #92A8C4; }
.k-cascade__value { margin-left: auto; text-align: right; font-weight: 800; color: #fff; font-size: 1.05rem; white-space: nowrap; }
.k-cascade__value small { display: block; font-size: .7rem; font-weight: 500; color: #92A8C4; }

.k-cascade__link {
    height: 26px;
    margin-inline: auto;
    width: 2px;
    background: linear-gradient(180deg, var(--k-saffron), transparent);
    position: relative;
}
.k-cascade__link::after {
    content: '';
    position: absolute;
    left: 50%; top: 0;
    width: 6px; height: 6px;
    margin-left: -3px;
    border-radius: 50%;
    background: var(--k-saffron);
    animation: k-drop 2.4s var(--k-ease) infinite;
}
@keyframes k-drop {
    0%   { top: -2px; opacity: 0; }
    30%  { opacity: 1; }
    100% { top: 24px; opacity: 0; }
}

/* ---------------------------------------------------------------------
   13. Timeline (Vision 2040)
   --------------------------------------------------------------------- */
.k-timeline { position: relative; padding-left: 0; list-style: none; margin: 0; }
.k-timeline::before {
    content: '';
    position: absolute;
    left: 27px; top: 8px; bottom: 8px;
    width: 2px;
    background: linear-gradient(180deg, var(--k-saffron), var(--k-green));
    opacity: .35;
}
.k-timeline__item {
    position: relative;
    padding: 0 0 2.2rem 4.5rem;
}
.k-timeline__item:last-child { padding-bottom: 0; }
.k-timeline__marker {
    position: absolute;
    left: 0; top: 0;
    width: 56px; height: 56px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--k-surface);
    border: 2px solid var(--k-saffron);
    color: var(--k-saffron-dark);
    font-weight: 800;
    font-size: .9rem;
    box-shadow: 0 0 0 6px var(--k-bg);
    z-index: 1;
}
.k-section--dark .k-timeline__marker { background: var(--k-navy); box-shadow: 0 0 0 6px #0F2748; color: var(--k-saffron); }
.k-timeline__item:nth-child(even) .k-timeline__marker { border-color: var(--k-green); color: var(--k-green); }

.k-timeline__year { font-size: 1.25rem; font-weight: 800; color: var(--k-ink); margin-bottom: .1rem; }
.k-section--dark .k-timeline__year { color: #fff; }
.k-timeline__head { font-size: .95rem; font-weight: 700; color: var(--k-saffron-dark); margin-bottom: .5rem; }
.k-timeline__body { font-size: .9rem; color: var(--k-muted); }
.k-section--dark .k-timeline__body { color: #A9BDD4; }

@media (max-width: 575.98px) {
    .k-timeline::before { left: 21px; }
    .k-timeline__item { padding-left: 3.6rem; }
    .k-timeline__marker { width: 44px; height: 44px; font-size: .78rem; }
}

/* Complaint status timeline */
.k-track { list-style: none; margin: 0; padding: 0; position: relative; }
.k-track::before {
    content: '';
    position: absolute;
    left: 15px; top: 14px; bottom: 14px;
    width: 2px;
    background: var(--k-line);
}
.k-track__item { position: relative; padding: 0 0 1.5rem 3rem; }
.k-track__item:last-child { padding-bottom: 0; }
.k-track__dot {
    position: absolute;
    left: 4px; top: 2px;
    width: 24px; height: 24px;
    border-radius: 50%;
    display: grid; place-items: center;
    background: var(--k-bg-alt);
    color: var(--k-muted);
    border: 2px solid var(--k-line);
    font-size: .7rem;
    z-index: 1;
}
.k-track__item--done .k-track__dot { background: var(--k-green-soft); border-color: var(--k-green); color: var(--k-green-dark); }
.k-track__item--current .k-track__dot {
    background: var(--k-saffron); border-color: var(--k-saffron); color: #fff;
    box-shadow: 0 0 0 4px rgba(232, 135, 30, .18);
}
.k-track__title { font-weight: 700; color: var(--k-ink); font-size: .92rem; }
.k-track__meta  { font-size: .78rem; color: var(--k-muted); }
.k-track__note  { font-size: .84rem; color: var(--k-body); margin-top: .25rem; }

/* ---------------------------------------------------------------------
   14. Charts & maps
   --------------------------------------------------------------------- */
.k-chart { position: relative; width: 100%; }
.k-chart canvas { max-width: 100%; }
.k-chart--sm  { height: 190px; }
.k-chart--md  { height: 260px; }
.k-chart--lg  { height: 330px; }
.k-chart--xl  { height: 400px; }

@media (max-width: 575.98px) {
    .k-chart--lg, .k-chart--xl { height: 260px; }
    .k-chart--md { height: 220px; }
}

.k-map {
    width: 100%;
    border-radius: var(--k-radius);
    overflow: hidden;
    background: var(--k-bg-alt);
    z-index: 0;                     /* keeps Leaflet panes under the sticky header */
}
.k-map--sm { height: 280px; }
.k-map--md { height: 420px; }
.k-map--lg { height: 540px; }

@media (max-width: 767.98px) {
    .k-map--md, .k-map--lg { height: 340px; }
}

.leaflet-container { font: inherit; }
.leaflet-popup-content-wrapper { border-radius: var(--k-radius-sm); box-shadow: var(--k-shadow); }
.leaflet-popup-content { margin: .85rem 1rem; font-size: .84rem; line-height: 1.55; }
.leaflet-popup-content h6 { margin: 0 0 .35rem; font-size: .92rem; font-weight: 700; }
.leaflet-popup-content dl { display: grid; grid-template-columns: auto 1fr; gap: .1rem .6rem; margin: .4rem 0 0; }
.leaflet-popup-content dt { color: var(--k-muted); font-weight: 500; }
.leaflet-popup-content dd { margin: 0; font-weight: 600; color: var(--k-ink); }

/* Custom map marker */
.k-marker {
    display: grid;
    place-items: center;
    width: 30px; height: 30px;
    border-radius: 50% 50% 50% 4px;
    transform: rotate(-45deg);
    box-shadow: 0 3px 10px rgba(15, 39, 72, .3);
    border: 2px solid #fff;
    color: #fff;
    font-size: .78rem;
}
.k-marker i { transform: rotate(45deg); }
.k-marker--pulse::after {
    content: '';
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    border: 2px solid currentColor;
    animation: k-ping 2.4s var(--k-ease) infinite;
}

.k-map-legend {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem .95rem;
    padding: .7rem .9rem;
    font-size: .78rem;
    color: var(--k-muted);
}
.k-map-legend__item { display: inline-flex; align-items: center; gap: .38rem; }
.k-map-legend__swatch { width: 11px; height: 11px; border-radius: 50%; border: 1.5px solid #fff; box-shadow: 0 0 0 1px rgba(15,39,72,.18); }

/* ---------------------------------------------------------------------
   15. Tables
   --------------------------------------------------------------------- */
.k-table-wrap {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: var(--k-radius);
}
.k-table {
    width: 100%;
    margin: 0;
    border-collapse: separate;
    border-spacing: 0;
    font-size: .875rem;
    min-width: 640px;
}
.k-table thead th {
    background: var(--k-bg-alt);
    color: var(--k-muted);
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    padding: .75rem 1rem;
    white-space: nowrap;
    border-bottom: 1px solid var(--k-line);
    position: sticky;
    top: 0;
    z-index: 2;
}
.k-table thead th a { color: inherit; display: inline-flex; align-items: center; gap: .3rem; }
.k-table thead th a:hover { color: var(--k-navy); text-decoration: none; }
.k-table tbody td {
    padding: .8rem 1rem;
    border-bottom: 1px solid var(--k-line-soft);
    color: var(--k-body);
    vertical-align: middle;
}
.k-table tbody tr:last-child td { border-bottom: 0; }
.k-table tbody tr { transition: background var(--k-speed) var(--k-ease); }
.k-table tbody tr:hover { background: var(--k-bg); }
.k-table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.k-table .k-table__primary { font-weight: 600; color: var(--k-ink); }
.k-table__actions { display: flex; gap: .3rem; justify-content: flex-end; }

/* On small screens each row becomes a stacked card */
@media (max-width: 767.98px) {
    .k-table--stack { min-width: 0; }
    .k-table--stack thead { display: none; }
    .k-table--stack tbody tr {
        display: block;
        border: 1px solid var(--k-line);
        border-radius: var(--k-radius);
        margin-bottom: .75rem;
        background: var(--k-surface);
        padding: .35rem .25rem;
    }
    .k-table--stack tbody td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 1rem;
        text-align: right;
        border-bottom: 1px solid var(--k-line-soft);
        padding: .58rem .85rem;
    }
    .k-table--stack tbody td:last-child { border-bottom: 0; }
    .k-table--stack tbody td::before {
        content: attr(data-label);
        font-size: .72rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: .05em;
        color: var(--k-muted);
        text-align: left;
        flex: 0 0 45%;
    }
    .k-table--stack .k-table__actions { justify-content: flex-end; }
}

/* ---------------------------------------------------------------------
   16. Forms
   --------------------------------------------------------------------- */
.form-label {
    font-size: .82rem;
    font-weight: 600;
    color: var(--k-ink);
    margin-bottom: .35rem;
}
.form-label .req { color: var(--k-danger); margin-left: .12rem; }

.form-control, .form-select {
    border: 1.5px solid var(--k-line);
    border-radius: var(--k-radius-sm);
    padding: .62rem .85rem;
    font-size: .9375rem;
    color: var(--k-ink);
    background-color: #fff;
    min-height: 44px;
    transition: border-color var(--k-speed) var(--k-ease), box-shadow var(--k-speed) var(--k-ease);
}
.form-control:focus, .form-select:focus {
    border-color: var(--k-saffron);
    box-shadow: 0 0 0 3px rgba(232, 135, 30, .16);
    outline: none;
}
.form-control::placeholder { color: #9AA8B8; }
textarea.form-control { min-height: 110px; resize: vertical; }

.form-control.is-invalid, .form-select.is-invalid { border-color: var(--k-danger); }
.form-control.is-invalid:focus { box-shadow: 0 0 0 3px rgba(196, 59, 51, .14); }
.invalid-feedback { font-size: .78rem; color: var(--k-danger); display: block; margin-top: .25rem; }
.form-text { font-size: .78rem; color: var(--k-muted); margin-top: .3rem; }

.form-check-input { width: 1.1em; height: 1.1em; margin-top: .2em; border-color: #C3CEDC; }
.form-check-input:checked { background-color: var(--k-green); border-color: var(--k-green); }
.form-check-input:focus { box-shadow: 0 0 0 3px rgba(232, 135, 30, .18); border-color: var(--k-saffron); }
.form-check-label { font-size: .875rem; }

.input-group-text {
    background: var(--k-bg-alt);
    border: 1.5px solid var(--k-line);
    color: var(--k-muted);
    font-size: .875rem;
    border-radius: var(--k-radius-sm);
}

/* Sector chooser used by the Complaint Centre */
.k-choice { display: block; cursor: pointer; height: 100%; }
.k-choice input { position: absolute; opacity: 0; width: 0; height: 0; }
.k-choice__box {
    height: 100%;
    border: 1.5px solid var(--k-line);
    border-radius: var(--k-radius);
    padding: 1rem .85rem;
    text-align: center;
    background: #fff;
    transition: all var(--k-speed) var(--k-ease);
}
.k-choice__box i { font-size: 1.5rem; color: var(--k-muted); display: block; margin-bottom: .5rem; transition: color var(--k-speed) var(--k-ease); }
.k-choice__box span { font-size: .84rem; font-weight: 700; color: var(--k-ink); display: block; line-height: 1.3; }
.k-choice__box small { font-size: .72rem; color: var(--k-muted); display: block; margin-top: .25rem; }
.k-choice:hover .k-choice__box { border-color: #C7D3E1; transform: translateY(-2px); }
.k-choice input:checked + .k-choice__box {
    border-color: var(--k-saffron);
    background: var(--k-saffron-soft);
    box-shadow: 0 0 0 3px rgba(232, 135, 30, .14);
}
.k-choice input:checked + .k-choice__box i { color: var(--k-saffron-dark); }
.k-choice input:focus-visible + .k-choice__box { outline: 3px solid var(--k-saffron); outline-offset: 2px; }

/* Photo upload dropzone */
.k-dropzone {
    border: 2px dashed var(--k-line);
    border-radius: var(--k-radius);
    padding: 1.75rem 1rem;
    text-align: center;
    background: var(--k-bg);
    cursor: pointer;
    transition: all var(--k-speed) var(--k-ease);
}
.k-dropzone:hover, .k-dropzone--over { border-color: var(--k-saffron); background: var(--k-saffron-soft); }
.k-dropzone i { font-size: 1.9rem; color: var(--k-saffron); display: block; margin-bottom: .5rem; }
.k-dropzone__hint { font-size: .78rem; color: var(--k-muted); }

.k-preview { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: .85rem; }
.k-preview__item { position: relative; width: 88px; height: 88px; border-radius: var(--k-radius-sm); overflow: hidden; border: 1px solid var(--k-line); }
.k-preview__item img { width: 100%; height: 100%; object-fit: cover; }
.k-preview__name { position: absolute; inset: auto 0 0 0; background: rgba(15,39,72,.78); color: #fff; font-size: .6rem; padding: .15rem .3rem; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------------------------------------------------------------------
   17. Alerts & empty states
   --------------------------------------------------------------------- */
.alert {
    border: 1px solid transparent;
    border-radius: var(--k-radius);
    padding: .85rem 1.1rem;
    font-size: .9rem;
    display: flex;
    align-items: flex-start;
    gap: .7rem;
}
.alert i { flex: 0 0 auto; margin-top: .12rem; font-size: 1.05rem; }
.alert-success { background: var(--k-green-soft); border-color: #BEE3D4; color: #0B5A41; }
.alert-danger  { background: #FBE9E7; border-color: #F3C6C1; color: #8E241C; }
.alert-warning { background: #FDF3E3; border-color: #F0DAB4; color: #8A5D10; }
.alert-info    { background: #E9F1FB; border-color: #C6DBF3; color: #16528F; }

.k-empty { text-align: center; padding: 3rem 1.25rem; color: var(--k-muted); }
.k-empty i { font-size: 2.6rem; color: #C3CEDC; display: block; margin-bottom: .85rem; }
.k-empty h5 { color: var(--k-ink); font-size: 1.05rem; margin-bottom: .35rem; }
.k-empty p { font-size: .875rem; max-width: 420px; margin-inline: auto; }

/* ---------------------------------------------------------------------
   18. Progress
   --------------------------------------------------------------------- */
.k-progress {
    height: 7px;
    border-radius: var(--k-radius-pill);
    background: var(--k-line-soft);
    overflow: hidden;
}
.k-progress__bar {
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--k-saffron), var(--k-green));
    width: 0;
    transition: width 1.2s var(--k-ease);
}
.k-progress__bar--success { background: linear-gradient(90deg, #17A673, var(--k-green-dark)); }
.k-progress__bar--warning { background: linear-gradient(90deg, #EDA93C, var(--k-warning)); }
.k-progress__bar--danger  { background: linear-gradient(90deg, #E06A60, var(--k-danger)); }
.k-progress--lg { height: 11px; }

.k-meter { display: flex; align-items: center; gap: .65rem; }
.k-meter .k-progress { flex: 1; }
.k-meter__value { font-size: .8125rem; font-weight: 700; color: var(--k-ink); min-width: 46px; text-align: right; font-variant-numeric: tabular-nums; }

/* Circular gauge (AQI) */
.k-gauge { position: relative; width: 100%; max-width: 230px; margin-inline: auto; aspect-ratio: 1; }
.k-gauge svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.k-gauge__track { fill: none; stroke: var(--k-line-soft); stroke-width: 12; }
.k-gauge__fill {
    fill: none;
    stroke-width: 12;
    stroke-linecap: round;
    transition: stroke-dashoffset 1.4s var(--k-ease);
}
.k-gauge__center {
    position: absolute;
    inset: 0;
    display: grid;
    place-content: center;
    text-align: center;
}
.k-gauge__value { font-size: 2.4rem; font-weight: 800; line-height: 1; color: var(--k-ink); }
.k-gauge__label { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; margin-top: .3rem; }

/* ---------------------------------------------------------------------
   19. Footer
   --------------------------------------------------------------------- */
.k-footer {
    background: linear-gradient(170deg, #0C1F3A 0%, var(--k-navy) 100%);
    color: #93A9C6;
    padding-top: clamp(2.75rem, 5vw, 4.25rem);
    font-size: .875rem;
}
.k-footer h5 {
    color: #fff;
    font-size: .82rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    margin-bottom: 1.1rem;
}
.k-footer a { color: #93A9C6; }
.k-footer a:hover { color: var(--k-saffron); text-decoration: none; }
.k-footer ul { list-style: none; padding: 0; margin: 0; }
.k-footer li { margin-bottom: .55rem; }
.k-footer__brand { display: flex; align-items: center; gap: .7rem; margin-bottom: 1rem; }
.k-footer__brand .k-brand__name { color: #fff; }
.k-footer__brand .k-brand__tag { color: var(--k-saffron); }
.k-footer__contact li { display: flex; gap: .6rem; align-items: flex-start; }
.k-footer__contact i { color: var(--k-saffron); margin-top: .22rem; flex: 0 0 auto; }
.k-footer__social { display: flex; gap: .5rem; margin-top: 1.15rem; }
.k-footer__social a {
    width: 38px; height: 38px;
    display: grid; place-items: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, .07);
    border: 1px solid rgba(255, 255, 255, .12);
    color: #C9D6E6;
    transition: all var(--k-speed) var(--k-ease);
}
.k-footer__social a:hover { background: var(--k-saffron); border-color: var(--k-saffron); color: #fff; transform: translateY(-2px); }

.k-footer__seo {
    border-top: 1px solid rgba(255, 255, 255, .09);
    margin-top: 2.5rem;
    padding: 1.75rem 0;
    font-size: .8125rem;
    color: #7C93B3;
    line-height: 1.75;
}
.k-footer__bottom {
    border-top: 1px solid rgba(255, 255, 255, .09);
    padding: 1.15rem 0;
    font-size: .8125rem;
    display: flex;
    flex-wrap: wrap;
    gap: .5rem 1.5rem;
    align-items: center;
    justify-content: space-between;
}
.k-footer__legal { display: flex; flex-wrap: wrap; gap: .35rem 1.15rem; }

/* Tricolour rule under the footer */
.k-tricolour { height: 4px; display: flex; }
.k-tricolour span { flex: 1; }
.k-tricolour span:nth-child(1) { background: var(--k-saffron); }
.k-tricolour span:nth-child(2) { background: #F4F7FB; }
.k-tricolour span:nth-child(3) { background: var(--k-green); }

/* ---------------------------------------------------------------------
   20. Page hero (interior pages)
   --------------------------------------------------------------------- */
.k-page-hero {
    background:
        radial-gradient(760px 400px at 6% 0%, rgba(232, 135, 30, .16), transparent 60%),
        radial-gradient(700px 400px at 98% 100%, rgba(18, 128, 92, .18), transparent 58%),
        linear-gradient(150deg, #0C1F3A 0%, var(--k-navy) 100%);
    color: #A9BDD4;
    padding: clamp(2.5rem, 5vw, 4rem) 0 clamp(2.25rem, 4.5vw, 3.5rem);
    position: relative;
    overflow: hidden;
}
.k-page-hero h1 { color: #fff; margin-bottom: .75rem; }
.k-page-hero__lead { color: #A9BDD4; max-width: 720px; font-size: clamp(.95rem, .92rem + .25vw, 1.1rem); }
.k-page-hero__meta { display: flex; flex-wrap: wrap; gap: .5rem .75rem; margin-top: 1.25rem; align-items: center; }

.k-breadcrumb { font-size: .8rem; margin-bottom: 1rem; }
.k-breadcrumb ol { display: flex; flex-wrap: wrap; gap: .3rem .5rem; list-style: none; padding: 0; margin: 0; align-items: center; }
.k-breadcrumb a { color: #93A9C6; }
.k-breadcrumb a:hover { color: var(--k-saffron); }
.k-breadcrumb li[aria-current] { color: #fff; font-weight: 600; }
.k-breadcrumb li + li::before { content: '/'; margin-right: .5rem; color: #56718F; }

/* ---------------------------------------------------------------------
   21. Prose (CMS content)
   --------------------------------------------------------------------- */
.k-prose { font-size: 1rem; line-height: 1.78; color: var(--k-body); }
.k-prose > *:first-child { margin-top: 0; }
.k-prose h2 { font-size: clamp(1.35rem, 1.15rem + .8vw, 1.75rem); margin: 2.25rem 0 .85rem; }
.k-prose h3 { font-size: clamp(1.1rem, 1.02rem + .4vw, 1.3rem); margin: 1.75rem 0 .7rem; }
.k-prose ul, .k-prose ol { padding-left: 1.3rem; margin-bottom: 1.15rem; }
.k-prose li { margin-bottom: .5rem; }
.k-prose .lead { font-size: 1.08rem; color: var(--k-ink); font-weight: 500; }
.k-prose strong { color: var(--k-ink); font-weight: 600; }
.k-prose blockquote {
    margin: 1.5rem 0;
    padding: 1rem 1.25rem;
    border-left: 3px solid var(--k-saffron);
    background: var(--k-saffron-soft);
    border-radius: 0 var(--k-radius-sm) var(--k-radius-sm) 0;
    color: var(--k-ink);
}

/* ---------------------------------------------------------------------
   22. Accordion (FAQ)
   --------------------------------------------------------------------- */
.accordion-item { border: 1px solid var(--k-line); border-radius: var(--k-radius) !important; margin-bottom: .75rem; overflow: hidden; background: #fff; }
.accordion-button {
    font-weight: 600;
    font-size: .975rem;
    color: var(--k-ink);
    padding: 1.05rem 1.25rem;
    background: #fff;
}
.accordion-button:not(.collapsed) { background: var(--k-saffron-soft); color: var(--k-saffron-dark); box-shadow: none; }
.accordion-button:focus { box-shadow: 0 0 0 3px rgba(232, 135, 30, .18); border-color: transparent; }
.accordion-button::after { width: 1rem; height: 1rem; background-size: 1rem; }
.accordion-body { padding: 1.1rem 1.25rem; font-size: .92rem; color: var(--k-body); }

/* ---------------------------------------------------------------------
   23. Pagination
   --------------------------------------------------------------------- */
.k-pagination { display: flex; flex-wrap: wrap; gap: .3rem; align-items: center; justify-content: center; }
.k-pagination a, .k-pagination span {
    min-width: 38px; height: 38px;
    padding: 0 .65rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--k-radius-sm);
    border: 1px solid var(--k-line);
    font-size: .84rem;
    font-weight: 600;
    color: var(--k-body);
    background: #fff;
    transition: all var(--k-speed) var(--k-ease);
}
.k-pagination a:hover { border-color: var(--k-saffron); color: var(--k-saffron-dark); text-decoration: none; }
.k-pagination .is-active { background: var(--k-navy); border-color: var(--k-navy); color: #fff; }
.k-pagination .is-disabled { opacity: .45; pointer-events: none; }

/* ---------------------------------------------------------------------
   24. Scroll reveal
   --------------------------------------------------------------------- */
[data-reveal] {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity .7s var(--k-ease), transform .7s var(--k-ease);
    will-change: opacity, transform;
}
[data-reveal].is-visible { opacity: 1; transform: none; }
[data-reveal-delay="1"] { transition-delay: .08s; }
[data-reveal-delay="2"] { transition-delay: .16s; }
[data-reveal-delay="3"] { transition-delay: .24s; }
[data-reveal-delay="4"] { transition-delay: .32s; }
[data-reveal-delay="5"] { transition-delay: .40s; }
[data-reveal-delay="6"] { transition-delay: .48s; }

/* ---------------------------------------------------------------------
   25. Utilities
   --------------------------------------------------------------------- */
.k-text-saffron { color: var(--k-saffron-dark) !important; }
.k-text-green   { color: var(--k-green) !important; }
.k-text-navy    { color: var(--k-navy) !important; }
.k-text-muted   { color: var(--k-muted) !important; }
.k-bg-soft      { background: var(--k-bg-alt) !important; }
.k-num          { font-variant-numeric: tabular-nums; }
.k-divider      { height: 1px; background: var(--k-line); margin: 1.25rem 0; }
.k-divider--dark{ background: rgba(255, 255, 255, .1); }
.k-sticky-top   { position: sticky; top: calc(var(--k-header-h) + 16px); }

.k-scroll-x { overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: thin; }
.k-scroll-x::-webkit-scrollbar { height: 6px; }
.k-scroll-x::-webkit-scrollbar-thumb { background: #C3CEDC; border-radius: 3px; }

.k-updated {
    font-size: .74rem;
    color: var(--k-muted);
    display: inline-flex;
    align-items: center;
    gap: .35rem;
}
.k-updated--onDark { color: #8FA5C0; }

/* ---------------------------------------------------------------------
   26. Print
   --------------------------------------------------------------------- */
@media print {
    .k-header, .k-topbar, .k-footer, .btn, .k-map, .navbar-toggler { display: none !important; }
    body { background: #fff; color: #000; }
    .k-card, .k-kpi { box-shadow: none; border: 1px solid #ccc; break-inside: avoid; }
}

/* ---------------------------------------------------------------------
   27. Reduced motion
   --------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .001ms !important;
        scroll-behavior: auto !important;
    }
    [data-reveal] { opacity: 1; transform: none; }
    .k-chakra__wheel { animation: none; }
    .k-live__dot::after { display: none; }
    .k-flow__icon::after { display: none; }
    .k-cascade__link::after { display: none; }
}
