/* V9.1 polish: professional government-portal finish. Loaded last, so it only refines. */
:root{--r:14px;--sh-p:0 1px 2px #0f1f4510,0 8px 24px #0f1f4510}
html{scroll-behavior:smooth}
body{-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility}
:focus-visible{outline:3px solid #2f7bdc;outline-offset:2px;border-radius:6px}

/* honeypot: truly invisible (the old rule stretched a full-width box across the page) */
.hp{position:absolute!important;left:-9999px!important;width:1px!important;height:1px!important;opacity:0!important;overflow:hidden!important;pointer-events:none}

/* back bar */
.backbar{display:flex;align-items:center;justify-content:space-between;gap:.6rem;max-width:1200px;margin:0 auto;padding:.7rem 1.2rem 0}
.back-btn,.back-home{display:inline-flex;align-items:center;gap:.45rem;font:600 .9rem var(--f-b,inherit);color:#1d4fa3;background:#fff;border:1px solid #d6dff0;border-radius:999px;padding:.45rem .95rem;cursor:pointer;text-decoration:none;box-shadow:0 1px 2px #0f1f4510;transition:background .15s,transform .15s,box-shadow .15s}
.back-btn:hover,.back-home:hover{background:#eef4ff;transform:translateX(-2px);box-shadow:0 4px 12px #1d4fa322}
.back-home:hover{transform:none}
.back-btn svg,.back-home svg{width:16px;height:16px}
@media print{.backbar{display:none!important}}

/* cards, forms and tables across the portal and content pages */
.box,.portal-task,.portal-stat,.portal-card{border-radius:18px;box-shadow:var(--sh-p)}
a.portal-task{transition:transform .18s,box-shadow .18s,border-color .18s}
a.portal-task:hover{transform:translateY(-3px);border-color:#9fb8de;box-shadow:0 14px 34px #1d4fa31f}
.portal-form input,.portal-form textarea,.portal-form select,.contact-form input,.contact-form textarea{transition:border-color .15s,box-shadow .15s}
.portal-form input:focus,.portal-form textarea:focus,.portal-form select:focus,.contact-form input:focus,.contact-form textarea:focus{border-color:#2f7bdc;box-shadow:0 0 0 4px #2f7bdc22;outline:none}
.portal-table{border-collapse:separate;border-spacing:0;border:1px solid #d9e4f3;border-radius:14px;overflow:hidden;background:#fff}
.portal-table th{background:#eef4ff;color:#1d3a6d;font-size:.78rem;letter-spacing:.06em;text-transform:uppercase}
.portal-table tbody tr:nth-child(even){background:#f8faff}.portal-table tbody tr:hover{background:#eef4ff}
.portal-table td,.portal-table th{padding:.85rem 1rem;text-align:left;border-bottom:1px solid #e6edf8}.portal-table tr:last-child td{border-bottom:0}
.portal-stat strong{font-family:var(--f-d,inherit);letter-spacing:-.02em}
.portal-flash{border-left-width:4px}
.tag{border-radius:999px}
.msg.new{border-left:4px solid #ff7a00}

/* About page */
.about-hero .lead{max-width:760px}
.about-steps{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,220px),1fr));gap:1rem;margin-top:1.6rem}
.about-steps .box{position:relative;padding:1.3rem}.about-steps h3{margin:.7rem 0 .3rem}.about-steps p{margin:0;color:#53628a;font-size:.95rem;line-height:1.55}
.step-n{display:inline-grid;place-items:center;width:34px;height:34px;border-radius:50%;background:linear-gradient(135deg,#2f7bdc,#1d4fa3);color:#fff;font-weight:700}
.about-grid{display:grid;grid-template-columns:1fr 1fr;gap:1.4rem;align-items:start}
.about-grid h2{display:flex;align-items:center;gap:.5rem;margin-top:0}
.about-details{list-style:none;padding:0;margin:.8rem 0 1.2rem;display:grid;gap:.6rem}.about-details li{display:flex;gap:.6rem;align-items:flex-start;color:#33446b}.about-details svg{flex:none;width:18px;height:18px;margin-top:2px;color:#1d4fa3}.about-details a{color:#1d4fa3}
.contact-form{display:grid;gap:.45rem}.contact-form label{font-weight:650;color:#20395c;margin-top:.5rem}
.contact-form input,.contact-form textarea{width:100%;padding:.8rem 1rem;border:1px solid #c9d5e6;border-radius:10px;background:#fff;font:inherit;color:#17345a}
.contact-form .btn{justify-self:start;margin-top:.8rem}
.note.bad{border-left-color:#c2410c;background:#fff3f0;color:#912f25}
@media(max-width:820px){.about-grid{grid-template-columns:1fr}}

/* tidy touch targets on phones */
@media(max-width:640px){.btn{min-height:44px}.backbar{padding:.6rem 1rem 0}}
@media(prefers-reduced-motion:reduce){*{animation-duration:.01ms!important;transition-duration:.01ms!important}html{scroll-behavior:auto}}
.about-grid h2{font-size:1.7rem;color:var(--ink,#0f1f45)}.about-grid h2 svg{width:28px;height:28px;color:#138808}.about-hero{padding-bottom:0}
