/* Eben CareHub — complete visual refresh */
:root{--ink:#142b49;--navy:#102b4e;--blue:#21466d;--gold:#e1b32e;--gold-pale:#fff6d9;--paper:#f5f4ef;--white:#fff;--muted:#697787;--line:#e4e7e8;--green:#2c765f;--shadow:0 18px 55px rgba(19,43,70,.08)}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body.carehub-shell{margin:0;background:var(--paper);color:var(--ink);font-family:'DM Sans',sans-serif;font-size:15px;line-height:1.6;min-height:100vh;display:flex;flex-direction:column}
h1,h2,h3,h4,.brand-copy strong{font-family:'Manrope',sans-serif;letter-spacing:-.035em;color:var(--navy)}
a{color:inherit;text-decoration:none}
.site-header{height:98px;padding:0 clamp(20px,6vw,92px);display:flex;align-items:center;justify-content:space-between;background:#fff;border-bottom:1px solid rgba(16,43,78,.08);position:relative;z-index:10}
.brand-lockup{display:flex;align-items:center;gap:12px;min-width:240px}
.brand-mark{display:block;flex:none;width:76px;height:76px;border-radius:50%;overflow:hidden;background:#f6f7f5;border:2px solid #e3e8ec;box-shadow:0 4px 14px #102b4e1a;transition:transform .2s,box-shadow .2s}
.brand-mark:hover{transform:scale(1.04);box-shadow:0 6px 18px #102b4e2b}
.brand-symbol{display:block;width:100%;height:100%;object-fit:cover;border-radius:50%}
.brand-copy{cursor:default}
.brand-copy{display:flex;flex-direction:column;line-height:1.1}
.brand-copy strong{font-size:23px;font-weight:800;letter-spacing:-1.2px}
.brand-copy strong i{font-style:normal;color:#c99a15}
.brand-c{display:inline-block;width:.64em;height:.74em;vertical-align:-.015em;margin-right:.02em;overflow:visible}
.brand-heart{fill:#e0314b}
.brand-copy small{font-size:8px;letter-spacing:1.1px;font-weight:800;color:#304b67;margin-top:5px}
.main-nav{display:flex;align-items:center;gap:clamp(16px,2.4vw,36px);font-size:13px;font-weight:700;color:#43566b}
.main-nav>a:not(.nav-cta):hover{color:#b88708}
.main-nav form{margin:0}
.nav-cta{border:0;background:var(--navy);color:white;padding:12px 20px;border-radius:5px;font:700 13px 'DM Sans';display:inline-flex;gap:12px;align-items:center;cursor:pointer;box-shadow:0 5px 14px #102b4e22}
.nav-cta:hover{background:#21466d}
.nav-toggle{display:none;border:0;background:none;font-size:24px;color:var(--navy)}
.page-frame{width:min(1320px,100%);margin:0 auto;padding:48px clamp(20px,5vw,68px) 78px;flex:1}
.page-frame h1{font-size:clamp(30px,4vw,46px);line-height:1.1;font-weight:800;margin:0 0 12px}
.page-frame h2{font-size:25px;font-weight:800}
.page-frame h3{font-weight:800}
.page-frame p{line-height:1.7}
.page-frame .text-slate-600,.page-frame .text-slate-500{color:var(--muted)!important}
.page-frame .bg-white{background:#fff!important}
.page-frame .rounded-xl,.page-frame .rounded-lg{border-radius:12px!important}
.page-frame .shadow-sm{box-shadow:var(--shadow)!important}
.page-frame .border-slate-200{border-color:var(--line)!important}
.page-frame input,.page-frame select,.page-frame textarea{min-height:46px;border:1px solid #d9e0e4!important;border-radius:7px!important;padding:11px 13px!important;background:#fff;transition:.2s}
.page-frame input:focus,.page-frame select:focus,.page-frame textarea:focus{outline:none!important;border-color:#c99a15!important;box-shadow:0 0 0 3px #e1b32e25!important}
.page-frame button[type=submit],.page-frame a.bg-blue-900,.page-frame button.bg-blue-900,.page-frame button.bg-slate-900{border:0!important;border-radius:6px!important;background:var(--navy)!important;padding:12px 18px!important;font-weight:700;transition:.2s}
.page-frame button[type=submit]:hover,.page-frame a.bg-blue-900:hover{background:#234b73!important;transform:translateY(-1px)}
.page-frame table{border-collapse:separate;border-spacing:0;width:100%}
.page-frame thead th{background:#f2f4f5!important;color:#526276!important;font-size:10px!important;text-transform:uppercase;letter-spacing:.09em;font-weight:800}
.page-frame tbody tr:hover{background:#fcfbf7}
.page-frame td,.page-frame th{padding:15px 16px!important}
.page-frame .bg-blue-100{background:#edf3f8!important;color:#244d73!important}
.page-frame .bg-amber-500{background:var(--gold)!important}
.page-frame .bg-blue-900{background:var(--navy)!important}
.page-frame .text-blue-900{color:var(--navy)!important}
.page-frame .text-3xl{font-size:clamp(30px,4vw,46px);line-height:1.1}
.page-frame .grid{gap:20px}
.site-footer{background:#102b4e;color:#fff;padding:44px clamp(20px,6vw,92px) 20px}
.footer-main{max-width:1180px;margin:auto;display:grid;grid-template-columns:2fr 1fr 1fr 1fr 1fr;gap:40px;padding-bottom:28px}
.footer-brand img{width:min(330px,100%);height:auto;object-fit:contain;background:#fff;border-radius:5px}
.footer-brand .brand-lockup{min-width:0}
.footer-brand .brand-mark{border-color:#ffffff40}
.footer-brand .brand-copy strong{color:#fff}
.footer-brand .brand-copy strong i{color:#e6bc3d}
.footer-brand .brand-copy small{color:#c5d0dc}
.footer-brand p{max-width:390px;color:#c5d0dc;font-size:13px;margin-top:16px}
.footer-main h4{font:800 12px 'Manrope';letter-spacing:.1em;text-transform:uppercase;color:#e7bd46;margin:4px 0 15px}
.footer-main>div:not(:first-child){display:flex;flex-direction:column;gap:10px}
.footer-main a{color:#dbe3ec;font-size:13px}.footer-main a:hover{color:#f0c84d}
.footer-bottom{max-width:1180px;margin:auto;border-top:1px solid #ffffff24;padding-top:17px;display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:12px 28px;color:#aebdcd;font-size:11px;letter-spacing:.04em}
.footer-legal{display:flex;gap:20px}.footer-legal a{color:#dbe3ec}.footer-legal a:hover{color:#f0c84d}
.footer-social{display:flex;gap:10px}
.footer-social a{width:34px;height:34px;border-radius:50%;border:1px solid #ffffff30;display:inline-flex;align-items:center;justify-content:center;color:#dbe3ec;transition:.2s}
.footer-social a:hover{background:#e1b32e;border-color:#e1b32e;color:#102b4e;transform:translateY(-2px)}
@media(max-width:1000px){.footer-main{grid-template-columns:1fr 1fr 1fr;gap:36px}.footer-brand{grid-column:1/-1}}
.modal-backdrop{position:fixed;inset:0;background:#0c203bcc;display:none;align-items:center;justify-content:center;padding:1rem;z-index:50;backdrop-filter:blur(5px)}
.modal-backdrop.open{display:flex}
.modal-backdrop>div{border-radius:15px!important;box-shadow:0 25px 90px #08192b55!important}
.msg-error{color:#b42318}.msg-success{color:#18734e}.msg-info{color:#245b88}
/* Needs board */
.page-frame>h1:first-child{max-width:800px}
.page-frame>h1:first-child+p{max-width:700px;font-size:16px;margin-bottom:28px}
.page-frame .grid>div[class*="border"]{border:1px solid var(--line)!important;box-shadow:var(--shadow)!important;position:relative;overflow:hidden}
.page-frame .grid>div[class*="border"]:before{content:"";height:4px;background:var(--gold);position:absolute;inset:0 0 auto}
.page-frame [data-fulfill]{background:var(--navy)!important;border-radius:5px!important;padding:12px!important}
.page-frame .max-w-md{max-width:510px}
/* Auth pages
   Base (all widths): plain paper background, centred card.
   The navy split background + tagline only appear where there is room for them:
   login >= 1100px, sign-up >= 1280px (its card is wider). */
.page-frame:is(:has(#loginForm),:has(#forgotForm),:has(#resetForm)),.page-frame:has(#registerForm){max-width:100%;width:100%;padding:0;display:grid;place-items:center;background:var(--paper);position:relative}
.page-frame:is(:has(#loginForm),:has(#forgotForm),:has(#resetForm))>div,.page-frame:has(#registerForm)>div{width:min(510px,calc(100% - 32px));margin:52px auto;padding:42px!important;border:0!important;border-radius:15px!important;box-shadow:0 25px 80px #07192c24!important}
.page-frame:is(:has(#loginForm),:has(#forgotForm),:has(#resetForm)) h2,.page-frame:has(#registerForm) h2{font-size:30px;margin-bottom:25px}
.page-frame:is(:has(#loginForm),:has(#forgotForm),:has(#resetForm)) label,.page-frame:has(#registerForm) label{font-weight:700;color:#324b65}
.page-frame:is(:has(#loginForm),:has(#forgotForm),:has(#resetForm)) button[type=submit],.page-frame:has(#registerForm) button[type=submit]{width:100%;margin-top:8px;padding:14px!important}

/* Sign-up: wider, two-column card on larger screens so every field is visible at once */
@media(min-width:700px){
 .page-frame:has(#registerForm)>div{width:min(600px,calc(100% - 48px));max-width:600px!important;padding:36px 40px!important}
 .page-frame:has(#registerForm) h2{font-size:28px;margin-bottom:20px}
 #registerForm{display:grid;grid-template-columns:1fr 1fr;gap:14px 20px}
 #registerForm>*{margin:0!important}
 #registerForm #homeFields:not(.hidden){display:grid;grid-template-columns:1fr 1fr;gap:14px 20px;grid-column:1/-1;padding-top:14px}
 #registerForm #homeFields>p{grid-column:1/-1}
 #registerForm #homeFields>div{margin:0!important}
 #registerForm button[type=submit]{grid-column:1/-1;margin-top:4px}
 .page-frame:has(#registerForm) #errorMsg{margin-top:12px}
}

/* Split navy background + tagline (large screens only) */
@media(min-width:1100px){
 .page-frame:is(:has(#loginForm),:has(#forgotForm),:has(#resetForm)){background:linear-gradient(115deg,#102b4e 0 42%,#f5f4ef 42%)}
 .page-frame:is(:has(#loginForm),:has(#forgotForm),:has(#resetForm))>div{margin:52px 7vw 52px auto}
 .page-frame:is(:has(#loginForm),:has(#forgotForm),:has(#resetForm)):before{content:"Care starts when we connect.";position:absolute;left:max(5vw,calc((100vw - 1180px)/2));top:20%;width:min(30vw,430px);font:800 clamp(30px,3.2vw,50px)/1.1 'Manrope',sans-serif;letter-spacing:-.05em;color:white}
 .page-frame:is(:has(#loginForm),:has(#forgotForm),:has(#resetForm)):after{content:"One platform. Many ways to make a difference.";position:absolute;left:max(5vw,calc((100vw - 1180px)/2));top:calc(20% + 150px);width:min(26vw,360px);color:#c9d5e2;font-size:15px}
}
@media(min-width:1280px){
 .page-frame:has(#registerForm){background:linear-gradient(115deg,#102b4e 0 38%,#f5f4ef 38%)}
 .page-frame:has(#registerForm)>div{margin:44px 6vw 44px auto}
 .page-frame:has(#registerForm):before{content:"Care starts when we connect.";position:absolute;left:max(4vw,calc((100vw - 1260px)/2));top:20%;width:min(27vw,430px);font:800 clamp(30px,3.2vw,50px)/1.1 'Manrope',sans-serif;letter-spacing:-.05em;color:white}
 .page-frame:has(#registerForm):after{content:"One platform. Many ways to make a difference.";position:absolute;left:max(4vw,calc((100vw - 1260px)/2));top:calc(20% + 150px);width:min(23vw,360px);color:#c9d5e2;font-size:15px}
}
@media(max-width:760px){
 .site-header{height:80px;padding:0 18px}.brand-mark{width:56px;height:56px}.brand-copy strong{font-size:19px}.brand-copy small{font-size:7px}
 .nav-toggle{display:block}.main-nav{display:none;position:absolute;top:80px;left:0;right:0;background:white;padding:20px;box-shadow:0 15px 25px #102b4e18;flex-direction:column;align-items:stretch;gap:16px}.nav-open .main-nav{display:flex}
 .page-frame{padding:32px 18px 55px}.footer-main{grid-template-columns:1fr 1fr;gap:28px}.footer-brand{grid-column:1/-1}.footer-bottom{gap:14px;flex-direction:column;align-items:flex-start}
 .page-frame:is(:has(#loginForm),:has(#forgotForm),:has(#resetForm))>div,.page-frame:has(#registerForm)>div{margin:30px auto;padding:28px!important}
}

.home-hero{display:grid;grid-template-columns:1.1fr .9fr;min-height:440px;background:#102b4e;border-radius:18px;overflow:hidden;margin-bottom:58px;box-shadow:0 22px 60px #102b4e22}
.hero-copy{padding:clamp(34px,5vw,70px);align-self:center;color:white;position:relative;z-index:1}
.eyebrow{display:block;color:#cda52b;font-size:10px;font-weight:800;letter-spacing:.18em;margin-bottom:17px}
.home-hero h1{color:#fff!important;font-size:clamp(38px,5vw,62px)!important;line-height:1.02!important;max-width:620px;margin:0 0 22px!important;letter-spacing:-.06em!important}
.home-hero h1 em{font-style:normal;color:#e6bc3d}
.hero-copy>p{color:#c8d4e0;max-width:490px;font-size:16px;margin-bottom:28px}
.hero-actions{display:flex;align-items:center;gap:22px;flex-wrap:wrap}
.hero-primary{background:#e1b32e;color:#172f4d;padding:14px 20px;border-radius:5px;font-size:13px;font-weight:800}
.hero-primary span{margin-left:18px}.hero-secondary{font-size:13px;font-weight:700;color:white;border-bottom:1px solid #8295a8;padding:8px 0}
.hero-proof{font-size:11px;color:#b8c7d6;margin-top:35px}.hero-proof span{color:#e1b32e;font-size:18px;margin-right:7px}
.hero-art{position:relative;display:grid;place-items:center;min-height:360px;background:radial-gradient(circle at 55% 45%,#2b5277 0,#17395d 43%,#102b4e 74%)}
.hero-symbol{position:relative;z-index:2;width:min(68%,350px);mix-blend-mode:screen;opacity:.95;border-radius:18px}
.art-orbit{position:absolute;border:1px solid #e1b32e55;border-radius:50%;width:360px;height:360px;transform:rotate(-24deg)}
.orbit-two{width:470px;height:240px;transform:rotate(35deg);border-color:#ffffff25}
.hero-note{position:absolute;z-index:3;right:8%;bottom:12%;padding:15px 19px;background:#fff;border-radius:8px;box-shadow:0 12px 35px #07192c55;display:flex;flex-direction:column}
.hero-note b{font:800 12px 'Manrope';color:#102b4e}.hero-note small{font-size:10px;color:#6d7d8d;margin-top:3px}
.board-heading{display:flex;align-items:end;justify-content:space-between;margin-bottom:24px}.board-heading h2{font-size:30px;margin:0 0 5px}.board-heading p{margin:0;color:var(--muted);font-size:13px}
/* Hero spans the full browser width (edge to edge) and keeps its height; copy stays aligned with the page content below. */
html,body{overflow-x:clip}
.page-frame:has(.home-hero){padding-top:0}
.home-hero{width:100vw;margin-left:calc(50% - 50vw);margin-right:calc(50% - 50vw);border-radius:0;box-shadow:none}
@media(min-width:761px){.home-hero .hero-copy{padding-left:max(clamp(20px,5vw,68px),calc((100vw - 1320px)/2 + clamp(20px,5vw,68px)))}}
@media(max-width:760px){.home-hero{grid-template-columns:1fr}.hero-copy{padding:36px 25px}.hero-art{min-height:260px}.hero-symbol{width:55%}.art-orbit{width:260px;height:260px}.orbit-two{width:330px;height:170px}.hero-note{right:5%;bottom:7%}.board-heading{align-items:start}}

/* Collapse the nav to the hamburger on half-laptop widths so links never wrap */
.main-nav>a,.nav-cta{white-space:nowrap}
@media(max-width:900px) and (min-width:761px){
 .site-header{height:84px;padding:0 24px}.nav-toggle{display:block}
 .main-nav{display:none;position:absolute;top:84px;left:0;right:0;background:white;padding:20px 24px;box-shadow:0 15px 25px #102b4e18;flex-direction:column;align-items:stretch;gap:16px}
 .nav-open .main-nav{display:flex}
}

/* Legal pages */
.legal-doc{max-width:780px}
.legal-doc h1{margin-bottom:6px!important}
.legal-updated{color:var(--muted);font-size:13px;margin:0 0 26px}
.legal-doc h2{font-size:20px!important;margin:32px 0 8px}
.legal-doc p,.legal-doc li{color:#3d5069;line-height:1.75}
.legal-doc ul{list-style:disc;padding-left:22px;margin:8px 0}
.legal-doc li{margin:5px 0}
.legal-doc a{color:var(--navy);text-decoration:underline;text-underline-offset:3px}

/* Needs-board filter pills: keep the active pill the same size as the others (global scope: board only) */
.page-frame a.filter-pill{padding:4px 12px!important;border-radius:999px!important;font-weight:500;font-size:14px;line-height:1.5;transform:none!important}
.page-frame a.filter-pill.bg-blue-900{font-weight:700}

/* Needs board: filtering happens in place (no page reload) */
#board{transition:opacity .15s}
#board.is-loading{opacity:.55;pointer-events:none}

/* ---------- Dashboard shell (admin / institution / supporter) ---------- */
body.dash-body{display:block;min-height:100vh}
.dash-shell{display:flex;min-height:100vh;background:var(--paper)}
.dash-side{width:264px;flex:none;background:var(--navy);color:#fff;display:flex;flex-direction:column;position:sticky;top:0;height:100vh;padding:22px 16px 18px;z-index:40}
.dash-side-top{padding:2px 6px 20px;margin-bottom:14px;border-bottom:1px solid #ffffff1c}
.dash-side .brand-lockup{min-width:0;gap:12px}
.dash-side .brand-mark{width:56px;height:56px;border-color:#ffffff40}
.dash-side .brand-copy strong{color:#fff;font-size:20px}
.dash-side .brand-copy strong i{color:#e6bc3d}
.dash-side .brand-copy small{display:none}
.dash-nav{display:flex;flex-direction:column;gap:4px;flex:1;overflow-y:auto}
.dash-nav a{display:flex;align-items:center;gap:12px;padding:11px 14px;border-radius:9px;border-left:3px solid transparent;color:#c9d5e2;font-weight:600;font-size:14px;transition:background .15s,color .15s}
.dash-nav a:hover{background:#ffffff10;color:#fff}
.dash-nav a.active{background:#ffffff16;color:#fff;border-left-color:var(--gold)}
.dash-nav a.active svg{color:var(--gold)}
.dash-nav-sep{margin-top:auto;border-top:1px solid #ffffff1c;border-radius:0!important;padding-top:16px!important}
.dash-user{border-top:1px solid #ffffff1c;padding:16px 6px 0}
.dash-user-name{font:700 14px 'Manrope',sans-serif;color:#fff;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.dash-user-role{font-size:12px;color:#9fb2c6;margin-bottom:12px}
.dash-user form{margin:0}
.dash-user button{width:100%;padding:9px 12px;border-radius:7px;border:1px solid #ffffff33;background:transparent;color:#e4ebf3;font:700 13px 'DM Sans',sans-serif;cursor:pointer;transition:.15s}
.dash-user button:hover{background:#e1b32e;border-color:#e1b32e;color:#102b4e}
.dash-wrap{flex:1;min-width:0}
.dash-topbar{display:none}
.dash-content{width:100%;max-width:1240px;margin:0 auto;padding:36px clamp(20px,3.2vw,48px) 64px}
.dash-content [id]{scroll-margin-top:84px}
.dash-scrim{display:none}
@media(max-width:900px){
 .dash-side{position:fixed;left:0;top:0;bottom:0;transform:translateX(-100%);transition:transform .25s ease}
 .dash-open .dash-side{transform:none;box-shadow:0 0 40px #07192c55}
 .dash-scrim{position:fixed;inset:0;background:#0c203b99;z-index:35}
 .dash-open .dash-scrim{display:block}
 .dash-topbar{display:flex;align-items:center;gap:12px;position:sticky;top:0;z-index:20;height:56px;padding:0 16px;background:#fff;border-bottom:1px solid var(--line)}
 .dash-burger{border:0;background:none;font-size:24px;line-height:1;color:var(--navy);cursor:pointer;padding:6px}
 .dash-topbar-title{font:800 17px 'Manrope',sans-serif;color:var(--navy);letter-spacing:-.03em}
 .dash-topbar-title i{font-style:normal;color:#c99a15}
 .dash-content{padding:24px 16px 48px}
}

/* Dashboard page titles: app-sized, with breathing room above the first block */
.dash-content>h1:first-child{font-size:clamp(24px,2.4vw,32px);margin:0 0 22px}
.dash-content>h1:first-child+p{margin-top:-14px}


/* Independent dashboard workspaces */
[hidden]{display:none!important}
.dash-content>[hidden]{display:none!important}
.dash-nav a[aria-current="page"]{background:#ffffff16;color:#fff;border-left-color:var(--gold)}
.dash-page-intro{color:var(--muted);margin:-12px 0 24px;font-size:14px}
.dash-page-tools{display:flex;align-items:center;justify-content:space-between;gap:14px;margin:0 0 14px}
.dash-page-tools input{width:min(420px,100%);min-height:42px;padding:10px 13px;border:1px solid var(--line);border-radius:8px;background:#fff;color:var(--ink)}
.dash-page-tools input:focus{outline:2px solid #c99a1540;border-color:var(--gold)}
.dash-result-count{font-size:12px;color:var(--muted);white-space:nowrap}
.dash-content tr[hidden]{display:none!important}
@media(max-width:600px){.dash-page-tools{align-items:stretch;flex-direction:column}.dash-page-tools input{width:100%}}

/* Consistent dashboard table pagination */
.dash-pagination{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 16px;border-top:1px solid #e2e8f0;background:#fff;font-size:13px;color:#64748b}
.dash-pagination-buttons{display:flex;gap:8px}
.dash-pagination button{border:1px solid #cbd5e1;border-radius:7px;padding:6px 12px;background:#fff;color:#1e3a8a;font-weight:600}
.dash-pagination button:disabled{opacity:.4;cursor:not-allowed}

/* Dashboard details drawer and notification centre */
.dash-topbar{position:relative}.dash-topbar-actions{margin-left:auto;position:relative}.notification-bell{position:relative;border:1px solid #dbe3ef;background:#fff;border-radius:999px;padding:8px 12px;cursor:pointer}.notification-count{position:absolute;right:-5px;top:-6px;background:#dc2626;color:#fff;border-radius:999px;font-size:10px;min-width:18px;height:18px;display:grid;place-items:center}.notification-panel{position:absolute;right:0;top:48px;width:min(360px,calc(100vw - 32px));max-height:420px;overflow:auto;background:#fff;border:1px solid #dbe3ef;border-radius:14px;box-shadow:0 18px 50px #0f172a26;padding:16px;z-index:80}.notification-item{padding:12px 0;border-bottom:1px solid #e5e7eb}.notification-item:last-child{border:0}.notification-item p{font-size:13px;color:#475569;margin:4px 0}.notification-item small{font-size:11px;color:#64748b}.notification-item.unread{border-left:3px solid #2563eb;padding-left:10px}.detail-drawer{position:fixed;z-index:100;right:0;top:0;height:100vh;width:min(440px,94vw);background:#fff;box-shadow:-18px 0 50px #0f172a30;padding:28px;overflow:auto;transform:translateX(105%);transition:transform .25s ease}.detail-drawer.open{transform:translateX(0)}.detail-drawer h2{font-size:22px;font-weight:800;color:#12315b;margin:28px 0 20px}.detail-close{position:absolute;right:18px;top:12px;font-size:30px;color:#64748b}.detail-row{padding:12px 0;border-bottom:1px solid #e2e8f0}.detail-row strong{display:block;font-size:12px;text-transform:uppercase;letter-spacing:.04em;color:#64748b}.detail-row p{margin-top:5px;color:#0f172a;overflow-wrap:anywhere}.detail-link{color:#123f7a;font-weight:600;text-decoration:underline;text-decoration-color:#e1b32e;text-decoration-thickness:2px;text-underline-offset:4px;text-align:left;cursor:pointer;display:inline-flex;align-items:center;gap:6px}.detail-link::after{content:"\203A";font-size:18px;line-height:1;color:#c99a15;text-decoration:none;transition:transform .15s}.detail-link:hover{color:#2563eb}.detail-link:hover::after{transform:translateX(3px)}.dash-content tbody tr:hover{background:#fbf8ee}

.dash-topbar{display:flex;align-items:center;gap:14px}.dash-topbar-actions{flex:0 0 auto}

/* The dashboard menu is mobile-only; keep it hidden on desktop even when shared topbar rules apply. */
/* top bar (with the notification bell) is now shown on large screens too, see the end of this file */


/* Need editor dialog, responsive profile upload, password feedback and fixed quick navigation. */
#editNeedModal{z-index:110}
#donatedModal,#editPledgeModal,#confirmModal{z-index:120}
#editNeedModal>div{max-height:calc(100vh - 32px);overflow:auto}
.profile-avatar-input{display:block;max-width:100%;min-width:0;width:100%;font-size:12px;overflow:hidden}
.profile-avatar-input::file-selector-button{max-width:100%;margin-right:8px;padding:7px 9px;border:1px solid #d7dee8;border-radius:6px;background:#f5f7fa;color:#233b59;font-size:12px;cursor:pointer}
.password-strength-track{height:7px;width:100%;overflow:hidden;border-radius:99px;background:#e8edf2}
.password-strength-track span{display:block;width:0;height:100%;border-radius:99px;background:#dc2626;transition:width .2s ease,background .2s ease}
.password-strength-track span[data-level="very-weak"],.password-strength-track span[data-level="weak"]{background:#dc6b36}
.password-strength-track span[data-level="fair"]{background:#d5a321}
.password-strength-track span[data-level="strong"]{background:#26936b}
.password-strength-track span[data-level="very-strong"]{background:#13734e}
#passwordStrengthText[data-level="very-weak"],#passwordStrengthText[data-level="weak"]{color:#b45309}
#passwordStrengthText[data-level="fair"]{color:#9a720b}
#passwordStrengthText[data-level="strong"],#passwordStrengthText[data-level="very-strong"]{color:#18734e}
.dash-bottom-nav{position:fixed;z-index:30;left:264px;right:0;bottom:0;min-height:64px;display:flex;align-items:center;justify-content:center;gap:clamp(8px,2vw,24px);padding:7px 16px calc(7px + env(safe-area-inset-bottom));background:#fff;border-top:1px solid #dfe5eb;box-shadow:0 -8px 24px #102b4e0d}
.dash-bottom-nav a{width:44px;height:44px;flex:0 0 44px;display:grid;place-items:center;border-radius:12px;color:#60748a;transition:background .15s,color .15s}
.dash-bottom-nav a svg{width:20px;height:20px}
.dash-bottom-nav a:hover,.dash-bottom-nav a.active{background:#edf2f7;color:#102b4e}
.dash-bottom-nav a.active{box-shadow:inset 0 -3px 0 #e1b32e}
/* Large screens: sidebar is the navigation, so the quick bottom bar is hidden (shown only at <=900px, where the sidebar collapses). */
@media(min-width:901px){.dash-bottom-nav{display:none!important}}
.dash-content{padding-bottom:64px}
@media(max-width:900px){
 .dash-bottom-nav{left:0;right:0;justify-content:flex-start;gap:clamp(5px,2vw,16px);overflow-x:auto;overflow-y:hidden;padding-left:12px;padding-right:12px}
 .dash-bottom-nav a{width:42px;height:42px;flex-basis:42px}
 .dash-content{padding-bottom:112px}
}
@media(max-width:420px){
 .profile-avatar-input::file-selector-button{margin-right:4px;padding:6px;font-size:11px}
 .dash-bottom-nav{justify-content:space-between;gap:3px}
 .dash-bottom-nav a{width:38px;height:40px;flex-basis:38px}
}

/* ---------- Password show/hide toggle ---------- */
.pw-wrap{position:relative;display:block;width:100%}
.page-frame .pw-wrap input{padding-right:46px!important}
.pw-toggle{position:absolute;top:0;right:0;height:100%;min-height:46px;width:44px;display:grid;place-items:center;border:0;background:none;color:#64748b;cursor:pointer;border-radius:0 7px 7px 0}
.pw-toggle:hover{color:var(--navy)}
.pw-toggle:focus-visible{outline:2px solid var(--gold);outline-offset:-2px}
.page-frame .pw-wrap input.mt-1{margin-top:0!important}
.pw-wrap:has(input.mt-1){margin-top:.25rem}

/* ---------- Need photos (homepage card, manager form) ---------- */
.need-photo{display:block;width:calc(100% + 40px);margin:-20px -20px 16px;max-width:none;height:170px;object-fit:cover;background:#eef2f6}
.need-institution{display:flex;align-items:center;gap:10px;margin-top:10px}
.inst-logo{flex:none;width:44px;height:44px;border-radius:50%;background:#fff;border:1px solid #dbe3ec;display:grid;place-items:center;overflow:hidden;font-weight:800;font-size:15px;letter-spacing:.02em;color:#1e3a8a;background-image:linear-gradient(135deg,#eef3f8,#e4ebf2)}
.inst-logo img{width:100%;height:100%;object-fit:contain;background:#fff;display:block}
.inst-logo-lg{width:84px;height:84px;font-size:26px}
[data-need-card].is-done .inst-logo{filter:grayscale(.85);opacity:.7}
.need-photo-empty{display:grid;place-items:center;color:#9fb0c2;background:linear-gradient(135deg,#eef3f8,#e4ebf2)}
.need-upload{display:flex;align-items:center;gap:14px;border:1.5px dashed #c5d0dc;border-radius:10px;padding:12px;background:#f8fafc}
.need-upload-preview{flex:none;width:84px;height:64px;border-radius:8px;overflow:hidden;display:grid;place-items:center;background:#e9eef4;color:#9fb0c2}
.need-upload-preview img{width:100%;height:100%;object-fit:cover}
.need-upload input[type=file]{font-size:12px;max-width:100%;min-height:0!important;padding:4px!important;border:0!important;background:transparent!important}
.need-thumb{width:38px;height:38px;border-radius:7px;object-fit:cover;flex:none;background:#eef2f6}

/* ---------- Pledge status badges (grey -> yellow -> green) ---------- */
.pledge-badge{display:inline-flex;align-items:center;gap:6px;padding:3px 10px;border-radius:999px;font-size:12px;font-weight:700;white-space:nowrap;line-height:1.5}
.pledge-badge:before{content:"";width:7px;height:7px;border-radius:50%;background:currentColor}
.pledge-badge.is-pledged{background:#eceff3;color:#5b6775}
.pledge-badge.is-donated{background:#fdf1c4;color:#8a6500}
.pledge-badge.is-confirmed{background:#dcf3e6;color:#176b45}
.pledge-badge.is-cancelled{background:#fde8e6;color:#a8322a}
tr.pledge-row-cancelled td{opacity:.6}
.pledge-balance{font-size:11px;color:#64748b;display:block;margin-top:2px}
.pledge-btn{border-radius:7px;padding:6px 12px;font-size:12px;font-weight:700;cursor:pointer;border:1px solid transparent;transition:.15s}
.pledge-btn[disabled]{opacity:.55;cursor:not-allowed}
.pledge-btn.donated{background:#e1b32e;color:#172f4d}
.pledge-btn.donated:hover{background:#cf9f17}
.pledge-btn.confirm{background:#176b45;color:#fff}
.pledge-btn.confirm:hover{background:#12573a}
.pledge-btn.primary{background:#102b4e;color:#fff}
.pledge-btn.primary:hover{background:#234b73}
.pledge-btn.danger{background:#fff;color:#b42318;border-color:#f1c0bb}
.pledge-btn.danger:hover{background:#fdeceb}
.pledge-btn.ghost{background:#fff;color:#102b4e;border-color:#cbd5e1}
.pledge-btn.ghost:hover{background:#f1f5f9}
.pledge-actions{display:flex;flex-wrap:wrap;gap:8px;align-items:center}

/* ---------- Detail drawer: balance sheet + actions ---------- */
.drawer-balance{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin:0 0 6px}
.drawer-balance div{border:1px solid #e2e8f0;border-radius:10px;padding:10px 8px;text-align:center;background:#f8fafc}
.drawer-balance span{display:block;font-size:10px;text-transform:uppercase;letter-spacing:.05em;color:#64748b;font-weight:700}
.drawer-balance b{display:block;font:800 22px 'Manrope',sans-serif;color:#102b4e;margin-top:2px}
.drawer-balance .is-due b{color:#b45309}
.drawer-actions{margin-top:22px;padding-top:18px;border-top:2px solid #e2e8f0;display:flex;flex-direction:column;gap:12px}
.drawer-actions h3{font-size:13px;text-transform:uppercase;letter-spacing:.06em;color:#64748b;margin:0}
.drawer-actions .receive-row{display:flex;gap:8px}
.drawer-actions .receive-row input{flex:1;min-width:0;min-height:42px;border:1px solid #d9e0e4;border-radius:7px;padding:8px 12px}
.drawer-actions .receive-row .pledge-btn{padding:8px 14px;font-size:13px}
.drawer-actions .drawer-msg{font-size:13px;margin:0}
.drawer-actions .drawer-hint{font-size:12px;color:#64748b;margin:0}

/* Received (green) progress bar on need cards */
.page-frame .need-received-bar{background:#1f9d62!important}

/* Fully received cards, contact modal */
#contactModal{z-index:120}
.contact-card{background-color:#fff;background-repeat:no-repeat;background-position:center;background-size:auto,72% auto}
[data-need-card].is-done .need-photo{filter:grayscale(.85);opacity:.7}
[data-need-card].is-done h3{color:#64748b}
.contact-body{display:flex;flex-direction:column;align-items:center;gap:14px}
.contact-wa{position:relative;display:inline-flex;align-items:center;gap:10px;max-width:100%;padding:12px 16px;background:#dcf8c6;color:#0b3d1e;border-radius:18px 18px 18px 4px;font-weight:600;text-decoration:none;box-shadow:0 2px 6px #0b3d1e22}
.contact-wa:hover{background:#cff0b4}
.contact-wa svg{flex:none;color:#25d366}
.contact-wa small{display:block;font-weight:500;font-size:.72rem;color:#3f6b4c}
.contact-row{display:flex;align-items:center;justify-content:center;gap:10px;color:#0f2a4a;text-decoration:none;font-weight:500;word-break:break-word;text-align:center}
.contact-row:hover{text-decoration:underline}
.contact-row svg{flex:none;color:#1e3a8a}

/* Footer: contact, legal notice, signature */
.footer-contact{font-style:normal;display:flex;flex-direction:column;gap:6px;margin-top:16px;font-size:13px;color:#c5d0dc}
.footer-notice{max-width:1180px;margin:0 auto 22px;padding:14px 0 0;border-top:1px solid #ffffff24;color:#9fb0c2;font-size:11.5px;line-height:1.7}
.footer-signature{max-width:1180px;margin:18px auto 0;display:flex;justify-content:center}
.sig-bubble{display:inline-flex;align-items:center;gap:6px;padding:5px 14px 6px;border-radius:999px;background:#ffffff14;border:1px solid #ffffff2e;color:#c5d0dc;font:500 12px 'Fredoka','DM Sans',sans-serif;letter-spacing:.02em}
.sig-name{font:600 13px 'Fredoka','DM Sans',sans-serif;background:linear-gradient(90deg,#f0c84d,#ff9f6b);-webkit-background-clip:text;background-clip:text;color:transparent;text-decoration:none}
a.sig-name:hover{filter:brightness(1.15)}
@media (max-width:980px){.footer-main{grid-template-columns:1fr 1fr 1fr}.footer-brand{grid-column:1/-1}}
@media (max-width:560px){.footer-main{grid-template-columns:1fr 1fr;gap:28px}}

/* ---- Visit requests, signature pad, nav badges ---- */
.dash-nav a{position:relative}
.dash-badge{margin-left:auto;background:#e1b32e;color:#172f4d;border-radius:999px;font:800 11px/1 'Manrope',sans-serif;font-style:normal;min-width:20px;height:20px;padding:0 6px;display:inline-grid;place-items:center}
.dash-badge-inline{margin-left:4px;vertical-align:middle}
.dash-bottom-nav a{position:relative}
.dash-badge-dot{position:absolute;top:2px;right:2px;margin:0;min-width:17px;height:17px;font-size:10px;background:#dc2626;color:#fff}
.sig-pad{display:block;width:100%;max-width:640px;height:auto;aspect-ratio:16/5;border:1.5px dashed #c5d0dc;border-radius:10px;background:#f8fafc;touch-action:none;cursor:crosshair}
.sig-tabs{display:inline-flex;border:1px solid #cbd5e1;border-radius:8px;overflow:hidden;margin-bottom:10px}
.sig-tabs button{padding:7px 16px;font-size:13px;font-weight:700;background:#fff;color:#102b4e}
.sig-tabs button.is-on{background:#102b4e;color:#fff}
.sig-current{display:flex;align-items:center;gap:14px;flex-wrap:wrap;margin-bottom:8px;padding:10px;border:1px solid #e2e8f0;border-radius:10px;background:#f8fafc}
.sig-current img{max-height:70px;max-width:220px;background:repeating-conic-gradient(#eef2f6 0 25%,#fff 0 50%) 0 0/14px 14px;border-radius:6px}
.drawer-actions textarea{min-height:84px;resize:vertical}

/* Homepage refinements: photographic hero and searchable institution picker. */
.home-hero{
 background:
   linear-gradient(90deg,rgba(8,28,49,.88) 0%,rgba(8,28,49,.68) 52%,rgba(8,28,49,.22) 100%),
   url('../images/carehub-home-hero.jpg') center 48%/cover no-repeat;
}
.home-hero .hero-art{background:transparent}
.home-hero .hero-symbol{filter:drop-shadow(0 12px 30px rgba(0,0,0,.24))}
.institution-filter{display:grid;gap:9px;max-width:900px}
.institution-filter-label{font-size:11px;font-weight:800;letter-spacing:.12em;text-transform:uppercase;color:#697787}
.institution-filter-controls{display:grid;grid-template-columns:minmax(260px,1.15fr) minmax(260px,1fr);gap:12px;align-items:center}
.institution-filter-controls input,.institution-filter-controls select{
 width:100%;min-width:0;min-height:46px;padding:11px 13px;border:1px solid #d9e0e4;border-radius:7px;background:#fff;color:var(--ink);font:500 14px 'DM Sans',sans-serif;
}
.institution-filter-controls input:focus,.institution-filter-controls select:focus{outline:none;border-color:#c99a15;box-shadow:0 0 0 3px #e1b32e25}
.institution-search-hint{display:block;margin-top:8px;font-size:12px;color:#718096}
@media(max-width:700px){
 .home-hero{grid-template-columns:1fr;min-height:480px;
  background:
   linear-gradient(180deg,rgba(8,28,49,.86) 0%,rgba(8,28,49,.68) 55%,rgba(8,28,49,.38) 100%),
   url('../images/carehub-home-hero-mobile.jpg') center bottom/cover no-repeat}
 .home-hero .hero-art{display:none}
 .institution-filter-controls{grid-template-columns:1fr;gap:8px}
 .institution-search-hint{white-space:normal}
}

/* Needs board: 2 cards side by side per page with Prev / Next */
#needsGrid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;scroll-margin-top:96px}
#needsGrid [data-need-card][hidden]{display:none!important}
@media(min-width:701px){#needsGrid{gap:20px}}
.needs-pager{display:flex;align-items:center;justify-content:center;gap:16px;margin:26px 0 8px;font-size:13px;color:#64748b}
.needs-pager button{border:1px solid #cbd5e1;border-radius:999px;padding:8px 18px;background:#fff;color:#102b4e;font-weight:700;font-size:13px;cursor:pointer;transition:background .15s,border-color .15s}
.needs-pager button:hover:not(:disabled){background:#102b4e;border-color:#102b4e;color:#fff}
.needs-pager button:disabled{opacity:.4;cursor:not-allowed}
/* Phones: compact cards so two sit side by side */
@media(max-width:700px){
 #needsGrid{gap:10px}
 #needsGrid [data-need-card]{padding:10px}
 #needsGrid .need-photo{width:calc(100% + 20px);margin:-10px -10px 10px;height:104px}
 #needsGrid h3{font-size:15px;line-height:1.25;margin-top:8px}
 #needsGrid .inst-logo{width:34px;height:34px;font-size:12px}
 #needsGrid .need-institution{gap:8px;margin-top:8px}
 #needsGrid .text-sm{font-size:12px}
 #needsGrid .mt-6{margin-top:12px}
 #needsGrid .flex.justify-between{flex-wrap:wrap;gap:0 6px}
 #needsGrid button{padding:7px 4px;font-size:12px;margin-top:8px}
 .needs-pager{gap:10px}
 .needs-pager button{padding:8px 14px}
}

/* 404 page */
.notfound{max-width:620px;margin:clamp(24px,6vw,70px) auto;text-align:center}
.nf-code{display:flex;align-items:center;justify-content:center;gap:clamp(6px,2vw,16px);font:800 clamp(88px,22vw,150px)/1 'Manrope',sans-serif;letter-spacing:-.06em;color:var(--navy);margin-bottom:14px}
.nf-code svg{width:.72em;height:.72em;fill:#e0314b;transform:translateY(.02em);animation:nfBeat 1.8s ease-in-out infinite}
@keyframes nfBeat{0%,100%{transform:scale(1)}50%{transform:scale(1.08)}}
@media(prefers-reduced-motion:reduce){.nf-code svg{animation:none}}
.notfound h1{font-size:clamp(26px,5vw,36px)!important;margin:8px 0 12px!important}
.notfound>p{color:var(--muted);font-size:15px;max-width:460px;margin:0 auto 26px}
.nf-actions{display:flex;justify-content:center;align-items:center;gap:14px;flex-wrap:wrap}
.nf-actions .hero-primary{display:inline-block}
.nf-secondary{font-size:13px;font-weight:700;color:var(--navy);padding:14px 20px;border:1px solid #cbd5e1;border-radius:5px;background:#fff}
.nf-secondary:hover{border-color:var(--navy)}
.notfound>.nf-links{margin:28px auto 0;font-size:13px;color:#94a3b8}
.nf-links a{color:#475569;font-weight:600;margin:0 6px}.nf-links a:hover{color:#c99a15}

/* =========================================================
   CAREHUB SYSTEM-WIDE BRAND PALETTE
   Forest green · golden yellow · white · black
   ========================================================= */
:root{
 --ink:#111915;
 --navy:#0b4938;
 --blue:#17634b;
 --gold:#e0b52f;
 --gold-pale:#fff7dc;
 --paper:#f7f8f5;
 --white:#fff;
 --muted:#68756d;
 --line:#e1e7e1;
 --green:#17634b;
 --shadow:0 18px 55px rgba(8,49,36,.10);
}
body.carehub-shell{background:var(--paper);color:var(--ink)}
h1,h2,h3,h4,.brand-copy strong{color:#0b4938}
.site-header{background:#fff;border-bottom-color:#dce7df}
.brand-copy strong i{color:#d6a91f}
.brand-copy small{color:#52645a}
.main-nav{color:#263b30}
.main-nav>a:not(.nav-cta):hover{color:#bd9014}
.nav-cta,.page-frame button[type=submit],.page-frame a.bg-blue-900,
.page-frame button.bg-blue-900,.page-frame button.bg-slate-900{
 background:#0b4938!important;color:#fff!important
}
.nav-cta:hover,.page-frame button[type=submit]:hover,
.page-frame a.bg-blue-900:hover{background:#17634b!important}
.page-frame input:focus,.page-frame select:focus,.page-frame textarea:focus{
 border-color:#d6a91f!important;box-shadow:0 0 0 3px #e0b52f30!important
}
.page-frame thead th{background:#edf3ee!important;color:#344b3d!important}
.page-frame tbody tr:hover{background:#fbfcf8}
.page-frame .bg-blue-100{background:#e7f1eb!important;color:#0b4938!important}
.page-frame .bg-blue-900{background:#0b4938!important}
.page-frame .text-blue-900{color:#0b4938!important}
.site-footer{background:#083d2f;color:#fff}
.footer-main h4{color:#e0b52f}
.footer-social a:hover{background:#e0b52f;border-color:#e0b52f;color:#101510}
.modal-backdrop{background:#061e17d9}
.page-frame:is(:has(#loginForm),:has(#forgotForm),:has(#resetForm)),
.page-frame:has(#registerForm){background:var(--paper)}
@media(min-width:1100px){
 .page-frame:is(:has(#loginForm),:has(#forgotForm),:has(#resetForm)){
  background:linear-gradient(115deg,#0b4938 0 42%,#f7f8f5 42%)
 }
}
@media(min-width:1280px){
 .page-frame:has(#registerForm){background:linear-gradient(115deg,#0b4938 0 38%,#f7f8f5 38%)}
}
/* Dashboard and controller utility classes */
.bg-blue-900,.bg-slate-900{background-color:#0b4938!important}
.text-blue-900{color:#0b4938!important}
.border-blue-900{border-color:#0b4938!important}
.hover\\:bg-blue-800:hover{background-color:#17634b!important}
.bg-amber-500,.bg-amber-600{background-color:#d6a91f!important;color:#111915!important}
.text-amber-600,.text-amber-700{color:#a77c08!important}
.bg-slate-100{background-color:#edf2ed!important}
.text-slate-900{color:#111915!important}
.border-slate-200{border-color:#e1e7e1!important}
.dash-nav a[aria-current="page"],.dash-nav a.active,
.dash-bottom-nav a.active{background:#0b4938!important;color:#fff!important}
.dash-badge{background:#e0b52f;color:#111915}
.sig-tabs button{color:#0b4938}
.sig-tabs button.is-on{background:#0b4938;color:#fff}
.needs-pager button:hover:not(:disabled){background:#0b4938;border-color:#0b4938}
.home-hero{
 background:
  linear-gradient(90deg,rgba(5,49,36,.91) 0%,rgba(8,67,49,.72) 52%,rgba(8,67,49,.24) 100%),
  url('../images/carehub-home-hero.jpg') center 48%/cover no-repeat;
}
@media(max-width:700px){
 .home-hero{background:
  linear-gradient(180deg,rgba(5,49,36,.91) 0%,rgba(8,67,49,.72) 55%,rgba(8,67,49,.38) 100%),
  url('../images/carehub-home-hero-mobile.jpg') center bottom/cover no-repeat}
}

/* ---- Controller organizations drawer: wider layout, contributions list, status pill ---- */
.detail-drawer.is-wide{width:min(760px,96vw)}
.detail-drawer.is-wide #detailBody{display:grid;grid-template-columns:1fr 1fr;column-gap:28px}
.detail-drawer.is-wide .detail-row.is-wide,.detail-drawer.is-wide .contrib-block{grid-column:1/-1}
@media(max-width:640px){.detail-drawer.is-wide #detailBody{grid-template-columns:1fr}}
.detail-link-out{color:#0b4938;font-weight:600;text-decoration:underline;text-underline-offset:3px;overflow-wrap:anywhere}
.detail-link-out:hover{color:#a77c08}
.org-status{display:inline-block;padding:3px 11px;border-radius:999px;font-size:12px;font-weight:700;line-height:1.5}
.org-status.is-verified{background:#dcf3e6;color:#176b45}
.contrib-block{padding:16px 0 4px}
.contrib-head{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:10px;margin-bottom:12px}
.contrib-head strong{font-size:12px;text-transform:uppercase;letter-spacing:.04em;color:#64748b}
.contrib-search{display:flex;gap:6px;flex:1 1 260px;max-width:380px}
.contrib-search input{flex:1;min-width:0;border:1px solid #d9e0e4;border-radius:8px;padding:7px 10px;font-size:13px}
.contrib-search button,.contrib-foot button{border:1px solid #0b4938;background:#0b4938;color:#fff;border-radius:8px;padding:7px 14px;font-size:13px;font-weight:600;cursor:pointer}
.contrib-foot button{background:#fff;color:#0b4938;border-color:#cbd5e1;padding:6px 12px}
.contrib-foot button:disabled{opacity:.4;cursor:not-allowed}
.contrib-scroll{overflow-x:auto;border:1px solid #e1e7e1;border-radius:10px}
.contrib-table{width:100%;border-collapse:collapse;font-size:13px}
.contrib-table th{background:#edf2ed;text-align:left;padding:9px 10px;font-size:11px;text-transform:uppercase;letter-spacing:.04em;color:#68756d;white-space:nowrap}
.contrib-table td{padding:9px 10px;border-top:1px solid #e1e7e1;vertical-align:middle}
.contrib-table td.nowrap{white-space:nowrap;color:#68756d}
.contrib-empty{padding:14px 10px;color:#68756d;font-size:13px;text-align:center}
.contrib-foot{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:10px;font-size:13px;color:#68756d}
.contrib-foot div{display:flex;gap:8px}

/* Notification centre fixes + live toasts */
.notification-count[hidden],.notification-markall[hidden]{display:none}
.notification-head{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:6px}
.notification-markall{font-size:12px;font-weight:600;color:#2563eb;background:none;border:0;cursor:pointer;padding:2px 4px}
.notification-markall:hover{text-decoration:underline}
.notification-item{cursor:pointer}
.notification-item.unread strong::before{content:"";display:inline-block;width:7px;height:7px;border-radius:50%;background:#2563eb;margin-right:6px;vertical-align:middle}
.notification-item.is-new{animation:nfFlash 2.4s ease-out}
@keyframes nfFlash{from{background:#fef9c3}to{background:transparent}}
.notification-empty{color:#64748b;font-size:14px;padding:8px 0}
.notification-viewall{display:block;text-align:center;margin-top:8px;padding-top:10px;border-top:1px solid #e5e7eb;font-size:13px;font-weight:600;color:#123f7a}
.notification-viewall:hover{text-decoration:underline}
.live-toasts{position:fixed;right:16px;bottom:16px;z-index:9999;display:flex;flex-direction:column;gap:8px;width:min(340px,calc(100vw - 32px))}
.live-toast{padding:12px 14px;border-radius:12px;background:#1f2937;color:#fff;box-shadow:0 8px 24px rgba(0,0,0,.25);font:14px/1.4 system-ui,sans-serif;cursor:pointer;animation:toastIn .2s ease-out}
.live-toast strong{display:block}
.live-toast.is-leaving{opacity:0;transform:translateY(6px);transition:opacity .2s,transform .2s}
@keyframes toastIn{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}
@media (max-width:900px){.live-toasts{bottom:84px}}

/* Sidebar Notifications link (the top bar and its bell are hidden on large screens) */
.dash-badge[hidden]{display:none}
.dash-nav a[data-nav-notifications] .dash-badge{background:#dc2626;color:#fff}

/* Notification bell in the header on every screen size (supporter, manager and admin) */
@media(min-width:901px){
  .dash-topbar{display:flex!important;justify-content:flex-end;height:56px;padding:0 28px;background:#fff;border-bottom:1px solid var(--line)}
  .dash-burger,.dash-topbar-title{display:none}
}
.notification-item[data-link] small::after{content:" \00B7  Open \203A";color:#2563eb;font-weight:600}
.live-toast.has-link{border-left:3px solid #e1b32e}

/* Fixed header: stays put at the top while the page content scrolls behind it.
   Layers: bottom nav 30 < header 34 < drawer scrim 35 < sidebar 40 < modals 50 < detail drawer 100. */
.dash-topbar{position:fixed!important;top:0;left:0;right:0;height:56px;z-index:34;background:#fff;border-bottom:1px solid var(--line)}
.dash-wrap{padding-top:56px}
@media(min-width:901px){.dash-topbar{left:264px}}

/* Header: black & gold bell, then the avatar */
.dash-topbar-actions{display:flex;align-items:center;gap:12px}
.notification-bell{width:40px;height:40px;display:grid;place-items:center;padding:0;border-radius:999px;background:#111;border:1.5px solid #e1b32e;color:#e1b32e;line-height:0;transition:background .15s,box-shadow .2s}
.notification-bell:hover{background:#000;box-shadow:0 0 0 3px #e1b32e40}
.notification-bell svg{display:block;transform-origin:50% 12%}
.notification-bell .bell-body{fill:#e1b32e;stroke:#e1b32e}
.notification-bell .bell-clapper{fill:none;stroke:#e1b32e}
.notification-count{box-shadow:0 0 0 2px #fff;line-height:1}
.topbar-avatar{display:block;flex:none;width:40px;height:40px;border-radius:50%;overflow:hidden;border:2px solid #e1b32e;background:#fff}
.topbar-avatar img{display:block;width:100%;height:100%;object-fit:cover}
.notification-panel{top:52px}

/* Bell shake when a notification arrives */
.notification-bell.is-ringing{box-shadow:0 0 0 5px #e1b32e55}
.notification-bell.is-ringing svg,.dash-nav a[data-nav-notifications].is-ringing svg{animation:bellShake 1.2s ease-in-out;transform-origin:50% 12%}
@keyframes bellShake{0%{transform:rotate(0)}10%{transform:rotate(18deg)}20%{transform:rotate(-16deg)}30%{transform:rotate(13deg)}40%{transform:rotate(-11deg)}50%{transform:rotate(8deg)}60%{transform:rotate(-6deg)}70%{transform:rotate(3deg)}80%{transform:rotate(-2deg)}100%{transform:rotate(0)}}
@media (prefers-reduced-motion:reduce){.notification-bell.is-ringing svg,.dash-nav a[data-nav-notifications].is-ringing svg{animation:none}}

/* Global fixed navigation: public header and dashboard topbar stay visible
   while their respective page content scrolls underneath. */
.site-header{
 position:fixed!important;
 top:0;
 left:0;
 right:0;
 width:100%;
 z-index:60;
}
body.carehub-shell:not(.dash-body) .page-frame{
 margin-top:98px;
 scroll-margin-top:112px;
}
@media(max-width:900px) and (min-width:761px){
 body.carehub-shell:not(.dash-body) .page-frame{margin-top:84px}
}
@media(max-width:760px){
 body.carehub-shell:not(.dash-body) .page-frame{margin-top:80px}
 .site-header .main-nav{top:80px}
}
@media(max-width:900px) and (min-width:761px){
 .site-header .main-nav{top:84px}
}
.site-header .main-nav{z-index:61}
.page-frame [id]{scroll-margin-top:116px}
@media(max-width:900px){.page-frame [id]{scroll-margin-top:96px}}

/* ---- Pulsing loader (system colours: deep green, gold, paper) ---- */
.app-loader{position:fixed;inset:0;z-index:9999;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:26px;background:rgba(245,244,239,.93);-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);opacity:0;visibility:hidden;pointer-events:none;transition:opacity .28s ease,visibility 0s linear .28s}
.app-loader.is-visible,.app-loader.is-boot{opacity:1;visibility:visible;pointer-events:auto;transition:opacity .2s ease}
/* Safety net: if scripts never run, the boot loader fades itself out. */
.app-loader.is-boot{animation:appLoaderBoot .3s ease 8s forwards}
@keyframes appLoaderBoot{to{opacity:0;visibility:hidden;pointer-events:none}}
.app-loader-pulse{position:relative;width:96px;height:96px;display:grid;place-items:center}
.app-loader-pulse img{position:relative;z-index:2;width:72px;height:72px;border-radius:50%;object-fit:cover;background:#fff;border:3px solid #fff;box-shadow:0 0 0 2px #0b4938,0 8px 22px #0b493833;animation:appLoaderBeat 1.4s ease-in-out infinite}
.app-loader-ring{position:absolute;inset:0;border-radius:50%;border:3px solid #0b4938;opacity:0;animation:appLoaderRing 1.8s ease-out infinite}
.app-loader-ring.r2{border-color:#e0b52f;animation-delay:.9s}
@keyframes appLoaderBeat{0%,100%{transform:scale(.92)}50%{transform:scale(1.07)}}
@keyframes appLoaderRing{0%{transform:scale(.75);opacity:.7}100%{transform:scale(1.7);opacity:0}}
.app-loader-text{font:700 13px 'Manrope',sans-serif;letter-spacing:.14em;text-transform:uppercase;color:#0b4938}
.app-loader-text i{font-style:normal;color:#d6a91f;animation:appLoaderDot 1.2s infinite both}
.app-loader-text i:nth-child(2){animation-delay:.2s}
.app-loader-text i:nth-child(3){animation-delay:.4s}
@keyframes appLoaderDot{0%,80%,100%{opacity:.2}40%{opacity:1}}
@media(prefers-reduced-motion:reduce){.app-loader-pulse img,.app-loader-ring,.app-loader-text i{animation:none}.app-loader-ring{opacity:.35}}

/* ---- Payment success modal + invoice ---- */
#paymentModal{z-index:130;align-items:flex-start;overflow-y:auto}
.pay-modal{width:100%;max-width:460px;margin:auto;background:#fff;border-radius:16px;overflow:hidden;animation:payIn .35s cubic-bezier(.2,.9,.3,1.1)}
@keyframes payIn{from{opacity:0;transform:translateY(18px) scale(.97)}to{opacity:1;transform:none}}
.pay-success{text-align:center;padding:28px 24px 20px;background:linear-gradient(180deg,#e7f1eb,#fff)}
.pay-success h2{font-size:23px;font-weight:800;color:#0b4938;margin:10px 0 4px}
.pay-success p{font-size:14px;color:#52645c;margin:0;line-height:1.5}
.pay-check{width:68px;height:68px}
.pay-check-circle{fill:#0b4938;stroke:none;transform-origin:center;animation:payPop .45s ease-out both}
.pay-check-mark{fill:none;stroke:#e0b52f;stroke-width:4;stroke-linecap:round;stroke-linejoin:round;stroke-dasharray:40;stroke-dashoffset:40;animation:payDraw .45s ease .35s forwards}
@keyframes payPop{from{transform:scale(.3);opacity:0}to{transform:scale(1);opacity:1}}
@keyframes payDraw{to{stroke-dashoffset:0}}
.invoice{margin:0 20px;padding:18px;border:1px solid #e4e7e8;border-top:4px solid #e0b52f;border-radius:10px;background:#fffdf7;font-size:13px;color:#142b49}
.inv-top{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;padding-bottom:12px;border-bottom:1px dashed #d9dfd6}
.inv-brand{display:flex;align-items:center;gap:10px;min-width:0}
.inv-brand img{border-radius:50%;border:2px solid #0b4938;object-fit:cover;flex:none}
.inv-brand strong{display:block;font:800 14px 'Manrope',sans-serif;color:#0b4938;line-height:1.2}
.inv-brand small{display:block;font-size:11px;color:#697787}
.inv-tag{text-align:right;flex:none}
.inv-tag b{display:block;font:800 13px 'Manrope',sans-serif;letter-spacing:.14em;color:#0b4938}
.inv-paid{display:inline-block;margin-top:4px;padding:2px 10px;border:2px solid #1f9d62;border-radius:5px;color:#1f9d62;font:800 11px 'Manrope',sans-serif;letter-spacing:.12em;transform:rotate(-4deg)}
.inv-meta{padding:12px 0;display:grid;gap:5px}
.inv-row{display:flex;justify-content:space-between;gap:12px}
.inv-label{color:#697787;font-size:12px}
.inv-value{font-weight:700;text-align:right;word-break:break-word}
.inv-from{display:grid;gap:1px;padding:10px 12px;background:#f1f5f0;border-radius:8px;margin-bottom:12px}
.inv-from strong{font-size:14px;color:#0b4938}
.inv-from small{color:#697787}
.inv-table{border:1px solid #e4e7e8;border-radius:8px;overflow:hidden;background:#fff}
.inv-line{display:flex;justify-content:space-between;gap:14px;padding:9px 12px}
.inv-line span:last-child{font-weight:700;white-space:nowrap}
.inv-line-head{background:#0b4938;color:#fff;font-size:11px;letter-spacing:.08em;text-transform:uppercase}
.inv-total{background:#fff6d9;border-top:1px solid #ecd78c;font-weight:800;color:#0b4938}
.inv-total span:last-child{font-size:15px}
.inv-thanks{margin:14px 0 0;line-height:1.6;color:#33463d}
.inv-foot{margin:10px 0 0;font-size:11px;color:#8a97a3;text-align:center}
.pay-actions{display:flex;gap:10px;padding:18px 20px 22px}
.pay-btn{flex:1;padding:11px 14px;border-radius:9px;font:700 14px 'DM Sans',sans-serif;cursor:pointer;border:1px solid #0b4938;transition:background .15s}
.pay-btn-ghost{background:#fff;color:#0b4938}.pay-btn-ghost:hover{background:#e7f1eb}
.pay-btn-solid{background:#0b4938;color:#fff}.pay-btn-solid:hover{background:#17634b}
@media(prefers-reduced-motion:reduce){.pay-modal,.pay-check-circle{animation:none}.pay-check-mark{animation:none;stroke-dashoffset:0}}
/* Print: only the invoice */
@media print{
 body.print-invoice>*:not(#paymentModal){display:none!important}
 body.print-invoice #paymentModal{position:static;display:block;background:none;backdrop-filter:none;padding:0;overflow:visible}
 body.print-invoice .pay-modal{box-shadow:none!important;max-width:none;animation:none}
 body.print-invoice .pay-success,body.print-invoice .pay-actions{display:none}
 body.print-invoice .invoice{margin:0;-webkit-print-color-adjust:exact;print-color-adjust:exact}
 body.print-invoice .inv-line-head,body.print-invoice .inv-total,body.print-invoice .inv-from{-webkit-print-color-adjust:exact;print-color-adjust:exact}
}

/* ---- Payment option tabs + pending acknowledgement ---- */
.pay-tabs{display:grid;grid-template-columns:1fr 1fr;gap:8px;padding:5px;margin-bottom:20px;background:#eef3ee;border-radius:12px}
.pay-tab{display:flex;align-items:center;justify-content:center;gap:9px;padding:10px 8px;border:0;border-radius:9px;background:transparent;color:#52645c;font:700 13px 'DM Sans',sans-serif;cursor:pointer;text-align:left;transition:background .15s,color .15s,box-shadow .15s}
.pay-tab span{display:flex;flex-direction:column;line-height:1.25}
.pay-tab small{font-weight:500;font-size:11px;opacity:.8}
.pay-tab svg{flex:none}
.pay-tab:hover{background:#e2ebe3}
.pay-tab.is-active{background:#0b4938;color:#fff;box-shadow:0 4px 12px #0b493833}
.pay-tab.is-active svg{color:#e0b52f}
.pay-panel[hidden]{display:none}
.inv-paid.inv-pending{border-color:#c99a15;color:#9a7410}
@media(max-width:420px){.pay-tab{flex-direction:column;gap:4px;text-align:center}}


/* Focused authentication screens */
.auth-shell{max-width:520px;margin:3.5rem auto;padding:0 1rem}.auth-panel{background:#fff;border:1px solid #e2e8f0;border-radius:24px;padding:clamp(1.5rem,5vw,2.5rem);box-shadow:0 18px 55px rgba(15,23,42,.08)}.auth-brand{display:flex;align-items:center;gap:.75rem;margin-bottom:2.2rem}.auth-brand-mark{display:grid;place-items:center;width:42px;height:42px;border-radius:14px;background:#102b55;color:#fff;font-weight:800;font-size:1.25rem}.auth-brand strong,.auth-brand small{display:block}.auth-brand strong{color:#102b55;font-size:1rem}.auth-brand small{color:#64748b;font-size:.75rem;margin-top:1px}.auth-title{font-size:clamp(1.7rem,4vw,2rem);font-weight:800;letter-spacing:-.035em;color:#102b55;margin:0 0 .35rem}.auth-subtitle{color:#64748b;font-size:.92rem;line-height:1.6;margin:0 0 1.5rem}.auth-panel form.space-y-4{display:flex;flex-direction:column;gap:1.05rem}.auth-panel form.space-y-4>div{margin:0}.auth-panel input:not([type=checkbox]),.auth-panel select{min-height:46px;border:1px solid #cbd5e1;border-radius:11px;background:#fbfdff;padding:.7rem .85rem;transition:border-color .18s,box-shadow .18s}.auth-panel input:focus,.auth-panel select:focus{border-color:#315d96;box-shadow:0 0 0 3px rgba(49,93,150,.12);outline:none}.auth-panel form button[type=submit]{min-height:48px;border-radius:11px;font-weight:700;letter-spacing:.01em}.auth-divider{display:flex;align-items:center;gap:.8rem;color:#94a3b8;font-size:.75rem;margin:1.25rem 0}.auth-divider:before,.auth-divider:after{content:"";height:1px;background:#e2e8f0;flex:1}.auth-panel .g_id_signin{width:100%;display:flex;justify-content:center;margin-bottom:1.2rem}.auth-panel>p:last-child{margin-top:1.5rem}
.google-setup-placeholder{width:100%;min-height:44px;border:1px solid #cbd5e1;border-radius:9px;background:#f8fafc;color:#64748b;display:flex;align-items:center;justify-content:center;gap:.65rem;font-weight:600;font-size:.88rem;cursor:not-allowed}.google-setup-placeholder>span{font-weight:800;font-size:1.05rem;color:#4285f4}.google-setup-placeholder small{font-size:.68rem;font-weight:500;color:#94a3b8}


/* Authentication refresh: Bootstrap 5 form/grid primitives, with a clean unboxed layout. */
.auth-body .page-frame{width:100%;max-width:none;margin-top:98px!important;padding:24px clamp(20px,5vw,76px) 34px;}
.auth-stage{width:min(1120px,100%);margin:0 auto;display:grid;grid-template-columns:minmax(0,1fr) 300px;align-items:center;gap:clamp(36px,7vw,100px);min-height:calc(100vh - 160px);}
.auth-content{min-width:0;width:100%;}
.auth-kicker{display:flex;align-items:center;gap:10px;color:#8a6b1c;font:800 10px 'Manrope',sans-serif;letter-spacing:.16em;margin-bottom:13px;}
.auth-kicker-line{width:26px;height:2px;background:#d6ac35;display:inline-block;}
.auth-title{font:800 clamp(30px,3.3vw,42px)/1.08 'Manrope',sans-serif;letter-spacing:-.055em;color:#102b4e;margin:0 0 7px;}
.auth-title span{color:#c99a15;}
.auth-subtitle{color:#718096;font-size:14px;line-height:1.5;margin:0 0 20px;}
.auth-social-area{max-width:420px;}
.auth-body .g_id_signin{width:100%;display:flex;justify-content:flex-start;min-height:40px;}
.auth-body .g_id_signin>div{max-width:100%;}
.auth-divider{display:flex;align-items:center;gap:12px;color:#9aa5b2;font-size:10px;font-weight:700;letter-spacing:.1em;text-transform:uppercase;margin:14px 0 15px;max-width:420px;}
.auth-divider:before,.auth-divider:after{content:"";height:1px;background:#e3e8eb;flex:1;}
.auth-form{width:100%;max-width:640px;}
.auth-form .form-label{display:block;color:#34465b;font-size:11px;font-weight:700;margin:0 0 5px;}
.auth-form .form-label small{font-size:10px;color:#8290a0;font-weight:500;}
.auth-form .form-control,.auth-form .form-select{height:42px;min-height:42px;padding:8px 12px;border:1px solid #d8e0e6;border-radius:8px;background-color:#fff;color:#172f4c;font:500 13px 'DM Sans',sans-serif;box-shadow:none;}
.auth-form .form-control::placeholder{color:#a2acb7;font-weight:400;}
.auth-form .form-control:focus,.auth-form .form-select:focus{border-color:#b18a2b;box-shadow:0 0 0 3px rgba(201,154,21,.12);}
.auth-label-row{display:flex;align-items:center;justify-content:space-between;gap:12px;}
.auth-label-row a,.auth-switch a{color:#183c66;font-size:11px;font-weight:700;text-decoration:underline;text-underline-offset:3px;}
.auth-submit{height:44px;border:0;border-radius:8px;background:#102b4e;color:#fff;font:700 13px 'DM Sans',sans-serif;display:flex;align-items:center;justify-content:center;gap:10px;transition:background .18s,transform .18s;}
.auth-submit:hover,.auth-submit:focus{background:#234b73;color:#fff;transform:translateY(-1px);}
.auth-submit span{font-size:17px;line-height:1;}
.auth-switch{margin:17px 0 0;color:#738195;font-size:12px;}
.auth-switch a{font-size:12px;margin-left:3px;}
.auth-error{margin:10px 0 0;color:#b42318;font-size:12px;}
.auth-notice{padding:8px 11px;margin:0 0 12px;border-left:3px solid #2d8061;background:#edf7f1;color:#28624e;font-size:12px;}
.google-setup-placeholder{width:100%;min-height:40px;border:1px solid #d8e0e6;border-radius:8px;background:#fff;color:#566579;display:flex;align-items:center;justify-content:center;gap:9px;font:600 12px 'DM Sans',sans-serif;cursor:not-allowed;}
.google-setup-placeholder>span{font:800 16px Arial,sans-serif;color:#4285f4;}
.google-setup-placeholder small{font-size:10px;font-weight:500;color:#98a3af;}
.auth-aside{align-self:stretch;min-height:320px;display:flex;flex-direction:column;align-items:flex-start;justify-content:center;padding:26px 28px;border-left:1px solid #e2e5e5;background:linear-gradient(145deg,rgba(255,255,255,.42),rgba(239,237,226,.2));}
.auth-aside-mark{width:76px;height:76px;border-radius:50%;overflow:hidden;border:3px solid #fff;box-shadow:0 8px 25px rgba(16,43,78,.12);margin-bottom:23px;}
.auth-aside-mark img{width:100%;height:100%;object-fit:cover;display:block;}
.auth-aside-quote{max-width:220px;color:#183653;font:800 22px/1.3 'Manrope',sans-serif;letter-spacing:-.04em;margin:0 0 18px;}
.auth-aside>span{color:#8793a0;font-size:8px;font-weight:800;letter-spacing:.13em;}
.auth-stage-register{display:block;max-width:980px;min-height:0;padding:0 0 5px;}
.auth-content-register{max-width:920px;margin:0 auto;}
.auth-register-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:24px;}
.auth-register-heading .auth-subtitle{margin-bottom:0;}
.auth-register-google{width:250px;flex:none;}
.auth-register-google .g_id_signin{justify-content:flex-end;}
.auth-divider-register{max-width:none;margin:12px 0 13px;}
.auth-register-form{max-width:none;}
.auth-register-form .row{--bs-gutter-y:10px;}
.auth-home-fields{margin-top:9px;padding-top:10px;border-top:1px solid #e4e8e8;}
.auth-inline-note{color:#718096;font-size:10px;margin:0 0 1px;}
.auth-password-row{margin-top:10px;}
.auth-password-strength{margin-top:5px;}
.auth-password-strength .password-strength-track{height:3px;background:#e8edf0;border-radius:5px;overflow:hidden;}
.auth-password-strength .password-strength-track span{display:block;width:0;height:100%;background:#2c765f;transition:width .2s;}
.auth-password-strength p{margin:4px 0 0;color:#8a96a4;font-size:9px;line-height:1.2;}
.auth-register-page .auth-switch{margin-top:12px;}
.auth-register-page .auth-submit{height:42px;}
.auth-body .site-footer{padding-top:25px;}
@media(max-width:900px){
 .auth-body .page-frame{padding:20px 24px 30px;}
 .auth-stage{grid-template-columns:minmax(0,1fr) 220px;gap:28px;}
 .auth-aside{padding:20px;}
 .auth-stage-register{display:block;}
}
@media(max-width:700px){
 .auth-body .page-frame{margin-top:80px!important;padding:20px 18px 30px;}
 .auth-stage{display:block;min-height:0;max-width:520px;}
 .auth-aside{display:none;}
 .auth-title{font-size:32px;}
 .auth-register-heading{display:block;}
 .auth-register-google{width:100%;max-width:420px;margin-top:14px;}
 .auth-register-google .g_id_signin{justify-content:flex-start;}
 .auth-divider-register{margin:13px 0;}
 .auth-register-form .row{--bs-gutter-y:10px;}
 .auth-body .site-footer{padding-top:24px;}
}
@media(max-width:420px){
 .auth-body .page-frame{padding-left:15px;padding-right:15px;}
 .auth-title{font-size:29px;}
 .auth-form .form-control,.auth-form .form-select{height:41px;min-height:41px;}
 .google-setup-placeholder{flex-wrap:wrap;}
}
