/* Public web site of the (fictional) municipal utility + chat widget */
body.site{--g:#1f7a4d;--g2:#165c39;--gl:#e8f5ee;--ink:#1b2a22;background:#fff;color:var(--ink);--accent:#1f7a4d}
body.site .btn.primary{background:var(--g);border-color:var(--g)}body.site .btn.primary:hover{background:var(--g2)}
.wrap{max-width:1100px;margin:0 auto;padding:0 20px}.wrap.narrow{max-width:720px}
.topline{background:var(--g2);color:#dff3e7;font-size:.82rem}.topline .wrap{display:flex;gap:22px;padding-top:6px;padding-bottom:6px;flex-wrap:wrap}.topline strong{color:#fff}
.sitehead{background:#fff;border-bottom:1px solid #e1ebe5;position:sticky;top:0;z-index:20}
.sitehead .wrap{display:flex;align-items:center;justify-content:space-between;gap:16px;padding-top:10px;padding-bottom:10px;flex-wrap:wrap}
.logo{display:flex;align-items:center;gap:10px;text-decoration:none;color:var(--ink);line-height:1.15}
.logo span{display:flex;flex-direction:column;font-size:1.25rem}.logo strong{color:var(--g)}.logo small{font-size:.72rem;color:#6b7c72;letter-spacing:.03em;text-transform:uppercase}
.sitenav{display:flex;gap:4px;flex-wrap:wrap}.sitenav a{padding:8px 12px;border-radius:8px;text-decoration:none;color:var(--ink);font-weight:600;font-size:.95rem}
.sitenav a:hover,.sitenav a.active{background:var(--gl);color:var(--g2)}
.hero{background:linear-gradient(135deg,#165c39 0%,#1f7a4d 55%,#3fa06f 100%);color:#fff;padding:54px 0 60px}
.hero .wrap{display:grid;grid-template-columns:1.5fr 1fr;gap:36px;align-items:center}
.kicker{text-transform:uppercase;letter-spacing:.12em;font-size:.8rem;opacity:.85;margin:0 0 8px}
.hero h1{font-size:2.5rem;line-height:1.1;margin:0 0 14px}.lead{font-size:1.12rem;opacity:.95;max-width:560px}
.hero-actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:22px}
.btn.big{padding:13px 22px;font-size:1rem;border-radius:10px;text-decoration:none;display:inline-block}
.btn.light{background:rgba(255,255,255,.14);color:#fff;border-color:rgba(255,255,255,.55)}.btn.light:hover{background:rgba(255,255,255,.26)}
body.site .hero .btn.primary{background:#fff;color:var(--g2);border-color:#fff}body.site .hero .btn.primary:hover{background:#eaf7ef}
.hero-card{background:#fff;color:var(--ink);border-radius:14px;padding:18px 20px;box-shadow:0 12px 34px rgba(0,0,0,.18)}
.hero-card h2{color:var(--g2);font-size:1.05rem}table.hours{width:100%;font-size:.92rem}table.hours td{padding:5px 0;border-bottom:1px solid #edf2ef}table.hours td:last-child{text-align:right;font-weight:600}
.block{padding:46px 0}.block.alt{background:#f3f8f5}
h2.sec{font-size:1.6rem;margin:0 0 20px;color:var(--g2)}.sec-sub{max-width:720px;color:#51655a;margin:-8px 0 20px}
.grid3{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}
.tile,.news{background:#fff;border:1px solid #dfe9e3;border-radius:14px;padding:20px}
.tile h3,.news h3{margin:.3em 0 .4em;color:var(--g2);font-size:1.08rem}.tile p,.news p{margin:.3em 0;color:#3d5046}
.tile .ico{display:inline-grid;place-items:center;width:46px;height:46px;border-radius:12px;background:var(--gl);font-size:1.4rem}
.tile.plain{background:#fff}.big-num{font-size:1.5rem;color:var(--g)}
.tag{display:inline-block;background:var(--gl);color:var(--g2);font-size:.75rem;font-weight:700;padding:2px 10px;border-radius:999px}
.forms{display:grid;gap:10px;margin-bottom:14px}
.formrow{display:flex;align-items:center;gap:16px;background:#fff;border:1px solid #d5e4db;border-radius:12px;padding:14px 18px;text-decoration:none;color:var(--ink);transition:.15s}
.formrow:hover{border-color:var(--g);box-shadow:0 4px 14px rgba(31,122,77,.15);transform:translateY(-1px)}
.formrow .code{font-weight:700;color:#fff;background:var(--g);border-radius:8px;padding:5px 10px;font-size:.85rem;min-width:58px;text-align:center}
.formrow .ftxt{flex:1;display:flex;flex-direction:column}.formrow small{color:#5a6d62;font-size:.88rem}.formrow .go{color:var(--g);font-weight:700;white-space:nowrap}
.sitefoot{background:#14291f;color:#c9dccf;padding:30px 0;font-size:.9rem}.sitefoot .cols{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}.sitefoot strong{color:#fff}.sitefoot .muted{color:#8fa699}
body.site main h1{color:var(--g2)}
/* chat widget */
.fab{position:fixed;right:20px;bottom:20px;z-index:50;background:var(--g);color:#fff;border:0;border-radius:999px;padding:14px 22px;font:inherit;font-weight:700;box-shadow:0 8px 24px rgba(0,0,0,.28);cursor:pointer}
.fab:hover{background:var(--g2)}
.chat-panel{position:fixed;right:20px;bottom:20px;z-index:60;width:410px;max-width:calc(100vw - 24px);height:min(660px,calc(100vh - 40px));background:#fff;border-radius:16px;box-shadow:0 18px 50px rgba(0,0,0,.35);display:flex;flex-direction:column;overflow:hidden;border:1px solid #cfe0d6}
.cp-head{background:var(--g);color:#fff;padding:12px 16px;display:flex;justify-content:space-between;align-items:center}
.cp-head div{display:flex;flex-direction:column;line-height:1.25}.cp-head span{font-size:.8rem;opacity:.85}
.cp-close{background:none;border:0;color:#fff;font-size:1.8rem;line-height:1;cursor:pointer;padding:0 4px}
.cp-body{flex:1;min-height:0;display:flex;flex-direction:column;background:#f6faf7}
.cp-pad{padding:16px 18px;overflow:auto}
.cp-chat{flex:1;min-height:0;display:flex;flex-direction:column;padding:0 12px 10px}
.cp-chat .messages{flex:1;overflow-y:auto;padding:12px 2px}
.cp-chat .composer{position:static;background:transparent;padding:6px 0 0;margin-top:0}
.cp-chat .review{max-height:42%;overflow:auto;margin:6px 0}
.cp-chat .msg{max-width:92%;font-size:.94rem}
.msg.assistant{border-color:#d3e3d9}.msg.user{background:var(--g)}
.msg sup.cite{display:inline-block;background:var(--gl);color:var(--g2);font-weight:700;font-size:.68rem;line-height:1;padding:2px 5px;border-radius:6px;margin-left:2px;cursor:help;vertical-align:super}
.sources{margin-top:8px;padding-top:6px;border-top:1px solid #e3ede7;font-size:.78rem;color:#52665a}
.sources-h{font-weight:700;text-transform:uppercase;letter-spacing:.05em;font-size:.68rem}
.sources ul{list-style:none;margin:3px 0 0;padding:0}.sources li{margin:2px 0}.sources b{display:inline-block;min-width:16px;text-align:center;background:var(--gl);color:var(--g2);border-radius:5px;margin-right:4px}
@media(max-width:820px){.hero .wrap{grid-template-columns:1fr}.grid3{grid-template-columns:1fr}.hero h1{font-size:2rem}.sitefoot .cols{grid-template-columns:1fr}.hide-sm{display:none}}
@media(max-width:560px){.chat-panel{right:0;bottom:0;width:100vw;max-width:none;height:100dvh;border-radius:0}.fab{right:12px;bottom:12px}body.chat-open{overflow:hidden}}
body.site .hero h1{color:#fff}
.cp-head{gap:8px}.cp-head>div{flex:1}.cp-reset{background:rgba(255,255,255,.18);border:1px solid rgba(255,255,255,.5);color:#fff;border-radius:8px;padding:4px 10px;font:inherit;font-size:.8rem;font-weight:600;cursor:pointer}.cp-reset:hover{background:rgba(255,255,255,.3)}

.chat-bubble{position:fixed;right:24px;bottom:84px;z-index:55;max-width:290px;background:#fff;color:var(--ink);border-radius:14px;box-shadow:0 10px 30px rgba(0,0,0,.25);border:1px solid #cfe0d6;animation:bubin .35s ease-out}
.chat-bubble:after{content:"";position:absolute;right:46px;bottom:-9px;width:16px;height:16px;background:#fff;border-right:1px solid #cfe0d6;border-bottom:1px solid #cfe0d6;transform:rotate(45deg)}
.bubble-txt{display:block;width:100%;text-align:left;background:none;border:0;font:inherit;line-height:1.4;padding:14px 38px 14px 16px;cursor:pointer;color:inherit}
.bubble-txt strong{color:var(--g2)}
.bubble-x{position:absolute;top:4px;right:6px;background:none;border:0;font-size:1.3rem;line-height:1;color:#7b8a81;cursor:pointer;padding:2px 6px}
.bubble-x:hover{color:var(--ink)}
@keyframes bubin{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:none}}
@media(max-width:560px){.chat-bubble{right:12px;bottom:72px;max-width:calc(100vw - 40px)}.chat-bubble:after{right:40px}}
