/* =====================================================================
   CEB temporary website - shared stylesheet
   One file for every page in /website. Sections:
   1. Tokens   2. Base   3. Header & nav   4. Page layout
   5. Prose (styles pasted legacy HTML automatically)
   6. Components   7. Power outages   8. RE schemes   9. Footer
   10. Responsive & print
   ===================================================================== */

/* ---------- 1. Tokens ---------- */
:root {
    --blue-950: #001a40;
    --blue-900: #00285e;
    --blue-800: #003399;
    --blue-600: #1d4ed8;
    --blue-100: #dbeafe;
    --blue-50:  #eff6ff;

    --amber-800: #92400e;
    --amber-600: #d97706;
    --amber-100: #fef3c7;
    --amber-50:  #fffbeb;

    --red-700: #b91c1c;
    --red-600: #dc2626;
    --red-100: #fee2e2;
    --red-50:  #fef2f2;

    --green-800: #166534;
    --green-700: #15803d;
    --green-100: #dcfce7;
    --green-50:  #f0fdf4;

    --ink:    #0f172a;
    --text:   #334155;
    --muted:  #64748b;
    --faint:  #94a3b8;
    --line:   #e2e8f0;
    --line-2: #cbd5e1;
    --bg:     #f6f8fb;
    --card:   #ffffff;

    --radius: 14px;
    --radius-sm: 8px;
    --shadow: 0 1px 2px rgba(15,23,42,.06), 0 4px 14px rgba(15,23,42,.06);
    --shadow-lg: 0 10px 30px rgba(15,23,42,.12);
    --wrap: 1180px;
    --font: 'Poppins', 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

/* ---------- 2. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.65;
    color: var(--text);
    background: var(--bg);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}
img { max-width: 100%; height: auto; }
a { color: var(--blue-800); text-underline-offset: 3px; }
a:hover { color: var(--blue-600); }
:focus-visible { outline: 3px solid var(--amber-600); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.25; margin: 0 0 .5em; font-weight: 600; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -999px; top: 8px; background: #fff; padding: 8px 14px; z-index: 2000; border-radius: 6px; }
.skip-link:focus { left: 8px; }
[hidden] { display: none !important; }

/* ---------- 3. Header & nav ---------- */
#site-header { min-height: 112px; } /* reserves space before JS draws the header */

.topbar { background: var(--blue-950); color: #cbd5e1; font-size: .82rem; }
.topbar .wrap { display: flex; gap: 18px; align-items: center; justify-content: space-between; min-height: 38px; flex-wrap: wrap; }
.topbar a { color: #fff; text-decoration: none; font-weight: 500; }
.topbar a:hover { text-decoration: underline; color: #fff; }
.topbar .hotline { display: flex; align-items: center; gap: 8px; }
.topbar .hotline strong { color: #fde68a; font-weight: 600; letter-spacing: .02em; }
.topbar .links { display: flex; gap: 18px; align-items: center; }

.masthead { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 900; }
.masthead .wrap { display: flex; align-items: center; gap: 20px; min-height: 74px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); flex-shrink: 0; }
.brand img { height: 46px; width: auto; display: block; }
.brand span { font-size: .78rem; line-height: 1.25; color: var(--muted); font-weight: 500; max-width: 150px; }
.brand span b { display: block; color: var(--blue-900); font-size: .95rem; font-weight: 600; }

.mainnav { margin-left: auto; }
.mainnav > ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 2px; }
.mainnav li { position: relative; }
.mainnav .top {
    display: flex; align-items: center; gap: 6px;
    padding: 10px 12px; border-radius: 8px;
    font: 500 .9rem/1.2 var(--font); color: var(--ink);
    background: none; border: 0; cursor: pointer; text-decoration: none; white-space: nowrap;
}
.mainnav .top:hover, .mainnav li.open > .top { background: var(--blue-50); color: var(--blue-800); }
.mainnav .top.current { color: var(--blue-800); box-shadow: inset 0 -2px 0 var(--blue-800); border-radius: 8px 8px 0 0; }
.mainnav .top .chev { font-size: .65rem; transition: transform .15s; }
.mainnav li.open > .top .chev { transform: rotate(180deg); }
.mainnav .top.hl-outage { color: var(--amber-800); }
.mainnav .top.hl-outage::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--amber-600); box-shadow: 0 0 0 3px var(--amber-100); }
.mainnav .top.hl-re { color: var(--green-800); }
.mainnav .top.hl-re::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--green-700); box-shadow: 0 0 0 3px var(--green-100); }

.dropdown {
    display: none; position: absolute; top: calc(100% + 6px); left: 0;
    min-width: 280px; background: #fff; border: 1px solid var(--line); border-radius: 12px;
    box-shadow: var(--shadow-lg); padding: 8px; list-style: none; margin: 0; z-index: 950;
}
.mainnav li.open > .dropdown { display: block; }
.mainnav li:last-child .dropdown, .mainnav li.align-right .dropdown { left: auto; right: 0; }
.dropdown.cols-2 { min-width: 560px; columns: 2; column-gap: 8px; }
.dropdown li { break-inside: avoid; }
.dropdown a { display: block; padding: 8px 12px; border-radius: 8px; text-decoration: none; color: var(--ink); font-size: .88rem; font-weight: 500; line-height: 1.35; }
.dropdown a small { display: block; color: var(--muted); font-weight: 400; font-size: .76rem; margin-top: 2px; }
.dropdown a:hover { background: var(--blue-50); color: var(--blue-800); }
.dropdown a[aria-current="page"] { background: var(--blue-50); color: var(--blue-800); }

.navtoggle { display: none; margin-left: auto; background: var(--blue-900); color: #fff; border: 0; border-radius: 10px; padding: 10px 14px; font: 600 .9rem var(--font); cursor: pointer; align-items: center; gap: 8px; }

.temp-banner { background: var(--amber-50); border-bottom: 2px solid #fcd34d; color: var(--amber-800); font-size: .88rem; line-height: 1.45; animation: tb-flash 1.4s ease-in-out 10; }
.temp-banner .wrap { display: flex; gap: 12px; align-items: center; padding-top: 10px; padding-bottom: 10px; }
.temp-banner strong { color: inherit; }
.tb-badge { flex-shrink: 0; display: inline-flex; align-items: center; gap: 6px; background: var(--amber-600); color: #fff; font-weight: 700; font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; padding: 4px 10px; border-radius: 6px; animation: tb-blink 1.4s steps(1, end) 10; }
/* blinks for about 14 seconds, then stays visible (flashing content must stop: WCAG 2.2.2) */
@keyframes tb-blink { 0%, 100% { opacity: 1; } 50% { opacity: .15; } }
@keyframes tb-flash { 0%, 100% { background: var(--amber-50); } 50% { background: #fde68a; } }
@media (max-width: 640px) { .temp-banner .wrap { flex-direction: column; align-items: flex-start; gap: 6px; } }
@media (prefers-reduced-motion: reduce) { .temp-banner, .tb-badge { animation: none; } }

/* ---------- 4. Page layout ---------- */
main { flex: 1; }
.page-hero { background: linear-gradient(135deg, var(--blue-900), var(--blue-800)); color: #dbeafe; padding: 34px 0 38px; }
.page-hero h1 { color: #fff; font-size: clamp(1.6rem, 3.4vw, 2.3rem); margin: 6px 0 8px; }
.page-hero p.lead { margin: 0; max-width: 760px; font-size: 1.03rem; color: #dbeafe; }
.page-hero.amber { background: linear-gradient(135deg, #78350f, #b45309); color: #fef3c7; }
.page-hero.amber p.lead { color: #fef3c7; }
.page-hero.green { background: linear-gradient(135deg, #14532d, #15803d); color: #dcfce7; }
.page-hero.green p.lead { color: #dcfce7; }

.crumbs { font-size: .8rem; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; list-style: none; margin: 0; padding: 0; }
.crumbs a { color: inherit; opacity: .85; text-decoration: none; }
.crumbs a:hover { opacity: 1; text-decoration: underline; color: inherit; }
.crumbs li + li::before { content: "/"; margin-right: 6px; opacity: .5; }

.page-body { padding: 32px 0 56px; }
.layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 32px; align-items: start; }
.layout.no-side { grid-template-columns: minmax(0, 1fr); }
.layout.side-right { grid-template-columns: minmax(0, 1fr) 320px; }

.sidenav { position: sticky; top: 92px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 10px; }
.sidenav h2 { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 6px 10px 8px; }
.sidenav ul { list-style: none; margin: 0; padding: 0; }
.sidenav a { display: block; padding: 8px 10px; border-radius: 8px; color: var(--text); text-decoration: none; font-size: .88rem; line-height: 1.35; }
.sidenav a:hover { background: var(--bg); color: var(--blue-800); }
.sidenav a[aria-current="page"] { background: var(--blue-50); color: var(--blue-800); font-weight: 600; box-shadow: inset 3px 0 0 var(--blue-800); }

.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 32px; box-shadow: var(--shadow); }
.panel + .panel { margin-top: 24px; }
.panel > h2:first-child, .panel > .panel-title:first-child { margin-top: 0; }
.section-title { font-size: 1.3rem; margin: 0 0 14px; display: flex; align-items: center; gap: 10px; }
.section-title i { color: var(--blue-800); font-size: 1.05rem; }
.stack > * + * { margin-top: 24px; }

/* ---------- 5. Prose: wrap pasted old-site HTML in <div class="prose"> ---------- */
.prose { color: var(--text); font-size: 1rem; overflow-wrap: break-word; }
.prose > :first-child { margin-top: 0; }
.prose h1 { font-size: 1.6rem; }
.prose h2 { font-size: 1.35rem; margin-top: 1.8em; padding-bottom: .35em; border-bottom: 1px solid var(--line); }
.prose h3 { font-size: 1.12rem; margin-top: 1.6em; color: var(--blue-900); }
.prose h4, .prose h5, .prose h6 { font-size: 1rem; margin-top: 1.4em; }
.prose p { margin: 0 0 1em; max-width: 78ch; }
.prose ul, .prose ol { padding-left: 1.4em; margin: 0 0 1.1em; max-width: 78ch; }
.prose li { margin-bottom: .4em; }
.prose li::marker { color: var(--blue-800); }
.prose strong, .prose b { color: var(--ink); font-weight: 600; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2em 0; }
.prose blockquote { margin: 1.2em 0; padding: 12px 18px; border-left: 4px solid var(--blue-800); background: var(--blue-50); border-radius: 0 8px 8px 0; }
.prose img { border-radius: 10px; margin: .5em 0; }
/* neutralise legacy inline styling that hurts readability */
.prose font { font: inherit !important; color: inherit !important; }
.prose [style*="font-family"] { font-family: inherit !important; }
.prose [style*="font-size"] { font-size: inherit !important; }
.prose [style*="width"]:not(img) { max-width: 100% !important; }
.prose center { text-align: left; }
/* tables (site.js wraps them in .table-wrap so they scroll on phones) */
.table-wrap { overflow-x: auto; margin: 0 0 1.4em; border: 1px solid var(--line); border-radius: 10px; -webkit-overflow-scrolling: touch; }
.prose table, table.data { width: 100% !important; border-collapse: collapse; font-size: .92rem; background: #fff; }
.prose th, .prose td, table.data th, table.data td { padding: 11px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.prose thead th, .prose tr:first-child th, table.data thead th { background: var(--blue-900); color: #fff; font-weight: 600; font-size: .85rem; border-bottom: 0; }
.prose tbody tr:nth-child(even) td, table.data tbody tr:nth-child(even) td { background: #f8fafc; }
.prose tr:last-child td, table.data tr:last-child td { border-bottom: 0; }
.prose td.num, table.data td.num, table.data th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
/* document links get an icon automatically (added by site.js) */
a.doc-link { display: inline-flex; align-items: baseline; gap: 6px; }
a.doc-link .fa-file-pdf { color: var(--red-700); }
a.doc-link .fa-file-word { color: #2563eb; }
a.doc-link .fa-file-excel { color: var(--green-700); }
a.doc-link .ext { font-size: .7rem; font-weight: 600; color: var(--muted); text-transform: uppercase; }

/* ---------- 6. Components ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 18px; border-radius: 10px; font: 600 .92rem/1.2 var(--font); text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: background .15s, color .15s; }
.btn-primary { background: var(--blue-800); color: #fff; }
.btn-primary:hover { background: var(--blue-900); color: #fff; }
.btn-outline { border-color: var(--line-2); color: var(--ink); background: #fff; }
.btn-outline:hover { border-color: var(--blue-800); color: var(--blue-800); }
.btn-amber { background: var(--amber-600); color: #fff; }
.btn-amber:hover { background: var(--amber-800); color: #fff; }
.btn-green { background: var(--green-700); color: #fff; }
.btn-green:hover { background: var(--green-800); color: #fff; }
.btn-white { background: #fff; color: var(--blue-900); }
.btn-white:hover { background: var(--blue-50); color: var(--blue-900); }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; }

.badge { display: inline-flex; align-items: center; gap: 6px; font-size: .74rem; font-weight: 600; padding: 3px 10px; border-radius: 999px; line-height: 1.5; white-space: nowrap; letter-spacing: .01em; }
.badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.badge.plain::before { display: none; }
.badge-blue  { background: var(--blue-100); color: var(--blue-800); }
.badge-amber { background: var(--amber-100); color: var(--amber-800); }
.badge-red   { background: var(--red-100); color: var(--red-700); }
.badge-green { background: var(--green-100); color: var(--green-800); }
.badge-grey  { background: #f1f5f9; color: var(--muted); }

.callout { display: flex; gap: 14px; padding: 16px 18px; border-radius: 12px; border: 1px solid; margin: 0 0 1.2em; font-size: .95rem; }
.callout > i { font-size: 1.15rem; margin-top: 3px; flex-shrink: 0; }
.callout p:last-child { margin-bottom: 0; }
.callout strong { color: inherit; }
.callout-info   { background: var(--blue-50); border-color: var(--blue-100); color: var(--blue-900); }
.callout-warn   { background: var(--amber-50); border-color: #fde68a; color: var(--amber-800); }
.callout-danger { background: var(--red-50); border-color: #fecaca; color: var(--red-700); }
.callout-ok     { background: var(--green-50); border-color: #bbf7d0; color: var(--green-800); }

/* placeholder for content still to be pasted - impossible to miss */
.pending { border: 2px dashed var(--line-2); border-radius: 12px; padding: 22px; text-align: center; color: var(--muted); background: repeating-linear-gradient(45deg, #fff, #fff 12px, #f8fafc 12px, #f8fafc 24px); font-size: .9rem; }
.pending i { display: block; font-size: 1.4rem; margin-bottom: 6px; color: var(--faint); }
.pending strong { color: var(--text); display: block; }
.tbc { background: var(--amber-100); color: var(--amber-800); padding: 0 6px; border-radius: 4px; font-size: .85em; font-weight: 600; white-space: nowrap; }

.grid { display: grid; gap: 18px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0,1fr)); }

.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.card h3 { font-size: 1.05rem; margin-bottom: 6px; }
.card p { margin: 0 0 12px; font-size: .92rem; }
.card .more { margin-top: auto; font-weight: 600; font-size: .88rem; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.card .more:hover { gap: 9px; }
a.card { text-decoration: none; color: inherit; transition: border-color .15s, transform .15s, box-shadow .15s; }
a.card:hover { border-color: var(--blue-800); transform: translateY(-2px); box-shadow: var(--shadow-lg); color: inherit; }
.card .ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--blue-50); color: var(--blue-800); font-size: 1.15rem; margin-bottom: 14px; }
.card.amber .ico { background: var(--amber-100); color: var(--amber-800); }
.card.green .ico { background: var(--green-100); color: var(--green-800); }
.card.red .ico   { background: var(--red-100); color: var(--red-700); }

/* key facts list */
.facts { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; margin: 0 0 14px; font-size: .9rem; }
.facts dt { color: var(--muted); font-weight: 500; }
.facts dd { margin: 0; color: var(--ink); font-weight: 500; }

/* documents list */
.docs { list-style: none; padding: 0; margin: 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.docs li { border-top: 1px solid var(--line); }
.docs li:first-child { border-top: 0; }
.docs a { display: flex; align-items: center; gap: 12px; padding: 12px 16px; text-decoration: none; color: var(--ink); font-size: .92rem; font-weight: 500; }
.docs a:hover { background: var(--blue-50); color: var(--blue-800); }
.docs a > i:first-child { color: var(--red-700); font-size: 1.1rem; width: 18px; text-align: center; }
.docs .meta { margin-left: auto; color: var(--muted); font-size: .78rem; font-weight: 400; white-space: nowrap; }

/* steps */
.steps { list-style: none; counter-reset: s; padding: 0; margin: 0 0 1.2em; }
.steps li { counter-increment: s; position: relative; padding: 0 0 18px 50px; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 34px; height: 34px; border-radius: 50%; background: var(--blue-800); color: #fff; display: grid; place-items: center; font-weight: 600; font-size: .9rem; }
.steps li::after { content: ""; position: absolute; left: 16px; top: 38px; bottom: 4px; width: 2px; background: var(--line); }
.steps li:last-child { padding-bottom: 0; }
.steps li:last-child::after { display: none; }
.steps strong { display: block; color: var(--ink); }

/* accordion (FAQs etc.) - uses native <details> */
.accordion details { border: 1px solid var(--line); border-radius: 12px; background: #fff; margin-bottom: 10px; }
.accordion summary { cursor: pointer; list-style: none; padding: 16px 48px 16px 18px; font-weight: 600; color: var(--ink); position: relative; }
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after { content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); font-size: 1.4rem; color: var(--blue-800); font-weight: 400; }
.accordion details[open] summary::after { content: "\2212"; }
.accordion details[open] summary { border-bottom: 1px solid var(--line); }
.accordion .answer { padding: 14px 18px 4px; }
.faq-search { width: 100%; padding: 13px 16px 13px 44px; border: 2px solid var(--line); border-radius: 12px; font: inherit; margin-bottom: 18px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' fill='none' stroke='%2364748b' stroke-width='2'%3E%3Ccircle cx='8' cy='8' r='6'/%3E%3Cpath d='m13 13 4 4'/%3E%3C/svg%3E") no-repeat 16px center; }
.faq-search:focus { border-color: var(--blue-800); outline: none; }

/* timeline (History) */
.timeline { list-style: none; margin: 0; padding: 0 0 0 28px; border-left: 3px solid var(--blue-100); }
.timeline li { position: relative; padding: 0 0 26px 18px; }
.timeline li::before { content: ""; position: absolute; left: -37px; top: 4px; width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 4px solid var(--blue-800); }
.timeline .year { font-weight: 700; color: var(--blue-800); font-size: 1.05rem; display: block; }

/* people (Board, Management) */
.people { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.person { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; text-align: center; }
.person .avatar { width: 84px; height: 84px; border-radius: 50%; margin: 0 auto 12px; background: var(--blue-50); color: var(--blue-800); display: grid; place-items: center; font-weight: 600; font-size: 1.4rem; overflow: hidden; }
.person .avatar img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.person h3 { font-size: 1rem; margin: 0 0 2px; }
.person .role { color: var(--blue-800); font-size: .85rem; font-weight: 500; }
.person p { font-size: .85rem; color: var(--muted); margin: 8px 0 0; }

/* contact blocks */
.contact-list { list-style: none; padding: 0; margin: 0; }
.contact-list li { display: flex; gap: 14px; padding: 12px 0; border-top: 1px solid var(--line); }
.contact-list li:first-child { border-top: 0; }
.contact-list i { color: var(--blue-800); width: 20px; text-align: center; margin-top: 4px; }
.contact-list .label { display: block; font-size: .78rem; color: var(--muted); }
.contact-list .value { color: var(--ink); font-weight: 600; display: block; }

/* filter chips */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { border: 1.5px solid var(--line-2); background: #fff; border-radius: 999px; padding: 7px 14px; font: 500 .85rem var(--font); color: var(--text); cursor: pointer; }
.chip:hover { border-color: var(--blue-800); color: var(--blue-800); }
.chip[aria-pressed="true"] { background: var(--blue-900); border-color: var(--blue-900); color: #fff; }

/* news list */
.news-list { list-style: none; margin: 0; padding: 0; }
.news-item { display: grid; grid-template-columns: 74px 1fr; gap: 16px; padding: 16px 0; border-top: 1px solid var(--line); }
.news-item:first-child { border-top: 0; padding-top: 0; }
.news-date { background: var(--blue-50); color: var(--blue-900); border-radius: 10px; text-align: center; padding: 8px 4px; line-height: 1.1; height: max-content; }
.news-date b { display: block; font-size: 1.5rem; }
.news-date span { font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; font-weight: 600; }
.news-item h3 { font-size: 1rem; margin: 0 0 4px; }
.news-item h3 a { color: var(--ink); text-decoration: none; }
.news-item h3 a:hover { color: var(--blue-800); text-decoration: underline; }
.news-item p { margin: 0; font-size: .9rem; color: var(--muted); }
.news-item .badge { margin-bottom: 6px; }

/* home hero */
.home-hero { background: radial-gradient(1200px 400px at 85% -10%, rgba(255,255,255,.12), transparent), linear-gradient(135deg, var(--blue-950), var(--blue-800)); color: #dbeafe; padding: 46px 0 120px; }
.home-hero h1 { color: #fff; font-size: clamp(1.8rem, 4vw, 2.7rem); margin: 0 0 10px; max-width: 760px; }
.home-hero p { font-size: 1.08rem; max-width: 640px; margin: 0 0 22px; }
.quick { margin-top: -88px; position: relative; }
.quick .grid { grid-template-columns: repeat(4, minmax(0,1fr)); }
.tile { background: #fff; border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow-lg); text-decoration: none; color: var(--ink); display: flex; flex-direction: column; gap: 8px; border: 2px solid transparent; transition: border-color .15s, transform .15s; min-height: 150px; }
.tile:hover { border-color: var(--blue-800); transform: translateY(-2px); color: var(--ink); }
.tile .ico { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: var(--blue-50); color: var(--blue-800); font-size: 1.2rem; }
.tile b { font-size: 1.02rem; font-weight: 600; display: block; }
.tile > div > span { display: block; margin-top: 2px; }
.tile span { font-size: .85rem; color: var(--muted); line-height: 1.45; }
.tile.amber { border-color: #fcd34d; background: linear-gradient(180deg, #fffbeb, #fff 60%); }
.tile.amber .ico { background: var(--amber-600); color: #fff; }
.tile.green { border-color: #86efac; background: linear-gradient(180deg, #f0fdf4, #fff 60%); }
.tile.green .ico { background: var(--green-700); color: #fff; }
.tile .count { margin-top: auto; font-size: .8rem; font-weight: 600; color: var(--amber-800); }

/* ---------- 7. Power outages ---------- */
.unplanned-alert { background: var(--red-600); color: #fff; border-radius: var(--radius); padding: 18px 22px; display: flex; gap: 16px; align-items: flex-start; margin-bottom: 24px; box-shadow: 0 8px 24px rgba(220,38,38,.25); }
.unplanned-alert > i { font-size: 1.6rem; margin-top: 2px; }
.unplanned-alert h2 { color: #fff; font-size: 1.15rem; margin: 0 0 4px; }
.unplanned-alert p { margin: 0 0 4px; }
.unplanned-alert .when { font-size: .85rem; opacity: .9; }
.unplanned-alert + .unplanned-alert { margin-top: -12px; }

.outage-help { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 14px; margin-bottom: 28px; }
.outage-help .card { padding: 18px; }
.outage-help .card h3 { font-size: .98rem; }

.outage-tools { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; margin-bottom: 22px; box-shadow: var(--shadow); }
.outage-tools .row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.outage-tools label.lbl { font-size: .78rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; display: block; margin: 0 0 8px; }
.outage-tools .search { flex: 1 1 260px; position: relative; }
.outage-tools input[type="search"], .outage-tools select { width: 100%; padding: 12px 14px; border: 2px solid var(--line); border-radius: 10px; font: inherit; background: #fff; }
.outage-tools input[type="search"]:focus, .outage-tools select:focus { border-color: var(--blue-800); outline: none; }
.outage-tools .district { flex: 0 1 240px; }
.outage-summary { margin: 14px 0 0; font-size: .9rem; color: var(--muted); }
.outage-summary b { color: var(--ink); }

.day-group { margin-bottom: 28px; }
.day-head { display: flex; align-items: baseline; gap: 12px; margin: 0 0 12px; padding-bottom: 8px; border-bottom: 2px solid var(--ink); }
.day-head h2 { font-size: 1.2rem; margin: 0; }
.day-head .rel { font-size: .78rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: #fff; background: var(--ink); padding: 2px 9px; border-radius: 6px; }
.day-head .rel.today { background: var(--amber-600); }
.day-head .n { margin-left: auto; color: var(--muted); font-size: .85rem; }

.outage { display: grid; grid-template-columns: 150px minmax(0,1fr); background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-bottom: 12px; box-shadow: var(--shadow); }
.outage .time { background: var(--amber-50); border-right: 1px solid #fde68a; padding: 16px; display: flex; flex-direction: column; justify-content: center; gap: 2px; text-align: center; }
.outage .time .from, .outage .time .to { font-size: 1.35rem; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; line-height: 1.1; }
.outage .time .sep { font-size: .72rem; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.outage .time .dur { font-size: .75rem; color: var(--amber-800); font-weight: 600; margin-top: 6px; }
.outage .body { padding: 16px 20px; }
.outage .top-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 8px; }
.outage .district-name { font-weight: 600; color: var(--ink); font-size: 1.02rem; margin-right: 4px; }
.outage .areas { margin: 0 0 8px; color: var(--ink); font-size: .95rem; }
.outage .areas mark { background: #fde68a; color: inherit; padding: 0 2px; border-radius: 3px; }
.outage .reason { font-size: .85rem; color: var(--muted); margin: 0; }
.outage .reason i { margin-right: 6px; }
.outage.is-live { border-color: var(--amber-600); box-shadow: 0 0 0 3px var(--amber-100), var(--shadow); }
.outage.is-live .time { background: var(--amber-600); border-color: var(--amber-600); }
.outage.is-live .time .from, .outage.is-live .time .to, .outage.is-live .time .sep, .outage.is-live .time .dur { color: #fff; }
.outage.is-done { opacity: .6; }
.outage.is-done .time { background: #f8fafc; border-color: var(--line); }
.outage.is-cancelled .areas { text-decoration: line-through; }

.empty-state { text-align: center; padding: 40px 20px; background: #fff; border: 1px dashed var(--line-2); border-radius: var(--radius); color: var(--muted); }
.empty-state i { font-size: 2rem; color: var(--green-700); display: block; margin-bottom: 10px; }
.empty-state b { color: var(--ink); display: block; font-size: 1.05rem; }
.sample-note { background: repeating-linear-gradient(45deg, #fef3c7, #fef3c7 10px, #fde68a 10px, #fde68a 20px); color: #78350f; font-weight: 600; text-align: center; padding: 10px; border-radius: 10px; margin-bottom: 18px; font-size: .9rem; }

.home-outages .outage { grid-template-columns: 120px minmax(0,1fr); }
.teaser-day { font-size: .8rem; font-weight: 600; color: var(--muted); margin: 14px 0 6px; display: flex; gap: 8px; align-items: center; }
.teaser-day:first-child, .sample-note + .teaser-day { margin-top: 0; }
.teaser-day .rel { font-size: .68rem; text-transform: uppercase; letter-spacing: .06em; color: #fff; background: var(--ink); padding: 1px 7px; border-radius: 5px; }
.teaser-day .rel.today { background: var(--amber-600); }
.home-outages .outage .time .from, .home-outages .outage .time .to { font-size: 1.1rem; }

/* ---------- 8. RE schemes ---------- */
.chooser { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; margin-bottom: 26px; box-shadow: var(--shadow); }
.chooser h2 { font-size: 1.1rem; margin-bottom: 4px; }
.chooser p { margin: 0 0 14px; color: var(--muted); font-size: .9rem; }
.chooser .opts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.chooser button { border: 2px solid var(--line); background: #fff; border-radius: 12px; padding: 14px 10px; font: 500 .88rem/1.3 var(--font); color: var(--ink); cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
.chooser button i { font-size: 1.35rem; color: var(--green-700); }
.chooser button:hover { border-color: var(--green-700); }
.chooser button[aria-pressed="true"] { border-color: var(--green-700); background: var(--green-50); box-shadow: 0 0 0 3px var(--green-100); }

.scheme { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); margin-bottom: 18px; overflow: hidden; }
.scheme-head { display: flex; gap: 16px; align-items: flex-start; padding: 20px 22px 14px; }
.scheme-head .ico { width: 48px; height: 48px; flex-shrink: 0; border-radius: 12px; background: var(--green-100); color: var(--green-800); display: grid; place-items: center; font-size: 1.25rem; }
.scheme-head h3 { font-size: 1.12rem; margin: 0 0 4px; }
.scheme-head .for { font-size: .88rem; color: var(--muted); margin: 0; }
.scheme-head .badge { margin-left: auto; flex-shrink: 0; }
.scheme-body { padding: 0 22px 18px 86px; }
.scheme-body p { font-size: .94rem; margin: 0 0 12px; max-width: 75ch; }
.scheme-body .facts { background: var(--bg); border-radius: 10px; padding: 12px 16px; }
.scheme-foot { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding: 14px 22px 14px 86px; border-top: 1px solid var(--line); background: #fcfdfd; }
.scheme-foot .docs-inline { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: .86rem; }
.scheme-foot .docs-inline a { text-decoration: none; font-weight: 500; }
.scheme-foot .docs-inline a:hover { text-decoration: underline; }
.scheme-foot .btn { margin-left: auto; padding: 9px 16px; }
.scheme.closed .scheme-head .ico { background: #f1f5f9; color: var(--muted); }
.re-group-title { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 30px 0 12px; font-weight: 600; }

/* ---------- 9. Footer ---------- */
.site-footer { background: var(--blue-950); color: #94a3b8; font-size: .88rem; margin-top: auto; }
.site-footer .cols { display: grid; grid-template-columns: 1.3fr repeat(4, 1fr); gap: 28px; padding: 44px 0 30px; }
.site-footer h3 { color: #fff; font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; margin: 0 0 12px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 7px; }
.site-footer a { color: #cbd5e1; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer .about img { height: 44px; background: #fff; border-radius: 8px; padding: 4px 8px; margin-bottom: 12px; }
.site-footer .about p { margin: 0 0 10px; line-height: 1.55; }
.site-footer .legal { border-top: 1px solid rgba(255,255,255,.1); padding: 16px 0 22px; display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between; font-size: .8rem; }

/* ---------- 10. Responsive & print ---------- */
@media (max-width: 1440px) {
    .mainnav .top { padding: 10px 8px; }
    .mainnav > ul { gap: 0; }
}
@media (max-width: 1100px) {
    .brand span { display: none; }
    .mainnav .top { padding: 10px 9px; font-size: .86rem; }
}
/* menu button instead of the full menu: below 1060px the 9 menu items no longer fit */
@media (max-width: 1060px) {
    #site-header { min-height: 100px; }
    .navtoggle { display: inline-flex; }
    .mainnav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow-lg); max-height: calc(100vh - 80px); overflow-y: auto; }
    .mainnav.open { display: block; }
    .mainnav > ul { flex-direction: column; align-items: stretch; padding: 10px 16px 18px; gap: 0; }
    .mainnav li { border-bottom: 1px solid var(--line); }
    .mainnav .top { width: 100%; justify-content: flex-start; padding: 14px 6px; font-size: 1rem; border-radius: 0; }
    .mainnav .top .chev { margin-left: auto; }
    .mainnav .top.current { box-shadow: none; }
    .dropdown, .dropdown.cols-2 { position: static; box-shadow: none; border: 0; min-width: 0; columns: 1; padding: 0 0 10px 8px; }
}
@media (max-width: 980px) {
    .layout, .layout.side-right { grid-template-columns: minmax(0,1fr); }
    .sidenav { position: static; }
    .layout > .sidenav { order: 2; }
    .quick .grid, .grid-4 { grid-template-columns: repeat(2, minmax(0,1fr)); }
    .grid-3, .outage-help { grid-template-columns: minmax(0,1fr); }
    .site-footer .cols { grid-template-columns: repeat(2, 1fr); }
    .site-footer .about { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
    body { font-size: 15.5px; }
    .wrap { padding: 0 16px; }
    .topbar .links { display: none; }
    .brand img { height: 40px; }
    .masthead .wrap { min-height: 64px; }
    .panel { padding: 20px 18px; }
    .grid-2 { grid-template-columns: minmax(0,1fr); }
    .quick .grid { grid-template-columns: minmax(0,1fr); }
    .tile { min-height: 0; flex-direction: row; align-items: center; flex-wrap: wrap; }
    .tile .ico { flex-shrink: 0; }
    .tile > div:not(.ico) { flex: 1; min-width: 0; }
    .tile .count { flex-basis: 100%; margin-top: 2px; }
    .outage, .home-outages .outage { grid-template-columns: minmax(0,1fr); }
    .outage .time { flex-direction: row; justify-content: flex-start; align-items: baseline; gap: 8px; border-right: 0; border-bottom: 1px solid #fde68a; padding: 12px 16px; text-align: left; flex-wrap: wrap; }
    .outage .time .from, .outage .time .to { font-size: 1.2rem; }
    .outage .time .dur { margin: 0 0 0 auto; }
    .scheme-head { flex-wrap: wrap; }
    .scheme-head .badge { margin-left: 64px; }
    .scheme-body, .scheme-foot { padding-left: 22px; }
    .scheme-foot .btn { margin-left: 0; width: 100%; }
    .facts { grid-template-columns: minmax(0,1fr); gap: 0; }
    .facts dd { margin-bottom: 8px; }
    .news-item { grid-template-columns: 58px 1fr; gap: 12px; }
    .outage-help { gap: 8px; margin-bottom: 20px; }
    .outage-help .card { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 4px 12px; padding: 12px 14px; }
    .outage-help .card .ico { width: 36px; height: 36px; font-size: 1rem; margin: 0; }
    .outage-help .card h3 { flex: 1; margin: 0; font-size: .92rem; }
    .outage-help .card p { display: none; }
    .outage-help div.card { display: none; }
    .outage-help .card .more { margin: 0 0 0 48px; }
    .day-head { flex-wrap: wrap; }
    .day-head .n { display: none; }
    .site-footer .cols { grid-template-columns: minmax(0,1fr); }
    .dropdown.cols-2 { columns: 1; }
}
@media (prefers-reduced-motion: reduce) {
    * { transition: none !important; scroll-behavior: auto !important; }
}
@media print {
    .topbar, .masthead, .temp-banner, .sidenav, .site-footer, .outage-tools, .outage-help, .navtoggle, .btn { display: none !important; }
    #site-header { min-height: 0; }
    .page-hero { background: none; color: #000; padding: 0 0 12px; }
    .page-hero h1, .page-hero p.lead { color: #000; }
    .layout { display: block; }
    .panel, .outage, .card, .scheme { box-shadow: none; break-inside: avoid; }
    body { background: #fff; }
}

/* ---------- 11. Live lists (outages detail, news, tenders) ---------- */
.outage .district-sub { font-size: .8rem; color: var(--muted); font-weight: 500; margin-right: 2px; }
.outage .district-sub::before { content: "\2022"; margin-right: 6px; color: var(--faint); }
.loading { color: var(--muted); font-size: .9rem; margin: 0; }
.muted { color: var(--muted); }
.news-item .news-file { margin-top: 6px; font-size: .84rem; }
.news-item .news-file i { color: var(--red-700); }
.news-tools { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-bottom: 18px; }
.news-tools input { flex: 1 1 240px; padding: 11px 14px; border: 2px solid var(--line); border-radius: 10px; font: inherit; }
.news-tools input:focus { border-color: var(--blue-800); outline: none; }

.tender { background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--blue-800); border-radius: var(--radius); padding: 18px 22px; margin-bottom: 14px; box-shadow: var(--shadow); }
.tender.is-closed { border-left-color: var(--line-2); opacity: .75; }
.tender-head { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.tender .ref { font-family: ui-monospace, Consolas, monospace; font-size: .82rem; font-weight: 600; color: var(--blue-800); background: var(--blue-50); padding: 2px 8px; border-radius: 6px; }
.tender h3 { font-size: 1.02rem; margin: 0 0 8px; text-transform: none; }
.tender .closing, .tender .remarks { margin: 0 0 6px; font-size: .88rem; color: var(--text); }
.tender .closing i, .tender .remarks i { color: var(--muted); width: 16px; }
.tender .remarks { color: var(--amber-800); }
.tender-docs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.tender-docs a { display: inline-flex; align-items: center; gap: 7px; font-size: .84rem; font-weight: 500; text-decoration: none; border: 1.5px solid var(--line-2); border-radius: 8px; padding: 6px 12px; color: var(--ink); }
.tender-docs a:hover { border-color: var(--blue-800); color: var(--blue-800); }
.tender-docs a i.fa-file-pdf { color: var(--red-700); }
.closed-tenders { margin-top: 26px; }
.closed-tenders summary { cursor: pointer; font-weight: 600; color: var(--muted); margin-bottom: 12px; }

/* ---------- 12. Content pages ---------- */
.big-number { font-size: 1.6rem; font-weight: 700; color: var(--ink); margin: 4px 0 6px !important; }
.big-number a { color: inherit; text-decoration: none; }
ul.ticks { list-style: none; padding: 0; margin: 0; font-size: .92rem; }
ul.ticks li { padding: 5px 0 5px 26px; position: relative; }
ul.ticks li::before { content: "\f00c"; font-family: "Font Awesome 6 Free"; font-weight: 900; position: absolute; left: 0; color: var(--green-700); }
.values { display: flex; flex-wrap: wrap; gap: 10px; }
.values span { background: var(--blue-50); color: var(--blue-900); border: 1px solid var(--blue-100); border-radius: 999px; padding: 8px 16px; font-weight: 500; font-size: .92rem; }
.pay-grid .card .prose { font-size: .9rem; }
.pay-grid .card .prose p { margin-bottom: .6em; }
.older-list { columns: 2; column-gap: 28px; margin: 0; padding-left: 1.2em; font-size: .88rem; color: var(--muted); }
.older-list li { margin-bottom: 6px; break-inside: avoid; }
.prose img { display: block; max-width: 100%; height: auto; margin: 1em auto; }
@media (max-width: 640px) { .older-list { columns: 1; } }

.prose th strong, .prose th b, table.data th strong { color: inherit; }
.prose table { min-width: 560px; }
.prose td, .prose th { word-break: normal; overflow-wrap: normal; }


/* ---------- 13. Renewable energy scenery & friendly motion (CEB blues, green and sun-amber only) ---------- */
.home-hero, .page-hero { position: relative; overflow: hidden; }
.home-hero > .wrap, .page-hero > .wrap { position: relative; z-index: 1; }
.scenery { position: absolute; right: 0; bottom: 0; pointer-events: none; z-index: 0; }
.scenery { -webkit-mask-image: linear-gradient(to right, transparent 0, #000 22%, #000 88%, transparent 100%); mask-image: linear-gradient(to right, transparent 0, #000 22%, #000 88%, transparent 100%); }
.scenery.big { width: min(44vw, 540px); height: auto; bottom: 92px; right: max(0px, calc((100vw - var(--wrap)) / 2)); }
.home-hero h1 { max-width: 620px; }
.home-hero p { max-width: 560px; }
.page-hero .scenery { width: min(40vw, 440px); height: auto; opacity: .9; right: max(0px, calc((100vw - var(--wrap)) / 2)); }
.page-hero p.lead { max-width: 640px; }
.sc-tower { fill: rgba(255,255,255,.85); }
.sc-blades path { fill: #fff; }
.sc-hub { fill: #fff; stroke: var(--blue-800); stroke-width: 1.5; }
.sc-blades { animation: sc-spin 6s linear infinite; transform-box: fill-box; transform-origin: center; }
.sc-sun circle { fill: #fbbf24; }
.sc-rays rect { fill: #fcd34d; }
.sc-rays { animation: sc-spin 40s linear infinite; transform-box: fill-box; transform-origin: center; }
.sc-sun { animation: sc-glow 4s ease-in-out infinite; }
.sc-cloud path { fill: rgba(255,255,255,.22); }
.sc-cloud { animation: sc-drift 40s linear infinite; }
.sc-hill { fill: rgba(21,128,61,.35); }
.page-hero.green .sc-hill { fill: rgba(255,255,255,.12); }
.page-hero.amber .sc-hill { fill: rgba(255,255,255,.12); }
.sc-panel { fill: var(--blue-900); stroke: #93c5fd; stroke-width: 1.2; }
.sc-panel-lines { stroke: #60a5fa; stroke-width: 1; fill: none; opacity: .8; }
.sc-panel-leg { stroke: rgba(255,255,255,.7); stroke-width: 2; }
.sc-glint rect { animation: sc-glint 5s ease-in-out infinite; transform-box: fill-box; }
.sc-line { fill: none; stroke: rgba(255,255,255,.25); stroke-width: 2; }
.sc-flow { fill: none; stroke: #fde68a; stroke-width: 3; stroke-linecap: round; stroke-dasharray: 2 26; animation: sc-flow 2.2s linear infinite; filter: drop-shadow(0 0 3px rgba(253,230,138,.9)); }
@keyframes sc-spin { to { transform: rotate(360deg); } }
@keyframes sc-drift { from { transform: translateX(-120px); } to { transform: translateX(620px); } }
@keyframes sc-glow { 0%, 100% { opacity: .95; } 50% { opacity: .75; } }
@keyframes sc-glint { 0%, 55% { transform: translateX(-120%); opacity: 0; } 65% { opacity: 1; } 90%, 100% { transform: translateX(120%); opacity: 0; } }
@keyframes sc-flow { to { stroke-dashoffset: -28; } }

/* friendly touches */
.tile .ico, .card .ico { transition: transform .25s ease; }
.tile:hover .ico, a.card:hover .ico { transform: translateY(-3px) rotate(-6deg); }
.tile.green .ico i { animation: sc-leaf 3.5s ease-in-out infinite; }
.tile.amber .ico i { animation: sc-pulse 2.4s ease-in-out infinite; }
.topbar .hotline i { color: #fde68a; animation: sc-pulse 2.4s ease-in-out infinite; }
.mainnav .top.hl-re::before { animation: sc-breathe 2.8s ease-in-out infinite; }
@keyframes sc-leaf { 0%, 100% { transform: rotate(0); } 50% { transform: rotate(-8deg) scale(1.06); } }
@keyframes sc-pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.15); } }
@keyframes sc-breathe { 0%, 100% { box-shadow: 0 0 0 3px var(--green-100); } 50% { box-shadow: 0 0 0 6px rgba(220,252,231,.6); } }
.site-footer { position: relative; }
.site-footer::before { content: ""; display: block; height: 4px; background: linear-gradient(90deg, var(--blue-800), var(--green-700), #fbbf24, var(--green-700), var(--blue-800)); background-size: 300% 100%; animation: sc-band 12s linear infinite; }
@keyframes sc-band { to { background-position: 300% 0; } }

@media (max-width: 980px) {
    .scenery.big { width: 92vw; bottom: 64px; right: -6vw; opacity: .35; }
    .page-hero .scenery { width: 70vw; opacity: .45; }
}
@media (prefers-reduced-motion: reduce) {
    .sc-blades, .sc-rays, .sc-sun, .sc-cloud, .sc-glint rect, .sc-flow, .tile .ico i, .topbar .hotline i,
    .mainnav .top.hl-re::before, .site-footer::before { animation: none !important; }
}
@media print { .scenery { display: none; } }

/* ---------- 14. Board & Executive Management ---------- */
.leader { display: grid; grid-template-columns: auto 1fr; gap: 28px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 32px; box-shadow: var(--shadow); position: relative; overflow: hidden; }
.leader::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 5px; background: linear-gradient(180deg, var(--blue-800), var(--green-700)); }
.leader-label { display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--green-800); background: var(--green-100); padding: 3px 10px; border-radius: 6px; margin-bottom: 8px; }
.leader h2 { font-size: 1.5rem; margin: 0 0 4px; color: var(--blue-900); }
.leader-role { margin: 0 0 8px; color: var(--blue-800); font-weight: 500; }
.avatar, .avatar-lg { border-radius: 50%; overflow: hidden; display: grid; place-items: center; background: var(--blue-50); color: var(--blue-800); font-weight: 600; flex-shrink: 0;
    box-shadow: 0 0 0 4px #fff, 0 0 0 6px var(--blue-100), 0 6px 16px rgba(0, 40, 94, .15); }
.avatar { width: 96px; height: 96px; font-size: 1.5rem; margin: 6px auto 16px; }
.avatar-lg { width: 128px; height: 128px; font-size: 2rem; margin: 6px; }
.avatar img, .avatar-lg img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }

.people-group { margin-top: 34px; }
.group-title { display: flex; align-items: center; gap: 10px; font-size: 1.05rem; color: var(--ink); margin: 0 0 16px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.group-title i { color: var(--blue-800); }
.group-title span { margin-left: auto; font-size: .78rem; font-weight: 600; color: var(--muted); background: var(--bg); border: 1px solid var(--line); border-radius: 999px; padding: 2px 10px; }
.members { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px; }
.member { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 20px 20px; text-align: center; box-shadow: var(--shadow); border-top: 3px solid var(--blue-800); transition: transform .2s ease, box-shadow .2s ease; }
.member:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.member h3 { font-size: 1.02rem; margin: 0 0 4px; color: var(--blue-900); }
.member-role { margin: 0 auto 12px; font-size: .74rem; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--blue-800); line-height: 1.45; max-width: 30ch; }
.quals { list-style: none; margin: 0; padding: 12px 0 0; border-top: 1px dashed var(--line); font-size: .82rem; color: var(--muted); line-height: 1.5; }
.quals li + li { margin-top: 4px; }
.leader .quals { border-top: 0; padding-top: 0; display: flex; flex-wrap: wrap; gap: 6px 8px; }
.leader .quals li { margin: 0; background: var(--bg); border: 1px solid var(--line); border-radius: 999px; padding: 3px 12px; font-size: .82rem; color: var(--text); }
@media (max-width: 640px) {
    .leader { grid-template-columns: 1fr; text-align: center; padding: 24px 18px; gap: 10px; }
    .avatar-lg { margin: 0 auto; }
    .leader .quals { justify-content: center; }
}

/* ---------- 15. Menu hover bridge: covers the 6px gap between a menu title and its submenu ---------- */
.dropdown::before { content: ""; position: absolute; left: 0; right: 0; top: -12px; height: 12px; }

/* ---------- 16. Fade-in on scroll ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }
@media print { .reveal { opacity: 1 !important; transform: none !important; } }

/* ---------- 17. Contact ---------- */
.quick-contacts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.qc { position: relative; display: flex; flex-direction: column; gap: 4px; padding: 20px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); text-decoration: none; color: var(--ink); transition: transform .2s, box-shadow .2s; overflow: hidden; }
a.qc:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); color: var(--ink); }
.qc > i { font-size: 1.3rem; color: var(--blue-800); width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--blue-50); margin-bottom: 6px; }
.qc-label { font-size: .82rem; color: var(--muted); font-weight: 500; }
.qc-value { font-size: 1.7rem; font-weight: 700; color: var(--blue-900); letter-spacing: .02em; line-height: 1.2; }
.qc-value.qc-small { font-size: .98rem; word-break: break-all; }
.qc-action { margin-top: auto; padding-top: 6px; font-size: .8rem; font-weight: 600; color: var(--blue-800); }
.qc-copy { margin-top: auto; align-self: flex-start; border: 1.5px solid var(--line-2); background: #fff; border-radius: 8px; padding: 5px 12px; font: 600 .8rem var(--font); cursor: pointer; color: var(--ink); }
.qc-copy:hover { border-color: var(--blue-800); color: var(--blue-800); }
.qc-amber { background: linear-gradient(160deg, #fffbeb, #fff 70%); border-color: #fcd34d; }
.qc-amber > i { background: var(--amber-600); color: #fff; animation: sc-pulse 2.4s ease-in-out infinite; }
.qc-amber .qc-value { color: var(--amber-800); font-size: 2.2rem; }
.qc-red > i { background: var(--red-100); color: var(--red-700); }
.help-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.help-btn { display: inline-flex; align-items: center; gap: 8px; border: 1.5px solid var(--line-2); background: #fff; border-radius: 999px; padding: 9px 16px; font: 500 .88rem var(--font); color: var(--ink); cursor: pointer; transition: all .15s; }
.help-btn i { color: var(--blue-800); }
.help-btn:hover { border-color: var(--blue-800); }
.help-btn[aria-selected="true"] { background: var(--blue-900); border-color: var(--blue-900); color: #fff; }
.help-btn[aria-selected="true"] i { color: #fde68a; }
.help-panel { background: var(--blue-50); border: 1px solid var(--blue-100); border-radius: 12px; padding: 18px 22px; animation: hp-in .25s ease; }
.help-panel h3 { font-size: 1.05rem; color: var(--blue-900); display: flex; gap: 10px; align-items: center; }
.help-panel p { margin: 0 0 12px; max-width: 75ch; }
.help-links { display: flex; flex-wrap: wrap; gap: 8px; }
.help-links .btn { padding: 8px 14px; font-size: .85rem; background: #fff; }
@keyframes hp-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.of-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 14px; }
.of-hours { font-size: .85rem; font-weight: 600; color: var(--green-800); background: var(--green-100); padding: 5px 12px; border-radius: 999px; }
.of-tools { display: grid; gap: 10px; margin-bottom: 8px; }
.of-tools input { padding: 12px 14px; border: 2px solid var(--line); border-radius: 10px; font: inherit; }
.of-tools input:focus { border-color: var(--blue-800); outline: none; }
.of-tools .chip { padding: 6px 12px; font-size: .8rem; }
.of-count { font-size: .85rem; color: var(--muted); margin: 6px 0 14px; }
.of-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.office { border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; background: #fff; display: flex; flex-direction: column; gap: 8px; transition: border-color .15s, box-shadow .15s; }
.office:hover { border-color: var(--blue-800); box-shadow: var(--shadow); }
.office-main { border-color: #fcd34d; background: linear-gradient(160deg, #fffbeb, #fff 60%); }
.office-top { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.office h3 { margin: 0; font-size: 1.02rem; color: var(--blue-900); }
.office-district { font-size: .72rem; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .05em; white-space: nowrap; }
.office-badge { align-self: flex-start; font-size: .72rem; font-weight: 700; color: var(--amber-800); background: var(--amber-100); padding: 2px 9px; border-radius: 6px; }
.office-addr { margin: 0; font-size: .88rem; display: flex; gap: 8px; }
.office-addr i { color: var(--muted); margin-top: 4px; }
.office-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; }
.office-actions .btn { padding: 7px 12px; font-size: .82rem; }
.office-fax { margin: 0; font-size: .76rem; color: var(--faint); }
.of-note { margin: 16px 0 0; font-size: .85rem; color: var(--muted); }
.contact-bottom .small-link { display: inline-block; margin-top: 4px; font-size: .82rem; font-weight: 600; text-decoration: none; }
.social { display: flex; flex-wrap: wrap; gap: 16px; margin: 16px 0 0; font-size: .88rem; }
.social a { text-decoration: none; font-weight: 500; }
.social .fa-facebook { color: #1877f2; } .social .fa-youtube { color: #dc2626; }
.mail-form { display: grid; gap: 6px; }
.mail-form label { font-size: .8rem; font-weight: 600; color: var(--muted); margin-top: 6px; }
.mail-form input, .mail-form select, .mail-form textarea { padding: 10px 12px; border: 2px solid var(--line); border-radius: 10px; font: inherit; background: #fff; }
.mail-form input:focus, .mail-form select:focus, .mail-form textarea:focus { border-color: var(--blue-800); outline: none; }
.mail-form .btn { margin-top: 10px; justify-self: start; }

/* ---------- 18. About ---------- */
.lead-text { font-size: 1.08rem; line-height: 1.75; margin: 0 !important; max-width: none !important; }
.stat-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.stat { background: linear-gradient(150deg, var(--blue-900), var(--blue-800)); color: #dbeafe; border-radius: var(--radius); padding: 22px; display: flex; flex-direction: column; gap: 4px; box-shadow: var(--shadow); position: relative; overflow: hidden; }
.stat::after { content: ""; position: absolute; right: -30px; bottom: -30px; width: 110px; height: 110px; border-radius: 50%; background: rgba(255,255,255,.06); }
.stat i { font-size: 1.3rem; color: #fde68a; }
.stat b { font-size: 2.3rem; color: #fff; line-height: 1.1; font-variant-numeric: tabular-nums; }
.stat > span { font-size: .85rem; }
.chart-card { display: flex; flex-direction: column; }
.donut-wrap { display: grid; grid-template-columns: 1fr; justify-items: center; gap: 16px; }
.donut-wrap .legend { width: 100%; }
.donut { width: 200px; height: 200px; transform: rotate(-90deg); }
.donut text { transform: rotate(90deg); transform-origin: 100px 100px; }
.donut-track { fill: none; stroke: #f1f5f9; stroke-width: 26; }
.donut-seg { fill: none; stroke-width: 26; cursor: pointer; transition: opacity .2s, stroke-width .2s; animation: donut-in 1.2s ease-out; }
.donut-seg:focus { outline: none; stroke-width: 32; }
.seg-ceb { stroke: var(--blue-800); }
.seg-ipp { stroke: var(--green-700); }
.donut-seg.dim { opacity: .25; }
.donut-big { font-size: 34px; font-weight: 700; fill: var(--blue-900); font-family: var(--font); }
.donut-small { font-size: 11px; fill: var(--muted); font-family: var(--font); }
@keyframes donut-in { from { stroke-dasharray: 0 440; } }
.legend { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.legend li { display: flex; gap: 12px; align-items: flex-start; padding: 10px 12px; border-radius: 10px; border: 1px solid transparent; cursor: default; font-size: .9rem; transition: background .15s, border-color .15s; }
.legend li.on { background: var(--bg); border-color: var(--line); }
.legend small { color: var(--muted); }
.sw { width: 14px; height: 14px; border-radius: 4px; flex-shrink: 0; margin-top: 4px; }
.sw-ceb { background: var(--blue-800); } .sw-ipp { background: var(--green-700); }
.pictogram { display: grid; gap: 16px; margin-bottom: 18px; }
.pg-row { display: grid; grid-template-columns: 100px 1fr; align-items: center; gap: 12px; }
.pg-label { font-size: .85rem; color: var(--muted); }
.pg-label b { display: block; font-size: 1.6rem; color: var(--ink); line-height: 1.1; }
.pg-icons { display: flex; flex-wrap: wrap; gap: 8px; }
.pg-icons i { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 10px; font-size: 1rem; }
.pg-thermal { background: var(--amber-100); color: var(--amber-800); }
.pg-hydro { background: var(--blue-100); color: var(--blue-800); }
.reveal.in .pg-icons i { animation: pg-pop .4s ease both; }
.reveal.in .pg-icons i:nth-child(2) { animation-delay: .06s } .reveal.in .pg-icons i:nth-child(3) { animation-delay: .12s } .reveal.in .pg-icons i:nth-child(4) { animation-delay: .18s }
.reveal.in .pg-icons i:nth-child(5) { animation-delay: .24s } .reveal.in .pg-icons i:nth-child(6) { animation-delay: .3s } .reveal.in .pg-icons i:nth-child(7) { animation-delay: .36s }
.reveal.in .pg-icons i:nth-child(8) { animation-delay: .42s } .reveal.in .pg-icons i:nth-child(9) { animation-delay: .48s } .reveal.in .pg-icons i:nth-child(10) { animation-delay: .54s }
@keyframes pg-pop { from { transform: scale(.3); opacity: 0; } }
.target-box { margin-top: auto; display: flex; gap: 16px; align-items: center; background: var(--green-50); border: 1px solid #bbf7d0; border-radius: 12px; padding: 14px 16px; font-size: .9rem; }
.target-ring { position: relative; width: 72px; height: 72px; flex-shrink: 0; }
.target-ring svg { width: 72px; height: 72px; transform: rotate(-90deg); }
.target-ring b { position: absolute; inset: 0; display: grid; place-items: center; font-size: 1rem; color: var(--green-800); }
.tr-track { fill: none; stroke: #dcfce7; stroke-width: 12; }
.tr-fill { fill: none; stroke: var(--green-700); stroke-width: 12; stroke-linecap: round; stroke-dasharray: 188.5 314.2; }
.reveal.in .tr-fill { animation: tr-in 1.4s ease-out; }
@keyframes tr-in { from { stroke-dasharray: 0 314.2; } }
.chain { list-style: none; margin: 18px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; position: relative; }
.chain::before { content: ""; position: absolute; left: 12%; right: 12%; top: 34px; height: 4px; border-radius: 4px; background: repeating-linear-gradient(90deg, var(--blue-800) 0 14px, transparent 14px 24px); background-size: 24px 4px; animation: chain-flow 1s linear infinite; }
.chain li { position: relative; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.chain-ico { width: 68px; height: 68px; border-radius: 50%; display: grid; place-items: center; background: #fff; border: 3px solid var(--blue-800); color: var(--blue-800); font-size: 1.5rem; margin-bottom: 6px; box-shadow: 0 0 0 6px var(--blue-50); }
.chain li:last-child .chain-ico { border-color: var(--green-700); color: var(--green-700); box-shadow: 0 0 0 6px var(--green-50); }
.chain b { color: var(--blue-900); }
.chain small { color: var(--muted); font-size: .82rem; max-width: 22ch; }
@keyframes chain-flow { to { background-position: 24px 0; } }
.org-chart { display: block; position: relative; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.org-chart img { display: block; width: 100%; }
.org-chart span { position: absolute; right: 12px; bottom: 12px; background: var(--blue-900); color: #fff; font-size: .8rem; font-weight: 600; padding: 6px 12px; border-radius: 8px; }

/* ---------- 19. History ---------- */
.hist-hero { display: flex; align-items: center; gap: 24px; background: linear-gradient(135deg, var(--blue-900), var(--blue-800)); color: #dbeafe; border-radius: var(--radius); padding: 24px 30px; font-size: 1.05rem; box-shadow: var(--shadow); }
.hist-hero b { color: #fff; }
.hh-num { font-size: 3.6rem; font-weight: 700; color: #fde68a; line-height: 1; font-variant-numeric: tabular-nums; }
.htimeline { list-style: none; margin: 0; padding: 0; position: relative; }
.htimeline::before { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 3px; margin-left: -1.5px; background: linear-gradient(var(--blue-800), var(--green-700)); border-radius: 3px; }
.htimeline li { position: relative; width: 50%; padding: 0 44px 26px 0; }
.htimeline li:nth-child(even) { margin-left: 50%; padding: 0 0 26px 44px; }
.ht-dot { position: absolute; top: 4px; right: -22px; width: 44px; height: 44px; border-radius: 50%; background: #fff; border: 3px solid var(--blue-800); color: var(--blue-800); display: grid; place-items: center; z-index: 1; }
.htimeline li:nth-child(even) .ht-dot { right: auto; left: -22px; }
.htimeline li:last-child .ht-dot { border-color: var(--green-700); color: var(--green-700); }
.ht-card { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px 18px; box-shadow: var(--shadow); }
.ht-year { display: inline-block; font-weight: 700; color: #fff; background: var(--blue-800); border-radius: 6px; padding: 1px 10px; font-size: .9rem; margin-bottom: 6px; }
.htimeline li:last-child .ht-year { background: var(--green-700); }
.ht-card h3 { font-size: .98rem; margin: 0 0 4px; }
.ht-card p { margin: 0; font-size: .88rem; color: var(--muted); }
.icon-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.icon-grid div { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; padding: 16px 10px; border-radius: 12px; background: var(--bg); font-weight: 500; font-size: .9rem; }
.icon-grid i { font-size: 1.6rem; color: var(--blue-800); }
.big-ticks li { font-size: 1rem; padding: 8px 0 8px 30px; border-bottom: 1px dashed var(--line); }
.big-ticks li:last-child { border: 0; }
.book-cta { display: flex; align-items: center; gap: 18px; padding: 20px 24px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); text-decoration: none; color: var(--ink); }
.book-cta:hover { border-color: var(--blue-800); color: var(--ink); }
.book-cta > i:first-child { font-size: 2rem; color: var(--red-700); }
.book-cta div { flex: 1; display: flex; flex-direction: column; }
.book-cta span { font-size: .85rem; color: var(--muted); }

/* ---------- 20. Vision / Mission / Values ---------- */
.vision-banner { position: relative; overflow: hidden; border-radius: var(--radius); padding: 34px 36px 34px 120px; background: linear-gradient(135deg, var(--blue-950), var(--blue-800) 60%, var(--green-700)); color: #fff; box-shadow: var(--shadow-lg); }
.vb-ico { position: absolute; left: 32px; top: 50%; transform: translateY(-50%); font-size: 2.2rem; width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.12); color: #fde68a; }
.vb-label { font-size: .75rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #fde68a; }
.vision-banner p { font-size: 1.35rem; line-height: 1.5; margin: 6px 0 0; font-weight: 500; max-width: 46ch; }
.mission-hub { display: grid; grid-template-columns: 220px 1fr; gap: 24px; align-items: center; margin-top: 10px; }
.mh-core { aspect-ratio: 1; border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 10px; padding: 20px;
    background: radial-gradient(circle at 30% 30%, var(--blue-800), var(--blue-950)); color: #fff; box-shadow: 0 0 0 10px var(--blue-50), 0 0 0 11px var(--blue-100); }
.mh-core i { font-size: 2.2rem; color: #fde68a; }
.mh-items { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.mh-items li { display: flex; align-items: center; gap: 14px; padding: 12px 16px; border-radius: 12px; border: 1px solid var(--line); background: #fff; position: relative; }
.mh-items li::before { content: ""; position: absolute; left: -24px; top: 50%; width: 24px; height: 2px; background: var(--blue-100); }
.mh-n { width: 28px; height: 28px; border-radius: 50%; background: var(--blue-800); color: #fff; font-weight: 700; font-size: .85rem; display: grid; place-items: center; flex-shrink: 0; }
.mh-items i { color: var(--green-700); font-size: 1.15rem; width: 22px; text-align: center; }
.value-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.vm-value { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; padding: 20px 12px; border-radius: 14px; background: var(--bg); border: 1px solid var(--line); font-weight: 500; font-size: .9rem; transition: transform .2s, background .2s, color .2s; }
.vm-value i { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: var(--blue-800); font-size: 1.3rem; box-shadow: var(--shadow); transition: transform .3s; }
.vm-value:hover { transform: translateY(-4px); background: var(--blue-900); color: #fff; }
.vm-value:hover i { transform: rotateY(360deg); color: var(--green-700); }

@media (max-width: 980px) {
    .quick-contacts, .stat-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .chain { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 22px; }
    .chain::before { display: none; }
    .mission-hub { grid-template-columns: 1fr; }
    .mh-core { width: 200px; margin: 0 auto; }
    .mh-items li::before { display: none; }
}
@media (max-width: 640px) {
    .quick-contacts, .stat-strip { grid-template-columns: minmax(0, 1fr); }
    .donut-wrap { grid-template-columns: 1fr; justify-items: center; }
    .htimeline::before { left: 22px; }
    .htimeline li, .htimeline li:nth-child(even) { width: auto; margin-left: 0; padding: 0 0 22px 62px; }
    .ht-dot, .htimeline li:nth-child(even) .ht-dot { left: 0; right: auto; }
    .hist-hero { flex-direction: column; text-align: center; gap: 10px; }
    .vision-banner { padding: 90px 22px 26px; }
    .vb-ico { top: 22px; left: 22px; transform: none; }
    .vision-banner p { font-size: 1.15rem; }
}
@media (prefers-reduced-motion: reduce) { .chain::before, .qc-amber > i, .donut-seg, .reveal.in .tr-fill, .reveal.in .pg-icons i { animation: none !important; } }

/* ---------- 21. Top-bar ticker (latest news + open RE schemes): its own full-width line ---------- */
.topbar .wrap { flex-wrap: wrap; row-gap: 0; }
.topbar .hotline { white-space: nowrap; }
.topbar .links { flex-shrink: 0; gap: 16px; }
.topbar .links a { white-space: nowrap; }
.ticker { order: 3; flex: 0 0 100%; min-width: 0; display: flex; align-items: center; gap: 8px; border-top: 1px solid rgba(255,255,255,.12); padding: 6px 0; }
.tk-viewport { flex: 1; min-width: 0; overflow: hidden; display: flex; white-space: nowrap;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 24px, #000 calc(100% - 24px), transparent);
          mask-image: linear-gradient(90deg, transparent, #000 24px, #000 calc(100% - 24px), transparent); }
.tk-track { display: flex; flex-shrink: 0; list-style: none; margin: 0; padding: 0; animation: tk-scroll var(--tk-dur, 60s) linear infinite; }
.tk-track li { padding-right: 40px; }
.tk-track a { display: inline-flex; align-items: center; gap: 8px; color: #e2e8f0; font-weight: 400; }
.tk-track a:hover, .tk-track a:focus-visible { color: #fff; text-decoration: underline; }
.tk-tag { font-size: .66rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; padding: 2px 7px; border-radius: 4px; }
.tk-news .tk-tag { background: #1d4ed8; color: #fff; }
.tk-re .tk-tag { background: #15803d; color: #fff; }
.tk-re .tk-tag::before { content: "\f185"; font-family: "Font Awesome 6 Free"; font-weight: 900; margin-right: 5px; }
.tk-date { color: #fde68a; font-weight: 600; }
.ticker:hover .tk-track, .ticker:focus-within .tk-track, .ticker.paused .tk-track { animation-play-state: paused; }
.tk-pause { flex-shrink: 0; width: 26px; height: 26px; border-radius: 50%; border: 1px solid rgba(255,255,255,.3); background: transparent; color: #fff; cursor: pointer; font-size: .7rem; display: grid; place-items: center; }
.tk-pause:hover, .tk-pause:focus-visible { background: rgba(255,255,255,.15); }
@keyframes tk-scroll { from { transform: translateX(0); } to { transform: translateX(-100%); } }
@media (max-width: 900px) { .topbar .links { display: none; } }
@media (prefers-reduced-motion: reduce) {
  .tk-track { animation: none; }
  .tk-track[aria-hidden="true"], .tk-pause { display: none; }
  .tk-viewport { overflow-x: auto; -webkit-mask-image: none; mask-image: none; }
}
.tk-tender .tk-tag { background: #b45309; color: #fff; }

/* ---------- 22. Publications ---------- */
.pub-tools { display: grid; grid-template-columns: minmax(0,1fr); gap: 14px; position: sticky; top: 8px; z-index: 5; box-shadow: 0 6px 20px rgba(0,40,94,.08); }
.pub-search { display: flex; align-items: center; gap: 10px; border: 1.5px solid var(--line-2); border-radius: 12px; padding: 0 14px; background: #fff; }
.pub-search:focus-within { border-color: var(--blue-800); box-shadow: 0 0 0 3px var(--blue-100); }
.pub-search i { color: var(--blue-800); }
.pub-search input { flex: 1; width: 100%; text-overflow: ellipsis; border: 0; outline: 0; padding: 13px 0; font: 400 1rem var(--font); background: transparent; min-width: 0; }
.pub-tools .chip i { margin-right: 4px; opacity: .8; }
.pub-count { display: inline-grid; place-items: center; min-width: 26px; height: 22px; padding: 0 7px; border-radius: 99px; background: var(--blue-50); color: var(--blue-800); font-size: .75rem; font-weight: 700; margin-left: 8px; vertical-align: middle; }
.pub-group[hidden], .pub[hidden], [data-pub][hidden] { display: none !important; }

/* latest annual report */
.ar-latest { display: grid; grid-template-columns: 170px 1fr; gap: 24px; align-items: center; padding: 18px; border-radius: 16px; background: linear-gradient(135deg, var(--blue-50), #f0fdf4); border: 1px solid var(--blue-100); text-decoration: none; color: inherit; margin: 6px 0 22px; transition: box-shadow .2s, transform .2s; }
.ar-latest:hover { box-shadow: 0 10px 28px rgba(0,40,94,.14); transform: translateY(-2px); }
.ar-latest h3 { margin: 8px 0 6px; color: var(--blue-900); font-size: 1.35rem; }
.ar-latest p { margin: 0 0 14px; color: var(--muted); }
.ar-latest-cover { aspect-ratio: 3 / 4; border-radius: 6px 12px 12px 6px; background: linear-gradient(160deg, #003399 0%, #00285e 60%, #15803d 140%); color: #fff; display: flex; flex-direction: column; justify-content: flex-end; padding: 16px; position: relative; overflow: hidden; box-shadow: 6px 8px 0 rgba(0,40,94,.12), inset 6px 0 0 rgba(255,255,255,.12); }
.ar-latest-cover b { font-size: 1.75rem; line-height: 1; white-space: nowrap; }
.ar-latest-cover span:last-child { font-size: .85rem; opacity: .85; margin-top: 4px; }
.ar-logo { position: absolute; top: 14px; left: 16px; font-weight: 700; font-size: .8rem; letter-spacing: .08em; color: #fde68a; }
.ar-latest-cover::after, .ar-book::after { content: ""; position: absolute; right: -30px; top: -30px; width: 110px; height: 110px; border-radius: 50%; border: 14px solid rgba(253,230,138,.18); }

/* shelf of older reports */
.ar-older { margin: 0 0 12px; font-size: 1rem; color: var(--blue-900); }
.ar-shelf { display: grid; grid-template-columns: repeat(auto-fill, minmax(128px, 1fr)); gap: 16px; }
.ar-book { position: relative; overflow: hidden; aspect-ratio: 3 / 4; border-radius: 4px 10px 10px 4px; padding: 12px 12px 12px 18px; display: flex; flex-direction: column; justify-content: flex-end; text-decoration: none; color: #fff;
  background: linear-gradient(165deg, #1d4ed8, #00285e); box-shadow: 4px 6px 0 rgba(0,40,94,.10); transition: transform .2s, box-shadow .2s; }
.ar-book:nth-child(3n+2) { background: linear-gradient(165deg, #003399, #001a40); }
.ar-book:nth-child(3n) { background: linear-gradient(165deg, #15803d, #00285e); }
.ar-book:hover, .ar-book:focus-visible { transform: translateY(-4px) rotate(-1deg); box-shadow: 8px 12px 18px rgba(0,40,94,.22); color: #fff; }
.ar-spine { position: absolute; left: 0; top: 0; bottom: 0; width: 7px; background: rgba(255,255,255,.18); }
.ar-book .ar-logo { left: 18px; top: 12px; font-size: .68rem; }
.ar-book b { font-size: 1.35rem; line-height: 1.05; }
.ar-kind { font-size: .72rem; opacity: .85; margin-top: 3px; }
.ar-meta { font-size: .7rem; margin-top: 8px; padding-top: 6px; border-top: 1px solid rgba(255,255,255,.2); opacity: .9; }

/* document lists */
.pub-list { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 8px; }
.pub { display: grid; grid-template-columns: 40px 1fr auto; gap: 14px; align-items: center; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: #fff; transition: border-color .15s, background .15s; }
.pub:hover { border-color: var(--blue-100); background: var(--blue-50); }
.pub-ico-unused { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: #fee2e2; color: #b91c1c; font-size: 1.1rem; }
.pub-body a { font-weight: 600; color: var(--blue-900); text-decoration: none; }
.pub-body a:hover { text-decoration: underline; color: var(--blue-800); }
.pub-body a::after { content: ""; position: absolute; inset: 0; }   /* whole row clickable */
.pub { position: relative; }
.pub-body p { margin: 2px 0 0; font-size: .85rem; color: var(--muted); }
.pub-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; font-size: .78rem; color: var(--muted); white-space: nowrap; }
.pub-meta b { color: var(--blue-900); font-size: .9rem; }
.pub-big { background: var(--amber-100); color: var(--amber-800); border-radius: 4px; padding: 0 6px; font-weight: 600; }
@media (max-width: 640px) {
  .ar-latest { grid-template-columns: 92px 1fr; gap: 14px; padding: 14px; align-items: start; }
  .ar-latest-cover { padding: 10px; }
  .ar-latest-cover b { font-size: 1.05rem; }
  .ar-latest-cover span:last-child { font-size: .7rem; }
  .ar-latest-cover .ar-logo { top: 8px; left: 10px; font-size: .62rem; }
  .ar-latest h3 { font-size: 1.1rem; margin-top: 4px; }
  .ar-latest p { font-size: .88rem; margin-bottom: 10px; }
  .ar-latest .btn { font-size: .85rem; padding: 9px 12px; }
  .ar-shelf { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
  .ar-book { padding: 8px 8px 8px 13px; }
  .ar-book b { font-size: 1rem; }
  .ar-book .ar-logo { left: 13px; top: 8px; font-size: .58rem; }
  .ar-kind { font-size: .62rem; }
  .ar-meta { font-size: .62rem; }
  .pub { grid-template-columns: 34px 1fr; }
  .pub-meta { grid-column: 2; flex-direction: row; gap: 10px; align-items: center; }
  .pub-tools { position: static; }
}
@media (prefers-reduced-motion: reduce) { .ar-book, .ar-latest { transition: none; } .ar-book:hover, .ar-latest:hover { transform: none; } }
/* annual reports with their real covers: image behind, readable label overlay at the bottom */
.ar-book, .ar-latest-cover.has-img { background: #0b1f44; }
.ar-cover { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top center; z-index: 0; transition: transform .35s ease; }
.ar-book::before, .ar-latest-cover.has-img::before { content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(0,26,64,0) 45%, rgba(0,26,64,.72) 72%, rgba(0,26,64,.95) 100%); }
.ar-book > :not(.ar-cover), .ar-latest-cover.has-img > :not(.ar-cover) { position: relative; z-index: 2; }
.ar-book .ar-spine { position: absolute; z-index: 2; }
.ar-book::after, .ar-latest-cover.has-img::after { display: none; }
.ar-book b, .ar-latest-cover.has-img b { text-shadow: 0 1px 3px rgba(0,0,0,.5); }
.ar-book:hover .ar-cover, .ar-book:focus-visible .ar-cover, .ar-latest:hover .ar-cover { transform: scale(1.04); }
.ar-book:nth-child(n) { background: #0b1f44; }
@media (prefers-reduced-motion: reduce) { .ar-cover { transition: none; } }
/* compact label band so the cover's own title stays visible */
.ar-book { padding: 0; justify-content: flex-end; }
.ar-book::before { background: linear-gradient(180deg, rgba(0,26,64,0) 66%, rgba(0,26,64,.88) 80%, rgba(0,26,64,.97) 100%); }
.ar-book b { font-size: 1.05rem; padding: 0 10px 0 14px; }
.ar-book .ar-kind { font-size: .66rem; padding: 0 10px 0 14px; margin-top: 1px; }
.ar-book .ar-meta { font-size: .66rem; margin: 5px 0 0; padding: 4px 10px 8px 14px; border-top: 1px solid rgba(255,255,255,.18); }
.ar-latest-cover.has-img::before { background: linear-gradient(180deg, rgba(0,26,64,0) 68%, rgba(0,26,64,.9) 84%, rgba(0,26,64,.97) 100%); }
.ar-latest-cover.has-img b { font-size: 1.3rem; }
.ar-latest-cover.has-img span:last-child { font-size: .72rem; }
@media (max-width: 640px) {
  .ar-book b { font-size: .85rem; padding-left: 11px; }
  .ar-book .ar-kind { display: none; }
  .ar-book .ar-meta { padding-left: 11px; font-size: .58rem; }
  .ar-latest-cover.has-img b { font-size: .95rem; }
}
@media (max-width: 640px) { .ar-latest-cover.has-img span:last-child { display: none; } }

/* ---------- 23. Publication covers (real page 1, or a designed cover for text-only documents) ---------- */
.pub { grid-template-columns: 72px 1fr auto; padding: 10px 14px 10px 10px; }
.pub-cover { width: 72px; aspect-ratio: 5 / 7; border-radius: 3px 7px 7px 3px; overflow: hidden; position: relative; display: block;
  box-shadow: 3px 4px 0 rgba(0,40,94,.10), 0 0 0 1px rgba(0,40,94,.10); background: #fff; transition: transform .2s; }
.pub-cover img { width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block; }
.pub:hover .pub-cover { transform: translateY(-2px) rotate(-1.5deg); }
.pub-cover.made { display: flex; flex-direction: column; justify-content: flex-end; padding: 6px 6px 7px 9px; color: #fff; }
.pub-cover.made::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: rgba(255,255,255,.22); }
.mc-top { position: absolute; top: 5px; left: 9px; font-size: .5rem; font-weight: 700; letter-spacing: .08em; color: #fde68a; }
.mc-ico { position: absolute; top: 22%; left: 50%; transform: translateX(-50%); font-size: 1.35rem; opacity: .9; }
.mc-kind { font-size: .48rem; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; opacity: .85; line-height: 1.2; }
.mc-big { font-size: .95rem; line-height: 1.05; margin-top: 1px; }
.mc-big.small { font-size: .62rem; }
.made-laws { background: linear-gradient(160deg, #003399, #00285e 70%); box-shadow: 3px 4px 0 rgba(0,40,94,.12), inset 0 0 0 3px rgba(253,230,138,.35); }
.made-laws .mc-ico { color: #fde68a; }
.made-notices { background: linear-gradient(180deg, #fff 0 46%, #00285e 46%); color: #00285e; }
.made-notices .mc-ico { color: #003399; top: 16%; }
.made-notices .mc-top { color: #003399; }
.made-notices .mc-kind, .made-notices .mc-big { color: #fff; }
.made-plans { background: linear-gradient(160deg, #15803d, #00285e); }
.made-plans .mc-ico { color: #bbf7d0; }
.made-guides { background: linear-gradient(160deg, #d97706, #92400e); }
.made-guides .mc-ico { color: #fef3c7; }
@media (max-width: 640px) {
  .pub { grid-template-columns: 56px 1fr; }
  .pub-cover { width: 56px; }
}
@media (prefers-reduced-motion: reduce) { .pub-cover { transition: none; } .pub:hover .pub-cover { transform: none; } }

/* ---------- 24. Two helplines in the top bar; "coming soon" badge ---------- */
.topbar .hotline { gap: 18px; flex-wrap: wrap; row-gap: 2px; }
.topbar .hotline > span { display: inline-flex; align-items: center; gap: 8px; }
.topbar .hl-help i { color: #93c5fd; }
.topbar .hl-help strong { color: #fff; }
.badge.soon { font-size: .68rem; vertical-align: middle; margin-left: 6px; }
.alerts-soon { margin-bottom: 18px; }
@media (max-width: 640px) { .topbar .hotline { gap: 2px 14px; font-size: .78rem; } }

/* ---------- 25. Page change: electric current ---------- */
/* Browsers that support cross-page View Transitions (Chrome, Edge): the new page flows in from the
   left like current, while the header stays still. Others simply load as before. */
@view-transition { navigation: auto; }
/* the transition name makes the header its own layer: keep that layer (and its dropdown menus) above the page */
#site-header { view-transition-name: site-header; position: relative; z-index: 100; }
::view-transition-old(root) { animation: vt-out .22s ease-in both; }
::view-transition-new(root) { animation: vt-in .38s cubic-bezier(.2,.8,.2,1) both; }
@keyframes vt-out { to { opacity: .55; filter: saturate(.6); } }
@keyframes vt-in { from { clip-path: inset(0 100% 0 0); filter: brightness(1.15); } to { clip-path: inset(0 0 0 0); filter: none; } }

.current-bar { position: fixed; left: 0; right: 0; top: 0; height: 3px; z-index: 9999; pointer-events: none; opacity: 0; }
.cb-line { position: absolute; left: 0; top: 0; bottom: 0; width: 0;
  background: linear-gradient(90deg, rgba(34,211,238,0), #22d3ee 30%, #fde68a 85%, #fff);
  box-shadow: 0 0 8px #22d3ee, 0 0 16px rgba(253,230,138,.8); border-radius: 0 3px 3px 0; }
.cb-spark { position: absolute; top: -9px; left: 0; width: 20px; height: 20px; margin-left: -10px; display: grid; place-items: center;
  color: #fde68a; font-size: 14px; text-shadow: 0 0 6px #fff, 0 0 12px #facc15, 0 0 20px #22d3ee; }
/* arriving: the current shoots across, then fades */
.current-bar.arrive { animation: cb-fade .85s ease-out forwards; }
.current-bar.arrive .cb-line { animation: cb-run .55s cubic-bezier(.3,.7,.2,1) forwards; }
.current-bar.arrive .cb-spark { animation: cb-spark-run .55s cubic-bezier(.3,.7,.2,1) forwards, cb-flicker .09s steps(2) 6; }
/* leaving: it charges while the next page loads */
.current-bar.charge { opacity: 1; }
.current-bar.charge .cb-line { animation: cb-charge 2.5s cubic-bezier(.1,.7,.2,1) forwards; }
.current-bar.charge .cb-spark { animation: cb-spark-charge 2.5s cubic-bezier(.1,.7,.2,1) forwards, cb-flicker .12s steps(2) infinite; }
@keyframes cb-run { from { width: 0; } to { width: 100%; } }
@keyframes cb-spark-run { from { left: 0; } to { left: 100%; } }
@keyframes cb-charge { from { width: 0; } to { width: 85%; } }
@keyframes cb-spark-charge { from { left: 0; } to { left: 85%; } }
@keyframes cb-fade { 0% { opacity: 1; } 65% { opacity: 1; } 100% { opacity: 0; } }
@keyframes cb-flicker { 0% { opacity: 1; transform: scale(1) rotate(-8deg); } 100% { opacity: .55; transform: scale(1.25) rotate(8deg); } }
@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
  ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
  .current-bar { display: none; }
}
