/* Shared legacy public design. Keep calculation, map and status colors intact.
   National pages using gzc.css have their own component system. */
@media screen {
  html:has(.titlebar):not(:has(.g-header)) {
    --public-outline:#A5B7CD;--public-control-outline:#788DA8;
  }
  html:has(.titlebar):not(:has(.g-header,.sheetcol,#goBtn)):not([data-theme="dark"]) {
    color-scheme:light;
    --bg:#FFFFFF;--paper:#FFFFFF;--surface:#FFFFFF;--field:#F7F7F5;
    --ink:#14253D;--muted:#586474;--line:#C9D3E0;
    --bar:#14253D;--bartext:#FFFFFF;--accent:#8A5A00;
    --ok:#1F6E4E;--bad:#BE2A1B;--warn:#8C5A00;--red:#BE2A1B;
  }
  html:has(.titlebar):not(:has(.g-header,.sheetcol,#goBtn)):not([data-theme="dark"]) .titlebar {
    background:#FFFFFF;color:#14253D;border-bottom:1px solid #C9D3E0;
  }
  html:has(.titlebar):not(:has(.g-header,.sheetcol,#goBtn)):not([data-theme="dark"]) .titlebar :is(.brandnj,.brandst) {
    color:#14253D;text-decoration:underline;text-decoration-color:#C9A64B;text-decoration-thickness:2px;text-underline-offset:5px;
  }
  html:has(.titlebar):not(:has(.g-header,.sheetcol,#goBtn)):not([data-theme="dark"]) :is(h1,.step h2,.sheet h2) {
    letter-spacing:-.025em;line-height:1.2;
  }
  html:has(.titlebar):not(:has(.g-header,.sheetcol,#goBtn)):not([data-theme="dark"]) .btn:not(.ghost):not([aria-disabled="true"]) {
    background:#14253D;border-color:#14253D;color:#FFFFFF;
  }
  html:has(.titlebar):not(:has(.g-header,.sheetcol,#goBtn)):not([data-theme="dark"]) .btn:not(.ghost):not(:disabled):not([aria-disabled="true"]):hover {
    background:#263E5A;border-color:#263E5A;
  }
  html:has(.titlebar):not(:has(.g-header,.sheetcol,#goBtn)):not([data-theme="dark"]) :is(.homeform,.step:has(>h2),.sheet,aside .card,.gate,.reportoffer,.homerefer,.referblock,.townfaq,.project,.mapcard,.towns li,.panel) {
    border-color:#A5B7CD;border-radius:12px;
    box-shadow:0 2px 5px rgba(20,37,61,.045),0 8px 22px rgba(20,37,61,.055);
  }
  html:has(.titlebar):not(:has(.g-header,.sheetcol,#goBtn)):not([data-theme="dark"]) :is(.reportoffer,.homerefer,.referblock,.panel) {
    border-left-color:#C9A64B;
  }
  html:has(.titlebar):not(:has(.g-header,.sheetcol,#goBtn)):not([data-theme="dark"]) :is(input:not([type="checkbox"]):not([type="radio"]),select,textarea,.btn.ghost) {
    border-color:#788DA8;border-radius:8px;
  }
  html:has(.titlebar):not(:has(.g-header,.sheetcol,#goBtn)):not([data-theme="dark"]) .bubble {
    display:grid;place-items:center;flex:none;width:34px;height:34px;
    padding:0;border-radius:50%;line-height:1;letter-spacing:0;text-align:center;
    background:#14253D;color:#FFFFFF;
  }
  html:has(.titlebar):not(:has(.g-header,.sheetcol,#goBtn)):not([data-theme="dark"]) .sitefoot {
    background:#FFFFFF;color:#14253D;border-top:1px solid #C9D3E0;
  }
  html:has(.titlebar):not(:has(.g-header)) .titlebar nav {flex-wrap:wrap;white-space:normal;gap:8px 16px}
  html:has(.titlebar):not(:has(.g-header)) .sitefoot .in {display:grid;grid-template-columns:minmax(0,1fr);justify-items:center;gap:14px;text-align:center}
  html:has(.titlebar):not(:has(.g-header)) .sitefoot .in>div {display:flex;justify-content:center;flex-wrap:wrap;gap:8px 20px}
  html:has(.titlebar):not(:has(.g-header)) .sitefoot .in>div a {margin:0}
  html:has(.titlebar):not(:has(.g-header)) .sitefoot .in .footlogo {margin:0}
  html:has(.titlebar):not(:has(.g-header)) .sitefoot strong.footlogo {color:inherit!important}
  html:has(.titlebar):not(:has(.g-header)) .btn {border-radius:8px}
  html:has(.titlebar):not(:has(.g-header)) :is(.btn,input,select,textarea):focus-visible {outline-offset:3px}
}
@media screen and (prefers-color-scheme:light) {
  html:has(.sheetcol,#goBtn):not([data-theme="dark"]) {
    --bg:#FFFFFF;--paper:#FFFFFF;--surface:#FFFFFF;--field:#F7F7F5;--line:#C9D3E0;
  }
}
@media screen and (prefers-reduced-motion:no-preference) {
  html:has(.titlebar):not(:has(.g-header)) .btn {transition:background-color .18s ease,border-color .18s ease,box-shadow .18s ease}
}

/* Branded pending-state indicator: no blocking overlay and no fake progress. */
#gzc-public-loader{position:fixed;z-index:2147483000;top:max(12px,env(safe-area-inset-top));left:50%;transform:translateX(-50%);max-width:calc(100% - 32px);box-sizing:border-box;padding:12px 22px;background:#fff;border:1px solid #A5B7CD;border-radius:10px;box-shadow:0 4px 16px rgba(20,37,61,.12);color:#14253D;font:700 16px/1.4 system-ui,sans-serif;letter-spacing:-.035em;text-align:center;pointer-events:none}
#gzc-public-loader[hidden]{display:none!important}
.gzc-public-loader-track{display:block;width:124px;max-width:100%;height:3px;margin:8px auto 0;border-radius:3px;background:#D7DFE8;overflow:hidden}
.gzc-public-loader-track::after{content:"";display:block;width:42%;height:100%;border-radius:3px;background:#C9A64B}
@media(prefers-reduced-motion:no-preference){.gzc-public-loader-track::after{animation:gzc-public-sweep 1.35s linear infinite}}
@keyframes gzc-public-sweep{from{transform:translateX(-100%)}to{transform:translateX(239%)}}
@media print{#gzc-public-loader{display:none!important}}
