*{box-sizing:border-box}body{margin:0;background:#f4f6f3;color:#202a24;font:15px/1.45 Segoe UI,Arial,sans-serif}header{background:#173c2c;color:white;padding:18px 28px;display:flex;justify-content:space-between;align-items:center}header a{color:#e5f1e9;text-decoration:none;margin-left:18px}main{max-width:1200px;margin:24px auto;padding:0 18px}.hero{background:#fff;border:1px solid #e1e7e1;border-radius:14px;padding:22px;margin-bottom:18px}.stats{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}.stat{background:#fff;border:1px solid #e1e7e1;border-radius:12px;padding:18px}.stat b{font-size:28px;display:block}.panel{background:#fff;border:1px solid #e1e7e1;border-radius:12px;padding:18px;margin:16px 0}.formgrid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.formgrid .wide{grid-column:1/-1}label{display:block;font-size:12px;color:#667269;margin-bottom:4px}input,select,textarea{width:100%;padding:10px;border:1px solid #cbd5cb;border-radius:7px;font:inherit;background:white}button,.btn{background:#246344;color:white;border:0;border-radius:8px;padding:10px 15px;font:inherit;cursor:pointer;text-decoration:none;display:inline-block}table{width:100%;border-collapse:collapse;background:white}th,td{text-align:left;padding:10px;border-bottom:1px solid #e8ece8;vertical-align:top}th{font-size:12px;text-transform:uppercase;color:#667269}.tablewrap{overflow:auto}.muted{color:#6b776e;font-size:13px}.flash{background:#eaf4ed;border:1px solid #c5dfcb;padding:10px;border-radius:8px;margin-bottom:12px}.pill{background:#eef3ee;border-radius:20px;padding:4px 9px;font-size:12px}@media(max-width:760px){.stats,.formgrid{grid-template-columns:1fr}header{display:block}header nav{margin-top:10px}header a{margin:0 12px 0 0}}
.checkline{display:flex;align-items:center;gap:8px;margin:7px 0}.resource-grid{display:flex;gap:18px;flex-wrap:wrap}
.stat-link{display:block;color:inherit;text-decoration:none;transition:border-color .15s,transform .15s}.stat-link:hover{border-color:#8eaa98;transform:translateY(-1px)}.stat-link .muted:last-child{display:block;margin-top:5px}.quote-totals{grid-template-columns:repeat(2,minmax(0,1fr));margin-top:14px}.quote-totals .amount{font-size:25px;color:#246344}.dashboard-grid{display:grid;grid-template-columns:1fr 1fr;gap:0 14px}.dashboard-grid .panel{min-width:0}.panel-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}.panel-heading h2{margin:0}.panel-heading a{font-size:13px;white-space:nowrap}@media(max-width:900px){.dashboard-grid{grid-template-columns:1fr}}@media(max-width:600px){.quote-totals{grid-template-columns:1fr}}

/* OurLand brand system */
:root{--ol-forest:#315b45;--ol-leaf:#5d873d;--ol-earth:#8a6042;--ol-gold:#d6ad4e;--ol-cream:#f7f6ef}
body{background:#f5f6f1;color:#263229}
.site-header{background:var(--ol-forest);min-height:82px;padding:10px 28px;gap:24px}
.brand{display:flex;align-items:center;gap:12px;color:#fff;text-decoration:none;min-width:190px}
.brand img{width:62px;height:62px;object-fit:contain;background:#f7f6ef;border-radius:50%;padding:3px}
.brand span{display:flex;flex-direction:column;line-height:1.15}
.brand strong{font-family:Georgia,serif;font-size:25px;letter-spacing:.4px}
.brand small{font-size:10px;color:#e4d5b7;letter-spacing:.35px;margin-top:5px}
.header-right{display:flex;flex-direction:column;align-items:flex-end;gap:6px}
.user-line{font-size:11px;color:#dce8dc}
.site-header nav{display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:6px}
.site-header nav a{margin:0;padding:6px 9px;border-radius:6px;font-size:13px}
.site-header nav a:hover{background:rgba(255,255,255,.13)}
button,.btn{background:var(--ol-forest)}
button:hover,.btn:hover{background:#244735}
.site-footer{margin-top:40px;padding:22px 24px;background:#edece2;border-top:3px solid var(--ol-earth);display:flex;flex-direction:column;align-items:center;gap:4px;text-align:center;color:#5e6259;font-size:12px}
.site-footer strong{font-family:Georgia,serif;color:var(--ol-forest);font-size:14px}
.site-footer a{color:var(--ol-forest);text-decoration:none;font-weight:600}
.site-footer small{color:#7d806f;margin-top:4px}.site-footer span[lang="th"]{line-height:1.7}
@media(max-width:760px){.site-header{padding:12px 16px}.header-right{align-items:flex-start}.site-header nav{justify-content:flex-start}.brand img{width:52px;height:52px}}

/* Department landing and operating portals */
.department-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.department-card { min-height: 245px; display:flex; flex-direction:column; align-items:flex-start; }
.department-card p { flex:1; }
.dept-icon { width:48px; height:48px; border-radius:14px; display:grid; place-items:center; background:#eaf1e5; color:#416b39; font-size:25px; margin-bottom:10px; }
.event-card { margin: 18px 0; }
.event-card .stats { margin: 14px 0; }
@media (max-width: 850px) { .department-grid { grid-template-columns: 1fr; } }
