:root{
  --ink:#221f2b;--muted:#7f7a8c;--line:#e2e8f0;--panel:#fff;--page:#f4f7fc;
  --blue:#2563eb;--blue-dark:#1d4ed8;--blue-pale:#eff6ff;--navy:#25243b;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;color:var(--ink);background:var(--page);font-family:"DM Sans",sans-serif;font-size:14px;-webkit-font-smoothing:antialiased}
button,input,select{font:inherit}button{cursor:pointer}a{color:var(--blue-dark);text-decoration:none}
a:hover{text-decoration:underline}
.app-shell{min-height:100vh;display:flex}
.sidebar{width:246px;background:#fff;border-right:1px solid var(--line);position:fixed;inset:0 auto 0 0;display:flex;flex-direction:column;z-index:11;padding:30px 18px}
.identity{display:flex;align-items:center;gap:12px;color:var(--navy);padding:0 10px 42px;text-decoration:none}
.identity:hover{text-decoration:none}
.brand-symbol{font:800 27px Manrope,sans-serif;color:#fff;background:linear-gradient(135deg,#60a5fa,#1d4ed8);display:grid;place-items:center;border-radius:14px;width:48px;height:48px;box-shadow:0 9px 20px #2563eb33}
.brand-symbol span{color:#dbeafe}.identity-text{display:flex;flex-direction:column}.identity-text strong{font:800 13px Manrope,sans-serif;letter-spacing:1.1px}.identity-text small{font-size:11px;color:#a19ba9;margin-top:3px}
.sidebar-label{font-size:10px;font-weight:800;color:#aaa4b0;letter-spacing:1.4px;margin:0 12px 15px}
.nav{display:grid;gap:5px}.nav-link{width:100%;border:0;background:transparent;display:flex;align-items:center;text-align:left;gap:13px;border-radius:11px;padding:13px 12px;color:#777487;font-weight:700;font-size:12px}.nav-link:hover{background:#eff6ff}.nav-link.active{color:var(--blue-dark);background:#eff6ff}.nav-icon{font-size:19px;width:24px;text-align:center;font-weight:400}
.sidebar-info{background:linear-gradient(160deg,#eff6ff,#f4f7fc);border:1px solid #bfdbfe;border-radius:15px;margin:auto 3px 24px;padding:18px}.sidebar-info-icon{width:31px;height:31px;background:#dbeafe;color:#0b4fd9;border-radius:10px;display:grid;place-items:center;font-size:20px;margin-bottom:15px}.sidebar-info strong{font-size:12px;line-height:1.7}.sidebar-info p{color:#8b8190;line-height:1.7;font-size:11px;margin:8px 0}.sidebar-info a{font-size:10px;font-weight:800}
.sidebar-footer{padding:0 10px;font-size:9px;letter-spacing:1px;font-weight:800;color:#aaa6af;line-height:1.8}.sidebar-footer span{letter-spacing:0;text-transform:none;font-weight:500}
.main{margin-left:246px;width:calc(100% - 246px);min-width:0}
.topbar{height:76px;border-bottom:1px solid var(--line);background:#fff;display:flex;align-items:center;justify-content:space-between;padding:0 44px}.breadcrumb{color:#aaa4ae;font-size:12px}.breadcrumb span{color:#d1cbd3;margin:0 12px}.breadcrumb strong{color:#575062}.topbar-source{font-size:12px;font-weight:800}.topbar-source span{margin-left:6px}.mobile-menu{display:none}
.content{max-width:1510px;margin:0 auto;padding:38px 44px 20px}.eyebrow,.section-kicker{color:var(--blue-dark);font-weight:800;font-size:10px;letter-spacing:1.65px}.eyebrow{display:flex;gap:8px;align-items:center}.eyebrow-dot{width:7px;height:7px;border-radius:50%;background:var(--blue)}
.hero-heading{display:flex;align-items:center;justify-content:space-between;min-height:235px;overflow:hidden}.hero-heading h1{font:800 clamp(29px,3.2vw,47px)/1.23 Manrope,sans-serif;letter-spacing:-1.5px;margin:13px 0 14px}.hero-heading h1 em{font-style:normal;color:var(--blue)}.hero-heading p{max-width:580px;line-height:1.75;color:#8c8793;font-size:13px;margin:0}
.hero-graphic{width:275px;height:207px;flex-shrink:0;position:relative;display:grid;place-items:center}.hero-ring{width:170px;height:170px;border-radius:50%;border:18px solid #eff6ff;background:linear-gradient(155deg,#dbeafe,#f4f7fc);box-shadow:0 0 0 14px #f4f7fc,0 12px 30px #93c5fd33;display:grid;place-items:center;transform:rotate(-12deg)}.hero-ring span{font:800 92px Manrope,sans-serif;color:#0b4fd9;transform:rotate(12deg)}.hero-spark{position:absolute;background:#93c5fd;border-radius:5px;transform:rotate(45deg)}.spark-one{width:15px;height:15px;top:27px;right:32px}.spark-two{width:8px;height:8px;bottom:29px;left:23px}
.scope-warning{border:1px solid #bfdbfe;background:#eff6ff;border-radius:12px;padding:13px 15px;display:flex;gap:12px;align-items:flex-start;color:#475569;font-size:12px;line-height:1.7;margin-bottom:40px}.scope-warning strong{color:#0a44bd}.scope-symbol{background:#dbeafe;color:#0b4fd9;display:grid;place-items:center;border-radius:50%;font-weight:800;width:22px;height:22px;flex-shrink:0}.scope-warning.quieter{margin:0 0 24px}
.page{display:none}.page.active{display:block}
.section-title-row{display:flex;justify-content:space-between;align-items:center;gap:24px;margin-bottom:19px}.section-title-row h2{font:800 24px Manrope,sans-serif;letter-spacing:-.6px;margin:7px 0 6px}.section-title-row p,.panel-head p{margin:0;color:#928c9a;line-height:1.7;font-size:12px}.outline-btn{background:#fff;color:#686172;border:1px solid var(--line);padding:11px 14px;border-radius:9px;font-weight:800;font-size:11px;white-space:nowrap}.outline-btn:hover{border-color:#93c5fd;color:var(--blue-dark)}
.stats-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin-bottom:22px}.stat{position:relative;overflow:hidden;min-height:151px;padding:22px 20px;border:1px solid var(--line);background:#fff;border-radius:15px;box-shadow:0 4px 20px #27213b05}.stat-tag{font-size:11px;color:#8a8591;font-weight:800}.stat strong{display:block;margin:13px 0 7px;font:800 clamp(21px,2.3vw,30px) Manrope,sans-serif;letter-spacing:-1.2px}.stat small{font-size:10px;color:#aaa3af}.stat-decoration{position:absolute;width:72px;height:72px;border-radius:50%;right:-31px;top:-32px;opacity:.6}.stat-decoration.pink,.stat-decoration.orange,.stat-decoration.blue,.stat-decoration.violet{background:#dbeafe}
.panel{background:var(--panel);border:1px solid var(--line);border-radius:15px;box-shadow:0 3px 18px #27213b05;padding:24px;margin-bottom:28px}.panel-head{display:flex;align-items:center;justify-content:space-between}.panel-head h3,.panel h3{margin:0 0 5px;font:800 14px Manrope,sans-serif}.program-bars{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-top:28px}.program-item{min-width:0;border:1px solid #e7eaef;border-radius:13px;padding:16px 14px}.program-item strong{font:800 23px Manrope,sans-serif;display:block;margin-bottom:5px}.program-item span{font-size:10px;color:#928a96}.program-meter{height:7px;background:#eff6ff;border-radius:9px;margin-top:16px;overflow:hidden}.program-meter div{height:100%;background:linear-gradient(90deg,#93c5fd,#0b4fd9);border-radius:9px}
.table-title{margin-top:42px}.table-panel{padding:0;overflow:hidden}.toolbar{padding:18px;display:flex;gap:10px;border-bottom:1px solid var(--line)}.toolbar input,.toolbar select{height:42px;border:1px solid #e9e4ec;background:#fff;border-radius:9px;outline:none;padding:0 13px;color:#6a6473;font-size:12px}.toolbar input:focus,.toolbar select:focus{border-color:#0b4fd9;box-shadow:0 0 0 3px #e8efff}.toolbar .search-field{flex:1;min-width:0}.toolbar select{max-width:205px;min-width:130px}
.table-scroll{width:100%;overflow:auto}table{border-collapse:collapse;width:100%;min-width:740px}thead{background:#f4f7fc}th{font-size:10px;font-weight:800;text-align:left;letter-spacing:.7px;color:#9891a1;padding:16px 18px;white-space:nowrap}td{border-top:1px solid #e7eaef;padding:18px;font-size:12px;color:#686171;vertical-align:middle}tr:hover td{background:#f4f7fc}.project-name{max-width:400px;font-weight:800;color:#37313f;line-height:1.5}.project-sub{color:#a29baa;font-size:11px;margin-top:5px}.money{font-weight:800;color:#3e3745;white-space:nowrap;font-variant-numeric:tabular-nums}.status-chip{font-size:10px;display:inline-block;padding:6px 9px;border-radius:7px;font-weight:800;white-space:nowrap;background:#f4f7fc;color:#77717c}.status-chip.increased{background:#e9f9f2;color:#268762}.status-chip.decreased{background:#fff1ed;color:#c56c4c}.status-chip.house_only{background:#e8efff;color:#0a44bd}.status-chip.nep_only{background:#edf3ff;color:#5d77ad}.status-chip.held{outline:1px dashed #bd7d8c}.details-btn{background:#e8efff;color:var(--blue-dark);border:0;border-radius:8px;padding:8px 12px;white-space:nowrap;font-weight:800;font-size:11px}.details-btn:hover{background:#dbeafe}
.table-footer{border-top:1px solid var(--line);padding:14px 19px;display:flex;justify-content:space-between;align-items:center;font-size:11px;color:#928b99}.pagination{display:flex;gap:6px}.pagination button{background:#fff;border:1px solid #ede8ef;border-radius:7px;font-size:11px;padding:8px 11px;font-weight:700;color:#766f7c}.pagination button:disabled{opacity:.4;cursor:default}
.fetch-message{color:#837c88;padding:13px 18px;font-size:12px}.fetch-message:empty{display:none}.fetch-message.error{background:#fff2f2;color:#a3424b}.fetch-message.warning{background:#fff8ec;color:#966e31}
.year-chart{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));align-items:end;gap:15px;margin-top:24px;height:260px;padding:12px 8px}.year-item{text-align:center;display:flex;flex-direction:column;align-items:center;justify-content:end;height:100%;min-width:0}.year-value{font-size:10px;color:#797181;font-weight:800;margin-bottom:11px;white-space:nowrap}.year-track{height:190px;width:100%;display:flex;align-items:end;justify-content:center;background:repeating-linear-gradient(to top,transparent 0px,transparent 47px,#e7eaef 48px);border-bottom:1px solid #eee}.year-fill{width:70%;max-width:75px;min-height:2px;background:linear-gradient(180deg,#60a5fa,#0b4fd9);border-radius:7px 7px 0 0}.year-label{font-size:11px;font-weight:800;margin-top:12px;color:#766f7c}
.about-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin-bottom:12px}.about-card{margin:0}.about-number{color:#93c5fd;font:800 28px Manrope;margin-bottom:18px}.about-card p,.notice-panel p,.panel>p{font-size:12px;line-height:1.8;color:#817a89}.about-card a{font-size:12px;font-weight:800}.notice-panel{margin-top:20px}#api-notices{font-size:12px;line-height:1.8;color:#756e7b}#api-notices p{padding:10px 0;border-bottom:1px solid var(--line)}.loading-line{height:26px;width:100%;background:linear-gradient(90deg,#f4f7fc,#e8efff,#f4f7fc);border-radius:9px}
.footer{display:flex;flex-wrap:wrap;gap:10px;justify-content:space-between;border-top:1px solid var(--line);padding:20px 0 10px;color:#aba3b0;font-size:10px;line-height:1.6}
.modal[hidden]{display:none}.modal{position:fixed;inset:0;z-index:30;display:grid;place-items:center;padding:20px}.modal-backdrop{position:absolute;inset:0;background:#1c182dbb}.modal-content{position:relative;background:#fff;border-radius:18px;padding:32px;max-width:750px;width:100%;max-height:90vh;overflow:auto;box-shadow:0 30px 80px #17112166}.modal-content h2{font:800 22px Manrope;line-height:1.4;margin:12px 28px 22px 0}.modal-close{position:absolute;right:20px;top:16px;font-size:26px;color:#756e7c;border:0;background:transparent}.detail-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:12px}.detail-box{border:1px solid var(--line);background:#f4f7fc;padding:14px;border-radius:10px}.detail-box small{display:block;color:#9891a1;font-size:11px;margin-bottom:8px}.detail-box strong{font-size:19px}.detail-note{font-size:12px;line-height:1.8;color:#77717d}.detail-links{display:flex;flex-wrap:wrap;gap:12px}.detail-links a{font-weight:800;font-size:12px}
@media(max-width:1180px){.stats-grid{grid-template-columns:repeat(2,1fr)}.hero-graphic{width:180px}.content{padding:30px}.topbar{padding:0 30px}}
@media(max-width:850px){.sidebar{transform:translateX(-110%);transition:transform .2s;box-shadow:0 0 40px #231b2210}.sidebar.open{transform:translateX(0)}.main{margin:0;width:100%}.mobile-menu{display:block;border:0;background:none;font-size:20px;margin-right:15px}.topbar{justify-content:flex-start}.topbar-source{margin-left:auto}.hero-graphic{display:none}.hero-heading{min-height:215px}}
@media(max-width:620px){.content{padding:24px 17px}.topbar{height:65px;padding:0 17px}.breadcrumb{font-size:10px}.breadcrumb span{margin:0 5px}.topbar-source{font-size:10px}.hero-heading h1{font-size:31px;letter-spacing:-1px}.stats-grid{gap:9px}.stat{padding:15px;min-height:125px}.stat strong{font-size:23px}.program-bars{grid-template-columns:repeat(2,1fr)}.toolbar{flex-wrap:wrap}.toolbar .search-field{flex-basis:100%}.toolbar select{width:calc(50% - 5px);max-width:none;min-width:0}.section-title-row{align-items:flex-start}.section-title-row h2{font-size:21px}.outline-btn{font-size:10px;padding:10px}.about-grid{grid-template-columns:1fr}.panel{padding:18px}.table-panel{padding:0}.year-chart{gap:5px}.year-value{font-size:9px;transform:rotate(-22deg)}.footer{display:block}}

/* City identity and asynchronous data loading */
.brand-symbol{overflow:hidden;background:#fff;border:1px solid #dbeafe}
.city-logo{width:100%;height:100%;object-fit:contain;display:block;padding:2px}
.brand-symbol.logo-fallback{background:linear-gradient(135deg,#60a5fa,#1d4ed8);color:#fff}
.loading-banner{display:flex;align-items:center;gap:12px;background:#fff;border:1px solid #dbeafe;border-radius:12px;padding:13px 16px;margin:4px 0 18px;font-size:12px;color:#1e40af;font-weight:700}
.loading-banner[hidden]{display:none}
.spinner{display:inline-block;width:18px;height:18px;flex-shrink:0;border:3px solid #bfdbfe;border-top-color:#2563eb;border-radius:50%;animation:spin .75s linear infinite}
@keyframes spin{to{transform:rotate(360deg)}}
.skeleton{background:linear-gradient(100deg,#eff6ff 15%,#f4f7fc 40%,#eff6ff 65%);background-size:220% 100%;animation:shimmer 1.3s ease-in-out infinite;border-radius:8px}
@keyframes shimmer{to{background-position-x:-220%}}
.skeleton-card{height:95px;width:100%}
.skeleton-chart{height:175px;width:100%;grid-column:1/-1;align-self:center}
.skeleton-line{height:15px;width:100%;min-width:55px}
.data-metadata{display:flex;justify-content:space-between;flex-wrap:wrap;gap:8px;color:#64748b;font-size:11px;margin:-3px 0 16px}
@media(prefers-reduced-motion:reduce){.spinner,.skeleton{animation:none}}

/* Blue and white identity */
:root{--ink:#172b4d;--muted:#64748b;--line:#dbe7f5;--panel:#fff;--page:#f7fbff;--blue:#2563eb;--blue-dark:#1d4ed8;--blue-pale:#eff6ff;--navy:#17345f}
body{background:#f7fbff}
.loading-banner{background:#eff6ff;border-color:#bfdbfe;color:#1e40af}

/* BetterGov typography and blue-white visual language */
:root{--blue:#0b4fd9;--blue-dark:#0a44bd;--blue-pale:#e8efff;--ink:#11151c;--muted:#5b6373;--line:#e7eaef;--page:#f4f7fc;--navy:#2b3340}
body{font-family:"Inter",Arial,sans-serif;font-size:14px;color:var(--ink);background:var(--page);font-feature-settings:"ss01","cv11","tnum"}
h1,h2,h3,.identity-text strong{font-family:"Figtree","Inter",sans-serif;letter-spacing:-.025em}
.eyebrow,.section-kicker,.sidebar-label,.stat-tag,.data-metadata,.sidebar-footer{font-family:"JetBrains Mono",ui-monospace,monospace;letter-spacing:.06em}
.hero-heading h1{font-weight:800}
.hero-heading h1 em{font-style:normal;color:#0b4fd9}
a{color:#0b4fd9}
a:hover{color:#0a44bd}
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:2px solid #0b4fd9;outline-offset:2px}

/* Final BetterGov palette: no pink or purple accents */
:root{--blue:#0b4fd9;--blue-dark:#0a44bd;--blue-pale:#e8efff;--page:#f4f7fc;--ink:#11151c;--muted:#5b6373;--line:#e7eaef;--navy:#2b3340}
.brand-symbol{box-shadow:0 9px 20px #0b4fd91a}
.sidebar-info{background:#f4f7fc;border-color:#d4d8e0}
.sidebar-info-icon{background:#e8efff;color:#0b4fd9}
.hero-ring{background:linear-gradient(155deg,#e8efff,#fff);box-shadow:0 0 0 14px #f4f7fc,0 12px 30px #0b4fd91a}
.hero-ring span{color:#0b4fd9}.hero-spark{background:#93c5fd}
.scope-warning{background:#f4f7fc;border-color:#d4d8e0;color:#475569}
.scope-warning strong{color:#0a44bd}.scope-symbol{background:#e8efff;color:#0b4fd9}
.program-meter div,.year-fill{background:linear-gradient(90deg,#60a5fa,#0b4fd9)}
.toolbar input:focus,.toolbar select:focus{border-color:#0b4fd9;box-shadow:0 0 0 3px #e8efff}
.status-chip.house_only{background:#e8efff;color:#0a44bd}
.details-btn{background:#e8efff;color:#0b4fd9}.details-btn:hover{background:#dbeafe}

/* Koronadal civic transparency dashboard: blue, white and neutral only */
:root{--ink:#14243c;--muted:#53647a;--line:#dce7f5;--panel:#fff;--page:#f5f9ff;--blue:#1764d8;--blue-dark:#124ba8;--blue-pale:#eaf3ff;--navy:#102d56}
body{background:#f5f9ff;color:var(--ink);font-family:"Inter",Arial,sans-serif}
.sidebar{background:#fff;border-right:1px solid #dce7f5;padding-top:24px}
.identity{padding-bottom:34px}
.identity-text strong{font-family:"Figtree",sans-serif;font-size:14px;letter-spacing:.025em;color:#143b73}
.identity-text small{color:#62748a}
.sidebar-label{color:#61758d}
.nav-link{color:#53647a;font-size:13px;border-radius:9px}
.nav-link.active{background:#eaf3ff;color:#124ba8;box-shadow:inset 3px 0 0 #1764d8}
.nav-link:hover{background:#f0f6ff}
.sidebar-info{background:#f3f8ff;border:1px solid #dce7f5}
.sidebar-info p,.sidebar-footer,.breadcrumb{color:#60738a}
.topbar{border-bottom:1px solid #dce7f5}
.content{max-width:1450px;padding-top:30px}
.hero-heading{background:linear-gradient(120deg,#0d428c,#1764d8);border-radius:20px;padding:38px 42px;min-height:265px;margin:15px 0 24px;box-shadow:0 16px 34px #164b941a}
.hero-heading h1{color:#fff;font-family:"Figtree",sans-serif;font-size:clamp(32px,3.5vw,52px);line-height:1.1;margin-top:0}
.hero-heading h1 em{color:#dbeafe}
.hero-heading p{color:#eaf3ff;max-width:650px;font-size:14px;line-height:1.7}
.hero-actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:23px}
.hero-button{border:1px solid #fff;background:#fff;color:#124ba8;border-radius:9px;padding:12px 18px;font-size:12px;font-weight:800}
.hero-button.secondary{background:transparent;color:#fff;border-color:#9fc5fa}
.hero-button:hover{background:#eaf3ff;color:#124ba8}
.hero-accessibility-note{display:none}
.hero-graphic{width:200px;height:200px}
.hero-ring{transform:none;width:160px;height:160px;border:0;background:#fff;box-shadow:0 0 0 12px #ffffff1c,0 0 0 25px #ffffff12;padding:18px}
.hero-city-logo{width:100%;height:100%;object-fit:contain}
.hero-spark{background:#93c5fd}
.scope-warning{border-color:#dce7f5;background:#fff;color:#52647a;border-left:4px solid #1764d8}
.scope-warning strong{color:#124ba8}
.section-title-row h2{font-family:"Figtree",sans-serif;font-size:25px;color:#102d56}
.section-title-row p,.panel-head p{color:#60738a}
.stat,.panel{border:1px solid #dce7f5;box-shadow:0 5px 20px #164b9408;border-radius:12px}
.stat{border-top:3px solid #1764d8}
.stat strong,.program-item strong{font-family:"Figtree",sans-serif;color:#102d56}
.stat small,.stat-tag,.program-item span{color:#60738a}
.program-item{border-color:#dce7f5}
.program-meter{background:#eaf3ff}
.program-meter div,.year-fill{background:linear-gradient(90deg,#60a5fa,#1764d8)}
.toolbar input,.toolbar select{border-color:#dce7f5;color:#14243c}
.toolbar input:focus,.toolbar select:focus{border-color:#1764d8;box-shadow:0 0 0 3px #eaf3ff}
thead{background:#f3f8ff}
th{color:#53647a}
td{border-color:#e6edf7;color:#42536a}
tr:hover td{background:#f5f9ff}
.project-name,.money{color:#14243c}
.details-btn{background:#eaf3ff;color:#124ba8}
.details-btn:hover{background:#dbeafe}
.status-chip.house_only,.status-chip.nep_only{background:#eaf3ff;color:#124ba8}
.about-number{color:#1764d8}
.loading-line{background:linear-gradient(90deg,#f3f8ff,#eaf3ff,#f3f8ff)}
@media(max-width:850px){.hero-heading{padding:30px}.hero-graphic{display:none}}
@media(max-width:620px){.hero-heading{padding:25px 21px;min-height:0;border-radius:14px}.hero-heading h1{font-size:32px}.hero-heading p{font-size:12px}.hero-button{padding:10px 12px}}

/* Layout repairs and consistent responsive controls */
[hidden]{display:none!important}
.app-shell{align-items:stretch}
.sidebar{overflow-y:auto}
.main{display:block;min-height:100vh}
.content{width:100%;min-width:0}
.hero-heading>div:first-child{flex:1;min-width:0}
.hero-heading h1{overflow-wrap:break-word}
.hero-actions button{font-family:"Inter",Arial,sans-serif}
.sidebar-footer{margin-top:auto}
.nav-link{transition:background-color .15s,color .15s}
.nav-link:focus-visible,.hero-button:focus-visible{outline:3px solid #93c5fd;outline-offset:2px}
.table-scroll{-webkit-overflow-scrolling:touch}
.table-scroll table{min-width:680px}
.stats-grid{align-items:stretch}
.stat{min-width:0}
.stat strong{overflow-wrap:anywhere}
.toolbar{flex-wrap:wrap}
.toolbar input,.toolbar select{max-width:100%}
@media(max-width:850px){
 .sidebar{max-width:88vw}
 .main{margin-left:0;width:100%}
 .content{padding:25px 22px}
 .topbar{padding:0 22px}
 .hero-heading{margin-top:12px}
}
@media(max-width:620px){
 .content{padding:20px 14px}
 .topbar{padding:0 14px}
 .hero-heading{padding:24px 20px}
 .hero-heading h1{font-size:clamp(27px,8vw,36px)}
 .stats-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 .stat{min-height:128px;padding:16px 13px}
 .stat strong{font-size:clamp(18px,5vw,25px)}
 .section-title-row{flex-wrap:wrap}
 .section-title-row .outline-btn{margin-top:4px}
 .toolbar input.search-field{flex:1 0 100%}
 .toolbar select{flex:1 1 140px}
 .panel{padding:17px}
 .table-panel{padding:0}
 .hero-button{flex:1 1 auto}
}

/* Animated city seal loader, consistent with BetterGov's restrained blue-and-white UI */
.loading-banner{display:flex;align-items:center;gap:16px;background:#fff;border:1px solid #dce7f5;border-left:4px solid #1764d8;border-radius:12px;padding:15px 19px;box-shadow:0 6px 20px #164b940d;color:#143b73}
.logo-loader{position:relative;display:grid;place-items:center;width:54px;height:54px;flex:0 0 54px;border-radius:50%;background:#f3f8ff}
.logo-loader:before{content:"";position:absolute;inset:-4px;border-radius:50%;border:3px solid #dbeafe;border-top-color:#1764d8;animation:koronadal-loader-spin 1.05s linear infinite}
.loader-logo{width:43px;height:43px;object-fit:contain;animation:koronadal-loader-pulse 1.6s ease-in-out infinite}
.loader-copy{display:flex;flex-direction:column;gap:5px;min-width:0}
.loader-copy strong{font-family:"Figtree",sans-serif;font-size:13px;font-weight:800;color:#102d56}
.loader-copy #loading-text{font-size:12px;font-weight:500;color:#53647a}
@keyframes koronadal-loader-spin{to{transform:rotate(360deg)}}
@keyframes koronadal-loader-pulse{50%{transform:scale(.9);opacity:.75}}
@media(prefers-reduced-motion:reduce){.logo-loader:before,.loader-logo{animation:none}}
@media(max-width:620px){.loading-banner{gap:12px;padding:13px}.logo-loader{width:44px;height:44px;flex-basis:44px}.loader-logo{width:35px;height:35px}}

/* City leadership cards and BetterGov source attribution */
.bettergov-brand{display:flex;flex-direction:column;gap:8px;padding:15px 12px;margin-top:22px;border-top:1px solid #dce7f5;color:#64748b}
.bettergov-brand span{font-size:9px;letter-spacing:1.3px;font-weight:800}
.bettergov-brand img{display:block;max-width:145px;width:100%;height:auto;object-fit:contain;object-position:left center}
.official-leaders{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin:24px 0}
.official-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin:14px 0 28px}
.official-card{background:#fff;border:1px solid #dce7f5;border-radius:13px;padding:23px 20px;box-shadow:0 5px 20px #164b9408;border-top:3px solid #1764d8;min-width:0}
.official-feature{background:linear-gradient(135deg,#f4f9ff,#fff);padding:30px 25px}
.official-role{font-size:10px;letter-spacing:1.15px;color:#1764d8;font-weight:800}
.official-card h3{font:800 17px/1.35 "Figtree",sans-serif;color:#102d56;margin:12px 0 0;overflow-wrap:break-word}
.official-feature h3{font-size:23px}
.official-card p{color:#60738a;font-size:12px;line-height:1.6;margin:8px 0 0}
.official-group-title{font:800 19px "Figtree",sans-serif;color:#102d56;margin:27px 0 10px}
@media(max-width:1050px){.official-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:620px){.official-leaders,.official-grid{grid-template-columns:1fr}.official-card{padding:19px}.official-feature h3{font-size:21px}}

/* DPWH contractor analytics: accessible CSS bars, no chart library needed */
.contractor-chart-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:17px;margin:20px 0 25px}
.contractor-chart-panel{min-width:0;padding:23px}
.chart-bars{display:flex;flex-direction:column;gap:13px;margin-top:19px;color:#64748b;font-size:12px}
.chart-row{display:grid;grid-template-columns:minmax(85px,1.1fr) minmax(65px,1.5fr) minmax(65px,.6fr);align-items:center;gap:11px}
.chart-row-label{color:#314b6d;font-size:11px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.chart-row-track{height:13px;border-radius:4px;background:#eaf3ff;overflow:hidden}
.chart-row-fill{height:100%;border-radius:4px;background:linear-gradient(90deg,#60a5fa,#1764d8);min-width:2px}
.chart-row-value{font-size:11px;color:#124ba8;font-weight:800;text-align:right;font-variant-numeric:tabular-nums}
@media(max-width:960px){.contractor-chart-grid{grid-template-columns:1fr}}
@media(max-width:620px){.contractor-chart-panel{padding:16px}.chart-row{grid-template-columns:minmax(65px,1fr) minmax(55px,1fr) minmax(50px,.65fr);gap:7px}.chart-row-label,.chart-row-value{font-size:10px}}

/* Contractor drilldown */
.contractor-open{background:transparent;border:0;padding:4px 0;text-align:left;color:#124ba8;font:inherit;font-weight:700;line-height:1.5;cursor:pointer}
.contractor-open:hover{text-decoration:underline;color:#1764d8}
.contractor-open:focus-visible{outline:3px solid #93c5fd;outline-offset:3px;border-radius:3px}
.contractor-detail{margin:20px 0 24px;padding:22px;background:#f4f9ff;border:1px solid #bfdbfe;border-radius:13px;scroll-margin-top:25px}
.contractor-detail-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;margin-bottom:16px}
.contractor-detail-heading h3{font:800 20px "Figtree",sans-serif;color:#102d56;margin:8px 0}
.contractor-detail-heading p{font-size:12px;color:#53647a;margin:0}
.contractor-year-chips{display:flex;flex-wrap:wrap;gap:7px;margin-bottom:16px}
.contractor-year-chip{background:#fff;color:#124ba8;border:1px solid #bfdbfe;border-radius:999px;padding:6px 10px;font-size:11px;font-weight:700}
.contractor-detail .table-scroll{background:#fff;border:1px solid #dce7f5;border-radius:9px}
.contract-year{font-weight:800;color:#124ba8;white-space:nowrap}
@media(max-width:620px){.contractor-detail{padding:14px}.contractor-detail-heading{flex-direction:column}.contractor-detail-heading h3{font-size:18px}}

/* Verified government office imagery */
.official-portrait{display:block;width:104px;height:130px;object-fit:cover;object-position:center top;border-radius:11px;background:#eaf3ff;border:1px solid #dce7f5;margin:0 0 18px}
.office-seal{display:block;width:76px;height:76px;object-fit:contain;background:#fff;border:1px solid #dce7f5;border-radius:12px;padding:7px;margin:0 0 18px}
.official-card:has(.office-seal){border-top-color:#1764d8}

/* Koronadal budget landing: Antipolo-inspired navy dashboard */
body:has(#page-projects.active){background:#06122d}
body:has(#page-projects.active) .main{background:#06122d;color:#e9efff}
body:has(#page-projects.active) .topbar{background:#07142f;border-bottom-color:#1b2b51}
body:has(#page-projects.active) .breadcrumb,body:has(#page-projects.active) .breadcrumb strong{color:#d1ddf7}
body:has(#page-projects.active) .topbar-source{color:#93b9ff}
body:has(#page-projects.active) .section-title-row h2,body:has(#page-projects.active) .section-title-row p{color:#eef4ff}
.budget-hero{position:relative;isolation:isolate;overflow:hidden;min-height:420px;border-radius:25px;margin:0 0 16px;background:linear-gradient(170deg,rgba(119,159,229,.94) 0%,rgba(41,78,146,.85) 37%,rgba(8,23,55,.98) 88%),radial-gradient(ellipse at 70% 40%,#6080b2,#10274d 65%,#07142e);box-shadow:inset 0 1px #ffffff35}
.budget-hero:after{content:"";position:absolute;z-index:-1;inset:25% 0 0;opacity:.25;background:linear-gradient(to top,#05122b 3%,transparent 80%),repeating-linear-gradient(90deg,transparent 0 23px,#10284f 24px 30px,transparent 31px 49px);mask-image:linear-gradient(to top,#000,transparent 90%)}
.budget-hero-content{position:relative;z-index:1;padding:48px 44px 38px;max-width:780px}
.budget-hero-eyebrow{display:inline-block;border:1px solid #ffffff65;background:#ffffff21;border-radius:99px;padding:9px 14px;font:800 10px "JetBrains Mono",monospace;letter-spacing:1.2px;color:#fff}
.budget-hero h1{font:800 clamp(38px,5.1vw,73px)/1.09 "Figtree",sans-serif;letter-spacing:-2.8px;color:#fff;margin:23px 0 19px}
.budget-hero h1 em{color:#8cbaff;font-family:Georgia,serif;font-weight:400;letter-spacing:-2px}
.budget-hero p{font-size:15px;line-height:1.75;color:#e1e9f8;max-width:650px}
.budget-hero-actions{display:flex;flex-wrap:wrap;gap:11px;margin:20px 0 26px}
.budget-hero-actions button{border:1px solid #ffffff65;background:#ffffff22;color:#fff;border-radius:99px;padding:14px 21px;font-weight:800;font-size:13px}
.budget-hero-actions button:first-child{background:#fff;color:#133a88;border-color:#fff}
.budget-hero-actions button:hover{filter:brightness(1.12)}
.budget-hero-source{display:inline-flex;align-items:center;gap:13px;color:#d1dcf1}
.budget-hero-source span{font:800 10px "JetBrains Mono",monospace;letter-spacing:1.3px}
.budget-hero-source img{max-width:132px;max-height:34px;object-fit:contain;background:#fff;border-radius:5px;padding:5px}
.budget-overview-stats{margin:0 0 22px;gap:12px}
.budget-overview-stats .stat{background:#0b1937;border:1px solid #1b3159;color:#eaf1ff;box-shadow:none;border-radius:20px;min-height:175px}
.budget-overview-stats .stat:first-child{background:#1c4dd3;border-color:#1c4dd3}
.budget-overview-stats .stat-tag{font:800 10px "JetBrains Mono",monospace;letter-spacing:1px;color:#a5b9dc}
.budget-overview-stats .stat:first-child .stat-tag{color:#d2e0ff}
.budget-overview-stats .stat strong{font:800 clamp(23px,2.8vw,41px) "Figtree",sans-serif;letter-spacing:-1.5px;color:#f3f6ff}
.budget-overview-stats .stat:nth-child(3) strong{color:#51d5a4}
.budget-overview-stats .stat:nth-child(3) strong.negative{color:#ffb6a6}
.budget-overview-stats .stat small{color:#b1c3e2;font-size:11px;line-height:1.5}
.budget-secondary-metrics{display:flex;flex-wrap:wrap;gap:16px;color:#b6c9e8;font-size:12px;margin:0 0 27px}
.budget-secondary-metrics strong{color:#fff}
body:has(#page-projects.active) #global-scope-warning{background:#0c2244;border-color:#254879;color:#d2e0f8}
body:has(#page-projects.active) #global-scope-warning strong{color:#fff}
.budget-picture-section,.budget-biggest-section{margin:34px 0}
.budget-picture-section h2{font:800 clamp(23px,3vw,35px) "Figtree",sans-serif;margin:8px 0 9px;color:#fff}
.budget-picture-section h2 em{color:#8cbaff;font-family:Georgia,serif;font-weight:400}
.budget-picture-section>p{color:#a9bfdf;font-size:12px;margin:0 0 18px}
.budget-picture-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.budget-picture-card{background:#0d1d3b;border:1px solid #20365c;border-radius:18px;padding:22px;min-width:0}
.budget-picture-card>span{color:#8ea9d6;font:700 10px "JetBrains Mono",monospace;letter-spacing:1px}
.budget-picture-card h3{font:800 18px "Figtree",sans-serif;margin:9px 0 21px;color:#f3f7ff}
.picture-chart{display:grid;gap:14px}
.picture-bar-head{display:flex;justify-content:space-between;gap:10px;font-size:11px;color:#c1d3ef;margin-bottom:7px}
.picture-bar-head span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.picture-bar-head strong{color:#fff;white-space:nowrap}
.picture-bar-track{height:9px;border-radius:9px;background:#20365b;overflow:hidden}
.picture-bar-track div{height:100%;border-radius:9px;background:linear-gradient(90deg,#4c8af5,#8fb8ff)}
.picture-big-number{font:800 46px "Figtree",sans-serif;color:#79b4ff}
.picture-chart>p{color:#b4c8e8;font-size:12px;line-height:1.5;margin:0}
.biggest-projects-list{display:grid;gap:10px}
.biggest-project{display:flex;align-items:center;gap:16px;padding:18px;background:#0d1d3b;border:1px solid #20365c;border-radius:14px;min-width:0}
.biggest-rank{color:#79a9f8;font:800 21px "Figtree",sans-serif}
.biggest-info{flex:1;min-width:0}
.biggest-info h3{color:#fff;font-size:13px;line-height:1.5;margin:0 0 6px}
.biggest-info p{color:#a5b8d7;font-size:11px;margin:0}
.biggest-project>strong{white-space:nowrap;color:#fff;font-size:15px}
body:has(#page-projects.active) #page-projects>.panel{background:#0d1d3b;border-color:#20365c;color:#f4f7ff}
body:has(#page-projects.active) #page-projects .panel-head h3{color:#fff}
body:has(#page-projects.active) #page-projects .panel-head p{color:#b4c8e8}
body:has(#page-projects.active) #page-projects .program-item{background:#102345;border-color:#25406c}
body:has(#page-projects.active) #page-projects .program-item span{color:#b4c8e8}
@media(max-width:1150px){.budget-overview-stats{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:700px){.budget-hero{min-height:0;border-radius:17px}.budget-hero-content{padding:29px 23px}.budget-hero h1{font-size:clamp(35px,9vw,51px);letter-spacing:-1.7px}.budget-hero p{font-size:13px}.budget-overview-stats,.budget-picture-grid{grid-template-columns:1fr}.biggest-project{flex-wrap:wrap}.biggest-info{flex-basis:calc(100% - 60px)}.biggest-project>strong{margin-left:36px}}

/* Unified Koronadal palette: white surfaces, blue highlights, no dark-mode dashboard */
:root{--ink:#123b77;--muted:#5b7497;--line:#d9e7fa;--panel:#fff;--page:#f7fbff;--blue:#2563eb;--blue-dark:#174bb8;--blue-pale:#eff6ff;--navy:#153e83}
body,body:has(#page-projects.active){background:#f7fbff;color:#163a70}
body:has(#page-projects.active) .main{background:#f7fbff;color:#163a70}
body:has(#page-projects.active) .topbar{background:#fff;border-bottom-color:#d9e7fa}
body:has(#page-projects.active) .breadcrumb,body:has(#page-projects.active) .breadcrumb strong{color:#44658e}
body:has(#page-projects.active) .topbar-source{color:#174bb8}
.budget-hero{background:linear-gradient(110deg,rgba(15,70,168,.93),rgba(46,114,218,.82)),radial-gradient(circle at 82% 15%,#e6f1ff,#1c57ad 72%);box-shadow:0 14px 36px #1a59ae18}
.budget-hero:after{opacity:.12;background:linear-gradient(to top,#194b9c,transparent 80%),repeating-linear-gradient(90deg,transparent 0 23px,#fff 24px 30px,transparent 31px 49px)}
.budget-hero h1 em{color:#dcecff}
.budget-hero-source img{background:#fff}
.budget-overview-stats .stat,.budget-overview-stats .stat:first-child{background:#fff;border:1px solid #d9e7fa;color:#153e83;box-shadow:0 5px 18px #1b57a80d}
.budget-overview-stats .stat:first-child{background:#1d5ed1;border-color:#1d5ed1}
.budget-overview-stats .stat-tag{color:#5376a4}
.budget-overview-stats .stat:first-child .stat-tag{color:#e6f0ff}
.budget-overview-stats .stat strong{color:#174bb8}
.budget-overview-stats .stat:first-child strong{color:#fff}
.budget-overview-stats .stat:nth-child(3) strong,.budget-overview-stats .stat:nth-child(3) strong.negative{color:#174bb8}
.budget-overview-stats .stat small{color:#607da3}
.budget-overview-stats .stat:first-child small{color:#e2eeff}
.budget-secondary-metrics{color:#59769e}
.budget-secondary-metrics strong{color:#174bb8}
body:has(#page-projects.active) #global-scope-warning{background:#eff6ff;border-color:#bfdbfe;color:#48698d}
body:has(#page-projects.active) #global-scope-warning strong{color:#174bb8}
body:has(#page-projects.active) .section-title-row h2{color:#153e83}
body:has(#page-projects.active) .section-title-row p{color:#607da3}
.budget-picture-section h2{color:#153e83}
.budget-picture-section h2 em{color:#2563eb}
.budget-picture-section>p{color:#607da3}
.budget-picture-card{background:#fff;border-color:#d9e7fa;box-shadow:0 4px 18px #1b57a80d}
.budget-picture-card>span{color:#5075a6}
.budget-picture-card h3{color:#153e83}
.picture-bar-head{color:#46678d}
.picture-bar-head strong{color:#174bb8}
.picture-bar-track{background:#e9f2ff}
.picture-big-number{color:#1d5ed1}
.picture-chart>p{color:#607da3}
.biggest-project{background:#fff;border-color:#d9e7fa}
.biggest-rank{color:#2563eb}
.biggest-info h3{color:#153e83}
.biggest-info p{color:#607da3}
.biggest-project>strong{color:#174bb8}
body:has(#page-projects.active) #page-projects>.panel{background:#fff;border-color:#d9e7fa;color:#153e83}
body:has(#page-projects.active) #page-projects .panel-head h3{color:#153e83}
body:has(#page-projects.active) #page-projects .panel-head p{color:#607da3}
body:has(#page-projects.active) #page-projects .program-item{background:#f7fbff;border-color:#d9e7fa}
body:has(#page-projects.active) #page-projects .program-item span{color:#607da3}

/* Taller, readable year-by-year GAA appropriations chart */
#gaa-chart.year-chart{height:490px;min-height:490px;gap:16px;padding:24px 16px 18px;align-items:end}
#gaa-chart .year-item{height:100%;justify-content:flex-end}
#gaa-chart .year-track{height:395px;min-height:395px;background:repeating-linear-gradient(to top,transparent 0px,transparent 78px,#dbeafe 79px);border-bottom:2px solid #93c5fd}
#gaa-chart .year-fill{width:78%;max-width:95px;background:linear-gradient(180deg,#60a5fa,#1d4ed8)}
#gaa-chart .year-value{font-size:12px;color:#174bb8;margin-bottom:14px}
#gaa-chart .year-label{font-size:13px;color:#153e83;margin-top:15px}
@media(max-width:700px){#gaa-chart.year-chart{height:390px;min-height:390px;gap:7px;padding:16px 3px}#gaa-chart .year-track{height:300px;min-height:300px}#gaa-chart .year-value{font-size:9px}#gaa-chart .year-label{font-size:11px}#gaa-chart .year-fill{width:86%}}

/* Koronadal night skyline from the repository asset */
.budget-hero{background-image:linear-gradient(100deg,rgba(12,61,149,.93) 0%,rgba(20,84,177,.72) 47%,rgba(18,70,148,.27) 100%),url('header.png');background-size:cover;background-position:center center}
.budget-hero:after{display:none}
/* Chart plot area: extend the actual bars, not just the outer card */
#gaa-chart.year-chart{height:660px;min-height:660px;grid-template-columns:repeat(7,minmax(0,1fr));align-items:end}
#gaa-chart .year-item{height:100%;min-height:0}
#gaa-chart .year-track{height:560px;min-height:560px;flex:0 0 560px;background:repeating-linear-gradient(to top,transparent 0px,transparent 79px,#dbeafe 80px)}
#gaa-chart .year-fill{transition:height .35s ease-out}
@media(max-width:700px){#gaa-chart.year-chart{height:520px;min-height:520px}#gaa-chart .year-track{height:430px;min-height:430px;flex-basis:430px}}

/* Compact budget-history chart: keep the plot readable without an oversized card */
#gaa-chart.year-chart{height:310px!important;min-height:0!important;max-height:310px;gap:12px;padding:12px 10px 8px;overflow:visible}
#gaa-chart .year-item{height:100%;min-height:0;justify-content:flex-end}
#gaa-chart .year-track{height:235px!important;min-height:0!important;flex:0 0 235px!important;background:repeating-linear-gradient(to top,transparent 0px,transparent 46px,#dbeafe 47px)}
#gaa-chart .year-fill{width:78%;max-width:70px;min-height:2px}
#gaa-chart .year-value{font-size:11px;margin-bottom:8px;color:#174bb8}
#gaa-chart .year-label{font-size:12px;margin-top:10px;color:#153e83}
@media(max-width:700px){#gaa-chart.year-chart{height:255px!important;max-height:255px;gap:5px;padding:10px 2px 5px}#gaa-chart .year-track{height:185px!important;flex-basis:185px!important}#gaa-chart .year-value{font-size:9px}#gaa-chart .year-label{font-size:10px}}

/* Final compact GAA chart: seven real-data bars with a short, readable plot */
#gaa-chart.year-chart{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));height:230px!important;min-height:0!important;max-height:230px!important;gap:10px;padding:8px 10px 5px;margin-top:12px;align-items:end}
#gaa-chart .year-item{display:flex;flex-direction:column;align-items:center;justify-content:flex-end;height:100%;min-width:0}
#gaa-chart .year-track{display:flex;align-items:flex-end;justify-content:center;width:100%;height:165px!important;min-height:0!important;flex:0 0 165px!important;background:repeating-linear-gradient(to top,transparent 0px,transparent 40px,#dbeafe 41px);border-bottom:1px solid #93c5fd}
#gaa-chart .year-fill{width:68%;max-width:58px;min-height:0;background:linear-gradient(180deg,#60a5fa,#1d4ed8);border-radius:5px 5px 0 0}
#gaa-chart .year-value{font-size:10px;font-weight:800;line-height:1.2;color:#174bb8;margin-bottom:7px;white-space:nowrap}
#gaa-chart .year-label{font-size:11px;font-weight:800;color:#153e83;margin-top:8px}
@media(max-width:700px){#gaa-chart.year-chart{height:200px!important;max-height:200px!important;gap:4px;padding:6px 1px}#gaa-chart .year-track{height:140px!important;flex-basis:140px!important}#gaa-chart .year-value{font-size:8px}#gaa-chart .year-label{font-size:10px}#gaa-chart .year-fill{width:85%}}

/* Compact historical area chart, with values in a readable legend */
#gaa-chart.gaa-area-chart{display:block!important;height:auto!important;min-height:0!important;max-height:none!important;padding:8px 12px 12px;margin-top:12px}
#gaa-chart.gaa-area-chart svg{display:block;width:100%;height:auto;max-height:230px;overflow:visible}
#gaa-chart .gaa-area-values{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:6px;margin-top:8px;text-align:center}
#gaa-chart .gaa-area-values span{font-size:11px;color:#174bb8;white-space:nowrap}
#gaa-chart .gaa-area-values strong{display:block;color:#153e83;font-size:11px}
@media(max-width:700px){#gaa-chart.gaa-area-chart{height:auto!important;max-height:none!important;padding:6px 2px 10px}#gaa-chart.gaa-area-chart svg{max-height:185px}#gaa-chart .gaa-area-values{gap:2px}#gaa-chart .gaa-area-values span,#gaa-chart .gaa-area-values strong{font-size:9px}}

/* Full-width interactive area chart */
#gaa-chart.gaa-area-chart{width:100%;box-sizing:border-box;padding:10px 4px 16px}
#gaa-chart .gaa-plot{position:relative;width:100%}
#gaa-chart.gaa-area-chart .gaa-plot svg{width:100%;max-height:none;height:auto;display:block}
#gaa-chart .gaa-point{cursor:pointer;outline:none}
#gaa-chart .gaa-dot{transition:r .15s ease,fill .15s ease}
#gaa-chart .gaa-point:hover .gaa-dot,#gaa-chart .gaa-point:focus .gaa-dot,#gaa-chart .gaa-point.selected .gaa-dot{r:8;fill:#1e40af;stroke-width:3}
#gaa-chart .gaa-tooltip{position:absolute;z-index:2;transform:translate(-50%,-125%);background:#1e40af;color:white;padding:8px 12px;border-radius:8px;white-space:nowrap;font-size:12px;font-weight:700;box-shadow:0 6px 18px rgba(30,64,175,.25);pointer-events:none}
#gaa-chart .gaa-tooltip[hidden]{display:none}
#gaa-chart .gaa-area-values{margin-top:4px}
@media(max-width:700px){#gaa-chart.gaa-area-chart{padding:8px 0 12px}#gaa-chart.gaa-area-chart .gaa-plot svg{max-height:none}#gaa-chart .gaa-tooltip{font-size:11px;padding:6px 8px}}

/* Line chart: aligned year and amount under each data point */
#gaa-chart.gaa-line-chart .gaa-area-values{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:4px;margin-top:4px;text-align:center}
#gaa-chart.gaa-line-chart .gaa-area-values span{display:flex;flex-direction:column;gap:4px;align-items:center;min-width:0}
#gaa-chart.gaa-line-chart .gaa-area-values strong{font-size:12px;color:#153e83}
#gaa-chart.gaa-line-chart .gaa-area-values small{font-size:11px;font-weight:700;color:#2563eb;white-space:nowrap}
@media(max-width:700px){#gaa-chart.gaa-line-chart .gaa-area-values strong{font-size:10px}#gaa-chart.gaa-line-chart .gaa-area-values small{font-size:9px}}

/* Enhanced budget comparison charts */
.picture-bar-row{border-radius:9px;padding:7px 9px;transition:background .15s ease;outline-offset:2px}
.picture-bar-row:hover,.picture-bar-row:focus-visible{background:#eff6ff;outline-color:#2563eb}
.picture-bar-row:hover .picture-bar-track>div,.picture-bar-row:focus-visible .picture-bar-track>div{filter:brightness(.83)}
.picture-bar-track>div{transition:width .35s ease,filter .15s ease}
.cookie-consent{position:fixed;bottom:18px;left:calc(246px + 18px);right:18px;z-index:100;background:#fff;border:1px solid #bfdbfe;border-radius:14px;box-shadow:0 12px 45px rgba(15,49,108,.18);padding:17px 20px;display:flex;align-items:center;justify-content:space-between;gap:20px}
.cookie-consent[hidden]{display:none}
.cookie-consent strong{color:#153e83;font-size:15px}
.cookie-consent p{margin:5px 0 0;color:#475569;font-size:12px;line-height:1.5;max-width:680px}
.cookie-actions{display:flex;gap:9px;flex-shrink:0}
.cookie-actions button{border:1px solid #2563eb;border-radius:8px;padding:10px 13px;background:white;color:#1d4ed8;font-weight:700}
.cookie-actions #cookie-accept{background:#1d4ed8;color:#fff}
.cookie-actions button:focus-visible{outline:3px solid #93c5fd;outline-offset:2px}
@media(max-width:850px){.cookie-consent{left:12px;right:12px;bottom:12px;flex-direction:column;align-items:stretch}.cookie-actions{flex-wrap:wrap}.cookie-actions button{flex:1}}
