/* ==========================================================================
   NRHH Provider Portal — styles
   Warm neutral palette; card-based layout; accessible contrast.
   ========================================================================== */

:root {
	/* Approved palette (coolors 2026-08-05): yellows + oranges with green.
	   f5fffa · f4c431 · f4a460 · 3eb489 · 4d5d53 · 009ae1 · 9f230a · 6c7c90 */
	--nrhh-bg:           #f5fffa;
	--nrhh-surface:      #ffffff;
	--nrhh-border:       #dde8e2;
	--nrhh-text:         #4d5d53;
	--nrhh-text-muted:   #6c7c90;
	--nrhh-primary:      #3eb489;
	--nrhh-primary-dark: #2e9a73;
	--nrhh-accent:       #f4c431;   /* yellow — featured card, highlights */
	--nrhh-accent-2:     #f4a460;   /* orange — secondary warm accent */
	--nrhh-accent-soft:  #fbf1cf;   /* soft yellow tint — active nav / fills */
	--nrhh-success:      #3eb489;
	--nrhh-danger:       #9f230a;
	--nrhh-info:         #009ae1;
	/* Delta indicators. */
	--nrhh-up:           #3eb489;
	--nrhh-down:         #9f230a;
	--nrhh-radius:       6px;
	--nrhh-radius-lg:    14px;
	--nrhh-shadow:       0 1px 4px rgba(45,58,52,.08);
	--nrhh-shadow-md:    0 4px 16px rgba(45,58,52,.10);
	--nrhh-shadow-lg:    0 12px 30px rgba(45,58,52,.12);
	--nrhh-max-width:    900px;
	--nrhh-sidebar-w:    248px;
	/* Icon-badge accents used across KPI cards (warm-dominant set). */
	--nrhh-c-orange:     #f4a460;
	--nrhh-c-yellow:     #f4c431;
	--nrhh-c-green:      #3eb489;
	--nrhh-c-blue:       #009ae1;
	/* Status (availability). */
	--nrhh-accepting:    #3eb489;
	--nrhh-waitlist:     #6c7c90;
	--nrhh-full:         #9f230a;
	--nrhh-gold:         #f4c431;
}

/* --------------------------------------------------------------------------
   Portal shell
   -------------------------------------------------------------------------- */

.nrhh-portal {
	background: var(--nrhh-bg);
	min-height: 100vh;
	font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	color: var(--nrhh-text);
}

/* --------------------------------------------------------------------------
   App shell — fixed left sidebar + lavender/cream content area
   (Justinmind "Project management dashboard" layout, warm palette.)
   -------------------------------------------------------------------------- */

.nrhh-portal--app {
	display: grid;
	grid-template-columns: var(--nrhh-sidebar-w) 1fr;
	align-items: stretch;
	min-height: 100vh;
}

/* Sidebar */
.nrhh-sidebar {
	background: var(--nrhh-surface);
	border-right: 1px solid var(--nrhh-border);
	display: flex;
	flex-direction: column;
	position: sticky;
	top: 0;
	align-self: start;
	height: 100vh;
	overflow-y: auto;
}
.nrhh-sidebar__brand {
	display: flex;
	align-items: center;
	gap: .6rem;
	padding: 1.1rem 1.25rem;
	background: linear-gradient(135deg, var(--nrhh-primary-dark), var(--nrhh-primary));
	color: #fff;
	font-weight: 800;
	font-size: 1.1rem;
	letter-spacing: -.01em;
}
.nrhh-sidebar__brand svg { width: 1.35rem; height: 1.35rem; flex: none; }
.nrhh-sidebar__brand-sub { display: block; font-size: .62rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; opacity: .8; margin-top: .1rem; }

/* Profile card */
.nrhh-sidebar__profile {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	gap: .1rem;
	padding: 1.35rem 1rem 1.15rem;
	border-bottom: 1px solid var(--nrhh-border);
}
.nrhh-sidebar__avatar {
	width: 4.25rem; height: 4.25rem; border-radius: 50%;
	display: flex; align-items: center; justify-content: center;
	font-weight: 800; font-size: 1.4rem; color: #fff;
	background: linear-gradient(135deg, var(--nrhh-primary), var(--nrhh-accent));
	box-shadow: 0 0 0 4px var(--nrhh-accent-soft);
	margin-bottom: .55rem;
}
.nrhh-sidebar__name { font-weight: 700; font-size: .95rem; color: var(--nrhh-text); line-height: 1.25; }
.nrhh-sidebar__role { font-size: .78rem; color: var(--nrhh-text-muted); }

/* Nav */
.nrhh-sidebar__nav { padding: .5rem .6rem 1.5rem; flex: 1; }
.nrhh-navgroup { margin-top: .9rem; }
.nrhh-navgroup__label {
	font-size: .66rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase;
	color: #b3a894; padding: 0 .75rem; margin-bottom: .3rem;
}
.nrhh-navlink {
	display: flex; align-items: center; gap: .7rem;
	padding: .55rem .75rem; margin: .1rem 0;
	border-radius: 9px;
	color: var(--nrhh-text-muted);
	text-decoration: none;
	font-size: .875rem; font-weight: 500;
	transition: background .13s, color .13s;
}
.nrhh-navlink svg { width: 1.15rem; height: 1.15rem; flex: none; opacity: .9; }
.nrhh-navlink:hover { background: var(--nrhh-bg); color: var(--nrhh-text); }
.nrhh-navlink--active {
	background: var(--nrhh-accent-soft);
	color: var(--nrhh-primary-dark);
	font-weight: 700;
}
.nrhh-navlink--active svg { opacity: 1; color: var(--nrhh-primary); }
.nrhh-navlink__badge {
	margin-left: auto; min-width: 1.2rem; height: 1.2rem; padding: 0 .35rem;
	border-radius: 99px; background: var(--nrhh-primary); color: #fff;
	font-size: .68rem; font-weight: 700; display: inline-flex; align-items: center; justify-content: center;
}

/* Main column */
.nrhh-main { min-width: 0; display: flex; flex-direction: column; }

/* Topbar */
.nrhh-topbar {
	display: flex; align-items: center; justify-content: space-between; gap: 1rem;
	padding: 1.1rem 1.75rem;
}
.nrhh-topbar__titles { min-width: 0; }
.nrhh-topbar__title { margin: 0; font-size: 1.5rem; font-weight: 800; color: var(--nrhh-primary); letter-spacing: -.02em; }
.nrhh-topbar__tag { font-size: .95rem; color: var(--nrhh-text-muted); }
.nrhh-topbar__actions { display: flex; align-items: center; gap: .35rem; flex: none; }
.nrhh-iconbtn {
	width: 2.4rem; height: 2.4rem; border-radius: 10px;
	display: inline-flex; align-items: center; justify-content: center;
	color: var(--nrhh-primary); background: transparent; border: 1px solid transparent;
	text-decoration: none; position: relative; transition: background .13s, border-color .13s;
}
.nrhh-iconbtn:hover { background: var(--nrhh-surface); border-color: var(--nrhh-border); }
.nrhh-iconbtn svg { width: 1.3rem; height: 1.3rem; }
.nrhh-iconbtn__dot { position: absolute; top: .5rem; right: .55rem; width: .5rem; height: .5rem; border-radius: 50%; background: var(--nrhh-danger); border: 2px solid var(--nrhh-bg); }

/* Content area */
.nrhh-portal-content {
	padding: .25rem 1.75rem 2.25rem;
	flex: 1;
}

/* Mobile: collapse sidebar to a top strip */
@media ( max-width: 900px ) {
	.nrhh-portal--app { grid-template-columns: 1fr; }
	.nrhh-sidebar { position: static; height: auto; flex-direction: column; }
	.nrhh-sidebar__nav { display: flex; flex-wrap: wrap; gap: .25rem; padding: .6rem .75rem; }
	.nrhh-navgroup { margin-top: 0; display: contents; }
	.nrhh-navgroup__label { display: none; }
	.nrhh-navlink { margin: 0; }
	.nrhh-navlink span:not(.nrhh-navlink__badge) { display: none; }
	.nrhh-sidebar__profile { flex-direction: row; gap: .75rem; text-align: left; padding: .85rem 1rem; }
	.nrhh-sidebar__avatar { width: 2.6rem; height: 2.6rem; font-size: 1rem; margin-bottom: 0; }
	.nrhh-topbar { padding: 1rem 1.15rem; }
	.nrhh-portal-content { padding: .25rem 1.15rem 2rem; }
}

/* --------------------------------------------------------------------------
   Login gate
   -------------------------------------------------------------------------- */

.nrhh-portal-login {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 3rem 1rem;
}
.nrhh-portal-login-card {
	background: var(--nrhh-surface);
	border: 1px solid var(--nrhh-border);
	border-radius: var(--nrhh-radius);
	box-shadow: var(--nrhh-shadow);
	padding: 2rem;
	width: 100%;
	max-width: 440px;
}
.nrhh-portal-login-title {
	margin: 0 0 .5rem;
	font-size: 1.5rem;
	color: var(--nrhh-primary);
}
.nrhh-portal-login-desc {
	margin: 0 0 1.5rem;
	color: var(--nrhh-text-muted);
	font-size: .9375rem;
}
.nrhh-portal-login-help {
	margin: 1.25rem 0 0;
	font-size: .8125rem;
	color: var(--nrhh-text-muted);
}

/* --------------------------------------------------------------------------
   Shared form elements
   -------------------------------------------------------------------------- */

.nrhh-field {
	margin-bottom: 1rem;
}
.nrhh-field label,
.nrhh-label {
	display: block;
	font-size: .82rem;
	font-weight: 700;
	letter-spacing: .02em;
	color: var(--nrhh-text);
	margin-bottom: .4rem;
}
.nrhh-label .req, .nrhh-field .req { color: var(--nrhh-danger); margin-left: .15rem; }
.nrhh-input,
.nrhh-select,
.nrhh-textarea {
	width: 100%;
	padding: .72rem .9rem;
	border: 1.5px solid var(--nrhh-border);
	border-radius: 9px;
	font-size: .95rem;
	line-height: 1.4;
	color: var(--nrhh-text);
	background: var(--nrhh-surface);
	box-sizing: border-box;
	transition: border-color .15s, box-shadow .15s;
	-webkit-appearance: none; appearance: none;
}
.nrhh-input::placeholder, .nrhh-textarea::placeholder { color: var(--nrhh-text-muted); opacity: .7; }
.nrhh-input:hover,
.nrhh-select:hover,
.nrhh-textarea:hover { border-color: #c3d3ca; }
.nrhh-textarea { min-height: 128px; resize: vertical; }
/* Custom caret for selects (GF-style). */
.nrhh-select {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%235f6d64' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right .9rem center;
	padding-right: 2.2rem;
}
.nrhh-input:focus,
.nrhh-select:focus,
.nrhh-textarea:focus {
	outline: none;
	border-color: var(--nrhh-primary);
	box-shadow: 0 0 0 3px rgba(46,154,115,.18);
}
/* Boxed form wrapper — any standalone plugin form gets the GF "card" look. */
.nrhh-form {
	background: var(--nrhh-surface);
	border: 1px solid var(--nrhh-border);
	border-radius: 14px;
	box-shadow: var(--nrhh-shadow);
	padding: 1.75rem;
}
.nrhh-form__grid { display: grid; grid-template-columns: repeat( auto-fit, minmax( 240px, 1fr ) ); gap: 1rem 1.25rem; }
.nrhh-form__full { grid-column: 1 / -1; }
.nrhh-form__actions { margin-top: 1.35rem; display: flex; flex-wrap: wrap; gap: .7rem; align-items: center; }
.nrhh-form__actions .nrhh-btn { padding: .8rem 1.6rem; font-size: .95rem; }
.nrhh-check { display: flex; align-items: flex-start; gap: .55rem; font-size: .9rem; font-weight: 500; color: var(--nrhh-text); cursor: pointer; }
.nrhh-check input[type=checkbox], .nrhh-check input[type=radio] { width: 1.05rem; height: 1.05rem; margin-top: .1rem; accent-color: var(--nrhh-primary); flex: none; }
.nrhh-form__note { margin: 0 0 1.1rem; font-size: .9rem; color: var(--nrhh-text-muted); line-height: 1.55; }
.nrhh-form__msg { border-radius: 9px; padding: .8rem 1rem; font-size: .9rem; margin-bottom: 1rem; }
.nrhh-form__msg--ok { background: #e7f6ef; color: var(--nrhh-primary-dark); border: 1px solid rgba(46,154,115,.3); }
.nrhh-form__msg--err { background: #fdecea; color: var(--nrhh-danger); border: 1px solid rgba(159,35,10,.3); }

/* Provider "My Homes" photo uploader. */
.nrhh-home-photo { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; }
.nrhh-home-photo__preview {
	width: 150px; height: 96px; border-radius: 10px; overflow: hidden; flex: none;
	background: var(--nrhh-bg); border: 1px solid var(--nrhh-border);
	display: flex; align-items: center; justify-content: center;
}
.nrhh-home-photo__preview img { width: 100%; height: 100%; object-fit: cover; }
.nrhh-home-photo__empty { font-size: .75rem; color: var(--nrhh-text-muted); }
.nrhh-home-photo__ctrls { display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; }
.nrhh-home-photo__status { font-size: .8rem; color: var(--nrhh-text-muted); }

/* --------------------------------------------------------------------------
   Housing intake form — GF-style defaults for its bare fieldset/inputs.
   (The template uses .nrhh-section / .nrhh-field with unclassed controls.)
   -------------------------------------------------------------------------- */
.nrhh-intake-wrap { max-width: 840px; margin: 0 auto; color: var(--nrhh-text); }
.nrhh-intake-wrap .nrhh-section { border: 0; margin: 0 0 1.85rem; padding: 0; }
.nrhh-intake-wrap .nrhh-section > legend {
	float: none; width: 100%; font-size: 1.05rem; font-weight: 700; color: var(--nrhh-primary-dark);
	padding: 0 0 .55rem; margin-bottom: 1.1rem; border-bottom: 2px solid var(--nrhh-border);
}
.nrhh-intake-wrap .nrhh-field { margin-bottom: 1.05rem; }
.nrhh-intake-wrap .nrhh-field > label:not(:has(input)) {
	display: block; font-size: .82rem; font-weight: 700; margin-bottom: .4rem; color: var(--nrhh-text);
}
.nrhh-intake-wrap .nrhh-field > label span[aria-hidden] { color: var(--nrhh-danger); }
.nrhh-intake-wrap input[type=text],
.nrhh-intake-wrap input[type=email],
.nrhh-intake-wrap input[type=tel],
.nrhh-intake-wrap input[type=date],
.nrhh-intake-wrap input[type=number],
.nrhh-intake-wrap input[type=url],
.nrhh-intake-wrap select,
.nrhh-intake-wrap textarea {
	width: 100%; padding: .72rem .9rem; border: 1.5px solid var(--nrhh-border); border-radius: 9px;
	font-size: .95rem; line-height: 1.4; color: var(--nrhh-text); background: var(--nrhh-surface);
	box-sizing: border-box; -webkit-appearance: none; appearance: none; transition: border-color .15s, box-shadow .15s;
}
.nrhh-intake-wrap select {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%235f6d64' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
	background-repeat: no-repeat; background-position: right .9rem center; padding-right: 2.2rem;
}
.nrhh-intake-wrap textarea { min-height: 120px; resize: vertical; }
.nrhh-intake-wrap input:focus, .nrhh-intake-wrap select:focus, .nrhh-intake-wrap textarea:focus {
	outline: none; border-color: var(--nrhh-primary); box-shadow: 0 0 0 3px rgba(46,154,115,.18);
}
.nrhh-intake-wrap .nrhh-hint, .nrhh-intake-wrap .description {
	display: block; margin: .35rem 0 0; font-size: .8rem; color: var(--nrhh-text-muted); line-height: 1.5;
}
/* Radio / checkbox rows stay inline and comfortable. */
.nrhh-intake-wrap .nrhh-radio-group, .nrhh-intake-wrap .nrhh-checkbox-group {
	display: flex; flex-wrap: wrap; gap: .6rem 1.4rem; margin: .1rem 0 .5rem;
}
.nrhh-intake-wrap label:has(> input[type=checkbox]),
.nrhh-intake-wrap label:has(> input[type=radio]) {
	display: inline-flex; align-items: center; gap: .45rem; font-size: .9rem; font-weight: 500;
	color: var(--nrhh-text); cursor: pointer; margin: 0;
}
.nrhh-intake-wrap input[type=checkbox], .nrhh-intake-wrap input[type=radio] {
	width: 1.05rem; height: 1.05rem; margin: 0; accent-color: var(--nrhh-primary); flex: none;
	-webkit-appearance: auto; appearance: auto;
}
/* Submit button → primary button look. */
.nrhh-intake-wrap button[type=submit], .nrhh-intake-wrap input[type=submit], .nrhh-intake-wrap .nrhh-intake-submit {
	display: inline-block; background: var(--nrhh-primary); color: #fff; border: 0; border-radius: 999px;
	padding: .85rem 1.9rem; font-size: .95rem; font-weight: 600; cursor: pointer; margin-top: .4rem; transition: background .15s;
}
.nrhh-intake-wrap button[type=submit]:hover, .nrhh-intake-wrap input[type=submit]:hover { background: var(--nrhh-primary-dark); color: #fff; }

.nrhh-field-hint {
	margin: .4rem 0 0;
	font-size: .8125rem;
	line-height: 1.45;
	color: var(--nrhh-text-muted);
}

/* Availability is the highest-signal field a provider edits — give it emphasis. */
.nrhh-field--availability {
	padding: 1rem;
	margin-bottom: 1.25rem;
	background: rgba(244,164,96,.10);
	border: 1px solid var(--nrhh-accent);
	border-radius: var(--nrhh-radius);
}
.nrhh-field--availability .nrhh-label {
	color: var(--nrhh-primary-dark);
}

/* Non-PII "returning client" badge on referral cards. */
.nrhh-badge {
	display: inline-block;
	font-size: .6875rem;
	font-weight: 600;
	letter-spacing: .02em;
	text-transform: uppercase;
	padding: .1rem .45rem;
	border-radius: 99px;
	vertical-align: middle;
}
.nrhh-badge--returning {
	margin-left: .4rem;
	color: var(--nrhh-primary-dark);
	background: rgba(244,164,96,.22);
	border: 1px solid var(--nrhh-accent);
}

/* Forward-to-provider inline form on a referral card. */
.nrhh-forward-form {
	margin-top: .75rem;
	padding: .875rem;
	background: var(--nrhh-bg);
	border: 1px solid var(--nrhh-border);
	border-radius: var(--nrhh-radius);
}
.nrhh-forward-actions {
	display: flex;
	gap: .5rem;
	margin-top: .625rem;
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.nrhh-btn {
	display: inline-block;
	padding: .5rem 1.125rem;
	border-radius: var(--nrhh-radius);
	font-size: .9375rem;
	font-weight: 500;
	cursor: pointer;
	border: 1px solid transparent;
	text-decoration: none;
	transition: background .15s, color .15s;
}
.nrhh-btn:disabled { opacity: .55; cursor: not-allowed; }

.nrhh-btn-primary {
	background: var(--nrhh-primary);
	color: #fff;
}
.nrhh-btn-primary:hover:not(:disabled) { background: var(--nrhh-primary-dark); color: #fff; }
.nrhh-btn:hover, .nrhh-btn:focus { text-decoration: none; }

.nrhh-btn-secondary {
	background: transparent;
	color: var(--nrhh-primary);
	border-color: var(--nrhh-primary);
}
.nrhh-btn-secondary:hover:not(:disabled) {
	background: var(--nrhh-primary);
	color: #fff;
}

.nrhh-btn-danger {
	background: var(--nrhh-danger);
	color: #fff;
}
.nrhh-btn-danger:hover:not(:disabled) { filter: brightness(.9); color: #fff; }

.nrhh-btn-ghost {
	background: transparent;
	color: var(--nrhh-text-muted);
	border-color: var(--nrhh-border);
}
.nrhh-btn-ghost:hover:not(:disabled) { background: var(--nrhh-bg); color: var(--nrhh-text); }

/* --------------------------------------------------------------------------
   Status messages
   -------------------------------------------------------------------------- */

.nrhh-message {
	padding: .625rem .875rem;
	border-radius: var(--nrhh-radius);
	font-size: .875rem;
	margin-top: .75rem;
}
.nrhh-message--success {
	background: #edf7ee;
	color: var(--nrhh-success);
	border: 1px solid #c3e6c8;
}
.nrhh-message--error {
	background: #fdf1f1;
	color: var(--nrhh-danger);
	border: 1px solid #f5c6c6;
}

/* --------------------------------------------------------------------------
   Dashboard KPIs
   -------------------------------------------------------------------------- */

.nrhh-tab-title {
	margin: 0 0 1.25rem;
	font-size: 1.25rem;
}
.nrhh-kpi-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
	gap: 1rem;
}
.nrhh-kpi-card {
	background: var(--nrhh-surface);
	border: 1px solid var(--nrhh-border);
	border-radius: var(--nrhh-radius);
	box-shadow: var(--nrhh-shadow);
	padding: 1.25rem 1rem;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	gap: .25rem;
}
.nrhh-kpi-value {
	font-size: 2rem;
	font-weight: 700;
	color: var(--nrhh-primary);
	line-height: 1;
}
.nrhh-kpi-label {
	font-size: .8125rem;
	color: var(--nrhh-text-muted);
}
.nrhh-kpi-link {
	font-size: .8125rem;
	color: var(--nrhh-primary);
	text-decoration: none;
	margin-top: .25rem;
}
.nrhh-kpi-link:hover { text-decoration: underline; }
.nrhh-kpi-card--notifications .nrhh-kpi-value { color: var(--nrhh-accent); }

/* ==========================================================================
   Dashboard design system — polished SaaS look (stat cards + panels + feed)
   Applied to the provider + CHW portal landing views.
   ========================================================================== */

.nrhh-dash { display: flex; flex-direction: column; gap: 1.5rem; }

/* Greeting header */
.nrhh-dash-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.nrhh-dash-greeting { margin: 0; font-size: 1.5rem; font-weight: 700; color: var(--nrhh-text); letter-spacing: -.01em; }
.nrhh-dash-sub { margin: .25rem 0 0; color: var(--nrhh-text-muted); font-size: .9375rem; }

/* Availability pill in the header */
.nrhh-avail-pill { display: inline-flex; align-items: center; gap: .45rem; padding: .4rem .85rem; border-radius: 99px; font-size: .8125rem; font-weight: 600; border: 1px solid transparent; }
.nrhh-avail-pill .dot { width: .55rem; height: .55rem; border-radius: 50%; background: currentColor; }
.nrhh-avail-pill--accepting { color: var(--nrhh-accepting); background: rgba(0,154,225,.12); border-color: rgba(0,154,225,.32); }
.nrhh-avail-pill--waitlist  { color: var(--nrhh-waitlist); background: rgba(108,124,144,.14); border-color: rgba(108,124,144,.40); }
.nrhh-avail-pill--full      { color: var(--nrhh-full); background: rgba(159,35,10,.10); border-color: rgba(159,35,10,.30); }
.nrhh-avail-pill--unknown   { color: #7c8894; background: rgba(124,136,148,.10); border-color: var(--nrhh-border); }

/* Stat-card row */
.nrhh-stat-row {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
	gap: 1rem;
}
.nrhh-stat {
	position: relative;
	background: var(--nrhh-surface);
	border: 1px solid var(--nrhh-border);
	border-radius: 12px;
	box-shadow: var(--nrhh-shadow);
	padding: 1.15rem 1.15rem 1rem;
	display: flex;
	flex-direction: column;
	gap: .35rem;
	text-decoration: none;
	transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease;
}
a.nrhh-stat:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(0,0,0,.10); border-color: var(--nrhh-accent); }
.nrhh-stat-icon {
	width: 2.5rem; height: 2.5rem; border-radius: 10px;
	display: flex; align-items: center; justify-content: center;
	background: rgba(62,180,137,.10); color: var(--nrhh-primary);
	margin-bottom: .35rem;
}
.nrhh-stat-icon svg { width: 1.35rem; height: 1.35rem; }
.nrhh-stat-value { font-size: 2rem; font-weight: 700; line-height: 1; color: var(--nrhh-text); }
.nrhh-stat-label { font-size: .8125rem; color: var(--nrhh-text-muted); font-weight: 500; }
.nrhh-stat--accent .nrhh-stat-icon { background: rgba(244,164,96,.18); color: #b07d10; }
.nrhh-stat--accent .nrhh-stat-value { color: #b07d10; }
.nrhh-stat-cta { margin-top: .15rem; font-size: .75rem; font-weight: 600; color: var(--nrhh-primary); opacity: .85; }

/* Panel grid + panel component */
.nrhh-panel-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 1.25rem; align-items: start; }
.nrhh-panel {
	background: var(--nrhh-surface);
	border: 1px solid var(--nrhh-border);
	border-radius: 12px;
	box-shadow: var(--nrhh-shadow);
	overflow: hidden;
}
.nrhh-panel-head {
	display: flex; align-items: center; justify-content: space-between;
	padding: 1rem 1.15rem; border-bottom: 1px solid var(--nrhh-border);
}
.nrhh-panel-title { margin: 0; font-size: 1rem; font-weight: 700; color: var(--nrhh-text); }
.nrhh-panel-action { font-size: .8125rem; font-weight: 600; color: var(--nrhh-primary); text-decoration: none; }
.nrhh-panel-action:hover { text-decoration: underline; }
.nrhh-panel-body { padding: .5rem 1.15rem 1rem; }
.nrhh-panel-body--flush { padding: 0; }

/* List rows inside a panel */
.nrhh-listrow { display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding: .8rem 1.15rem; border-bottom: 1px solid var(--nrhh-border); }
.nrhh-listrow:last-child { border-bottom: 0; }
.nrhh-listrow__main { display: flex; flex-direction: column; gap: .15rem; min-width: 0; }
.nrhh-listrow__name { font-weight: 600; color: var(--nrhh-text); font-size: .9375rem; }
.nrhh-listrow__meta { font-size: .78rem; color: var(--nrhh-text-muted); }

/* Activity feed */
.nrhh-feed { list-style: none; margin: 0; padding: .25rem 0; }
.nrhh-feed li { display: flex; gap: .7rem; padding: .55rem 1.15rem; align-items: flex-start; }
.nrhh-feed .fdot { flex: 0 0 auto; width: .55rem; height: .55rem; border-radius: 50%; margin-top: .4rem; background: var(--nrhh-accent); }
.nrhh-feed .ftext { font-size: .85rem; color: var(--nrhh-text); }
.nrhh-feed .ftime { font-size: .72rem; color: var(--nrhh-text-muted); }

.nrhh-panel-empty { padding: 1.5rem 1.15rem; color: var(--nrhh-text-muted); font-size: .875rem; text-align: center; }

@media ( max-width: 720px ) {
	.nrhh-panel-grid { grid-template-columns: 1fr; }
}

/* Dark mode */
@media ( prefers-color-scheme: dark ) and ( min-width: 100000px ) {
	.nrhh-dash-greeting, .nrhh-stat-value, .nrhh-listrow__name, .nrhh-panel-title, .nrhh-feed .ftext { color: #f0ece7; }
	.nrhh-stat, .nrhh-panel { background: #262220; border-color: #3a352f; }
	.nrhh-stat-icon { background: rgba(244,164,96,.14); color: var(--nrhh-accent); }
}

/* ==========================================================================
   Justinmind "Project management dashboard" — KPI row, panels, chart, donut
   ========================================================================== */

/* KPI card row */
.nrhh-kpirow {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 1.15rem;
	margin-bottom: 1.35rem;
}
.nrhh-kpi {
	position: relative;
	background: var(--nrhh-surface);
	border: 1px solid var(--nrhh-border);
	border-radius: var(--nrhh-radius-lg);
	box-shadow: var(--nrhh-shadow);
	padding: 1.25rem 1.25rem 1.1rem;
	display: flex;
	flex-direction: column;
	gap: .35rem;
	min-width: 0;
	text-decoration: none;
	transition: transform .12s ease, box-shadow .12s ease;
}
a.nrhh-kpi:hover { transform: translateY(-2px); box-shadow: var(--nrhh-shadow-md); }
.nrhh-kpi__label {
	font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
	color: var(--nrhh-text-muted);
}
.nrhh-kpi__value { font-size: 1.7rem; font-weight: 800; color: var(--nrhh-text); line-height: 1.05; letter-spacing: -.01em; }
.nrhh-kpi__sub { font-size: .78rem; color: var(--nrhh-text-muted); }
.nrhh-kpi__badge {
	position: absolute; top: 1.1rem; right: 1.1rem;
	width: 2.75rem; height: 2.75rem; border-radius: 50%;
	display: flex; align-items: center; justify-content: center; color: #fff;
}
.nrhh-kpi__badge svg { width: 1.35rem; height: 1.35rem; }
.nrhh-kpi__badge--orange { background: var(--nrhh-c-orange); }
.nrhh-kpi__badge--yellow { background: var(--nrhh-c-yellow); color: #7a5b00; }
.nrhh-kpi__badge--green  { background: var(--nrhh-c-green); }
.nrhh-kpi__badge--blue   { background: var(--nrhh-c-blue); }
/* Delta chip */
.nrhh-kpi__delta { display: inline-flex; align-items: center; gap: .3rem; font-size: .8rem; font-weight: 600; }
.nrhh-kpi__delta svg { width: .85rem; height: .85rem; }
.nrhh-kpi__delta--up   { color: var(--nrhh-up); }
.nrhh-kpi__delta--down { color: var(--nrhh-down); }
.nrhh-kpi__delta span { color: var(--nrhh-text-muted); font-weight: 500; }
/* Featured (yellow) card */
.nrhh-kpi--featured {
	background: linear-gradient(135deg, #fbe9a6, var(--nrhh-accent));
	border-color: #ecc23a;
}
.nrhh-kpi--featured .nrhh-kpi__label,
.nrhh-kpi--featured .nrhh-kpi__sub { color: #806000; }
.nrhh-kpi--featured .nrhh-kpi__value { color: #5c4600; }

/* Dashboard content grids */
.nrhh-dashgrid { display: grid; grid-template-columns: 2fr 1fr; gap: 1.15rem; align-items: stretch; margin-bottom: 1.35rem; }
.nrhh-dashgrid--bottom { grid-template-columns: 1fr 2fr; }

/* Generic panel card (rounded-lg, header + body) */
.nrhh-card2 {
	background: var(--nrhh-surface);
	border: 1px solid var(--nrhh-border);
	border-radius: var(--nrhh-radius-lg);
	box-shadow: var(--nrhh-shadow);
	padding: 1.25rem 1.35rem 1.35rem;
	display: flex; flex-direction: column; min-width: 0;
}
.nrhh-card2__head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.nrhh-card2__title { margin: 0; font-size: 1.02rem; font-weight: 700; color: var(--nrhh-primary-dark); }
.nrhh-card2__meta { font-size: .8rem; color: var(--nrhh-text-muted); font-weight: 600; }
.nrhh-card2__action {
	font-size: .72rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
	color: var(--nrhh-primary-dark); text-decoration: none;
	border: 1.5px solid var(--nrhh-primary); border-radius: 8px; padding: .45rem .85rem;
	transition: background .13s, color .13s;
}
.nrhh-card2__action:hover { background: var(--nrhh-primary); color: #fff; }

/* Area + stem chart (inline SVG) */
.nrhh-chart { width: 100%; height: auto; display: block; }
.nrhh-chart__grid line { stroke: var(--nrhh-border); stroke-width: 1; }
.nrhh-chart__area { fill: url(#nrhhArea); }
.nrhh-chart__stem { stroke: var(--nrhh-primary); stroke-width: 2; }
.nrhh-chart__dot  { fill: var(--nrhh-primary); }
.nrhh-chart__axis { fill: var(--nrhh-text-muted); font-size: 11px; }

/* Donut + device legend */
.nrhh-donut-wrap { display: flex; flex-direction: column; align-items: center; gap: 1.1rem; }
.nrhh-donut { width: 190px; height: 190px; }
.nrhh-donut__track { fill: none; stroke: var(--nrhh-bg); stroke-width: 16; }
.nrhh-donut__seg { fill: none; stroke-width: 16; stroke-linecap: butt; }
.nrhh-legend { display: flex; justify-content: space-around; width: 100%; gap: .5rem; }
.nrhh-legend__item { display: flex; flex-direction: column; align-items: center; gap: .4rem; }
.nrhh-legend__item svg { width: 1.5rem; height: 1.5rem; color: var(--nrhh-text-muted); }
.nrhh-legend__pct { font-weight: 800; font-size: 1.05rem; }

/* Orders-style table */
.nrhh-otable { width: 100%; border-collapse: collapse; font-size: .9rem; }
.nrhh-otable th {
	text-align: left; padding: .7rem .5rem; color: var(--nrhh-text-muted);
	font-size: .72rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
	border-bottom: 1px solid var(--nrhh-border);
}
.nrhh-otable td { padding: .85rem .5rem; border-bottom: 1px solid var(--nrhh-border); color: var(--nrhh-text); }
.nrhh-otable tr:last-child td { border-bottom: 0; }
.nrhh-otable tr:hover td { background: var(--nrhh-bg); }
.nrhh-otable__name { font-weight: 600; }
.nrhh-otable__actions { display: flex; gap: .5rem; justify-content: flex-end; }
.nrhh-otable__ic {
	width: 1.9rem; height: 1.9rem; border-radius: 8px; border: 0; background: transparent;
	display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
	color: var(--nrhh-text-muted); text-decoration: none; transition: background .12s, color .12s;
}
.nrhh-otable__ic:hover { background: var(--nrhh-accent-soft); color: var(--nrhh-primary-dark); }
.nrhh-otable__ic svg { width: 1.05rem; height: 1.05rem; }

/* Status pill (table) */
.nrhh-pill { display: inline-flex; align-items: center; gap: .4rem; font-size: .8rem; font-weight: 600; }
.nrhh-pill::before { content: ""; width: .5rem; height: .5rem; border-radius: 50%; background: currentColor; }
.nrhh-pill--ok    { color: var(--nrhh-success); }
.nrhh-pill--wait  { color: #b98a2e; }
.nrhh-pill--alert { color: var(--nrhh-danger); }
.nrhh-pill--info  { color: var(--nrhh-info); }

/* Mini list card (last product / recent) */
.nrhh-minilist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.nrhh-minilist li { display: flex; align-items: center; gap: .8rem; padding: .7rem 0; border-bottom: 1px solid var(--nrhh-border); }
.nrhh-minilist li:last-child { border-bottom: 0; }
.nrhh-minilist__ic {
	width: 2.4rem; height: 2.4rem; border-radius: 10px; flex: none;
	display: flex; align-items: center; justify-content: center;
	background: var(--nrhh-accent-soft); color: var(--nrhh-primary-dark);
}
.nrhh-minilist__ic svg { width: 1.2rem; height: 1.2rem; }
.nrhh-minilist__name { font-weight: 600; font-size: .9rem; color: var(--nrhh-text); }
.nrhh-minilist__meta { font-size: .76rem; color: var(--nrhh-text-muted); }

@media ( max-width: 1080px ) {
	.nrhh-kpirow { grid-template-columns: repeat(2, 1fr); }
	.nrhh-dashgrid, .nrhh-dashgrid--bottom { grid-template-columns: 1fr; }
}
@media ( max-width: 560px ) {
	.nrhh-kpirow { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Client-history access — cell buttons + modal
   ========================================================================== */

.nrhh-history-cell { white-space: nowrap; }
.nrhh-history-pending { font-size: .8125rem; color: #b07d10; font-weight: 600; }

/* My Homes tab */
.nrhh-home-list { display: flex; flex-direction: column; gap: 1rem; margin-top: 1.25rem; }
.nrhh-home-item__summary { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.nrhh-home-item__summary > div:first-child { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: .15rem; }
.nrhh-home-item__actions { display: flex; gap: .4rem; margin-left: auto; }
.nrhh-home-form { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--nrhh-border); }
#nrhh-home-add-form { margin-bottom: 1.25rem; }

.nrhh-history-modal { position: fixed; inset: 0; z-index: 99999; display: flex; align-items: center; justify-content: center; padding: 1rem; }
.nrhh-history-modal[hidden] { display: none; }
.nrhh-history-backdrop { position: absolute; inset: 0; background: rgba(30,24,20,.55); }
.nrhh-history-dialog {
	position: relative;
	width: min(560px, 100%);
	max-height: 85vh;
	overflow: auto;
	background: var(--nrhh-surface);
	border-radius: 14px;
	box-shadow: 0 20px 60px rgba(0,0,0,.35);
}
.nrhh-history-modal-head {
	display: flex; align-items: center; justify-content: space-between;
	padding: 1rem 1.25rem; border-bottom: 1px solid var(--nrhh-border);
	position: sticky; top: 0; background: var(--nrhh-surface);
}
.nrhh-history-modal-title { margin: 0; font-size: 1.05rem; font-weight: 700; color: var(--nrhh-text); }
.nrhh-history-x { border: 0; background: none; font-size: 1.6rem; line-height: 1; cursor: pointer; color: var(--nrhh-text-muted); padding: 0 .25rem; }
.nrhh-history-modal-body { padding: 1.15rem 1.25rem 1.35rem; }
.nrhh-history-modal-actions { display: flex; gap: .5rem; margin-top: .9rem; }

.nrhh-history-h { margin: 1.1rem 0 .5rem; font-size: .8125rem; text-transform: uppercase; letter-spacing: .04em; color: var(--nrhh-text-muted); }
.nrhh-history-h:first-child { margin-top: 0; }
.nrhh-history-field { display: flex; justify-content: space-between; gap: 1rem; padding: .35rem 0; border-bottom: 1px dashed var(--nrhh-border); }
.nrhh-history-field-label { color: var(--nrhh-text-muted); font-size: .875rem; }
.nrhh-history-field-value { font-weight: 600; color: var(--nrhh-text); font-size: .9375rem; text-align: right; }
.nrhh-history-list { margin: 0; padding-left: 1.1rem; }
.nrhh-history-list li { font-size: .875rem; color: var(--nrhh-text); padding: .2rem 0; }
.nrhh-history-empty { color: var(--nrhh-text-muted); font-size: .875rem; margin: .25rem 0; }

@media ( prefers-color-scheme: dark ) and ( min-width: 100000px ) {
	.nrhh-history-dialog, .nrhh-history-modal-head { background: #262220; }
	.nrhh-history-modal-title, .nrhh-history-field-value, .nrhh-history-list li { color: #f0ece7; }
}

/* --------------------------------------------------------------------------
   Tables
   -------------------------------------------------------------------------- */

.nrhh-table {
	width: 100%;
	border-collapse: collapse;
	font-size: .9375rem;
}
.nrhh-table th {
	text-align: left;
	padding: .625rem .875rem;
	border-bottom: 2px solid var(--nrhh-border);
	font-size: .8125rem;
	color: var(--nrhh-text-muted);
	text-transform: uppercase;
	letter-spacing: .03em;
}
.nrhh-table td {
	padding: .625rem .875rem;
	border-bottom: 1px solid var(--nrhh-border);
}
.nrhh-table tr:last-child td { border-bottom: 0; }

.nrhh-badge {
	display: inline-block;
	padding: .2rem .6rem;
	border-radius: 999px;
	font-size: .75rem;
	font-weight: 600;
}
.nrhh-badge--scheduled { background: #dbeafe; color: #1e40af; }
.nrhh-badge--housed    { background: #dcfce7; color: #166534; }
.nrhh-badge--waitlisted{ background: #fef9c3; color: #854d0e; }

/* --------------------------------------------------------------------------
   Referral cards
   -------------------------------------------------------------------------- */

.nrhh-referral-list { display: flex; flex-direction: column; gap: 1rem; }
.nrhh-referral-card {
	background: var(--nrhh-surface);
	border: 1px solid var(--nrhh-border);
	border-radius: var(--nrhh-radius);
	box-shadow: var(--nrhh-shadow);
	padding: 1.125rem 1.25rem;
}
.nrhh-referral-meta {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	margin-bottom: .875rem;
}
.nrhh-referral-client { font-weight: 600; }
.nrhh-referral-date   { font-size: .8125rem; color: var(--nrhh-text-muted); }
.nrhh-referral-actions { display: flex; gap: .625rem; }
.nrhh-decline-form {
	margin-top: 1rem;
	padding-top: 1rem;
	border-top: 1px solid var(--nrhh-border);
	display: flex;
	flex-direction: column;
	gap: .75rem;
}
.nrhh-decline-actions { display: flex; gap: .625rem; }

/* --------------------------------------------------------------------------
   Notifications tab
   -------------------------------------------------------------------------- */

.nrhh-card {
	background: var(--nrhh-surface);
	border: 1px solid var(--nrhh-border);
	border-radius: var(--nrhh-radius);
	box-shadow: var(--nrhh-shadow);
	padding: 1.25rem;
	margin-bottom: 1.5rem;
}
.nrhh-card-title { margin: 0 0 1rem; font-size: 1rem; }

.nrhh-event-list {
	list-style: none;
	margin: 0;
	padding: 0;
}
.nrhh-event-item {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: .625rem 0;
	border-bottom: 1px solid var(--nrhh-border);
	font-size: .9375rem;
}
.nrhh-event-item:last-child { border-bottom: 0; }
.nrhh-event-time { font-size: .8125rem; color: var(--nrhh-text-muted); }

/* --------------------------------------------------------------------------
   Screening form (inside referral card after accept)
   -------------------------------------------------------------------------- */

.nrhh-screening-form {
	margin-top: 1rem;
	padding-top: 1rem;
	border-top: 2px solid var(--nrhh-accent);
}
.nrhh-screening-form-title {
	margin: 0 0 1rem;
	font-size: 1rem;
	color: var(--nrhh-primary);
}
.nrhh-checkbox-group {
	display: flex;
	flex-direction: column;
	gap: .4rem;
	margin-top: .25rem;
}
.nrhh-checkbox-label {
	display: flex;
	align-items: center;
	gap: .4rem;
	font-size: .9375rem;
	cursor: pointer;
}
.nrhh-screening-actions { margin-top: .75rem; }

/* Screening cards on the Screenings tab */
.nrhh-screening-list { display: flex; flex-direction: column; gap: 1rem; }
.nrhh-screening-card {
	background: var(--nrhh-surface);
	border: 1px solid var(--nrhh-border);
	border-radius: var(--nrhh-radius);
	box-shadow: var(--nrhh-shadow);
	padding: 1rem 1.25rem;
}
.nrhh-screening-card-header {
	display: flex;
	align-items: center;
	gap: .75rem;
	margin-bottom: .875rem;
	flex-wrap: wrap;
}
.nrhh-screening-update {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	gap: .625rem;
}
.nrhh-screening-update .nrhh-label { width: 100%; }
.nrhh-unhoused-reason-wrap { width: 100%; display: flex; flex-direction: column; gap: .5rem; }

.nrhh-badge--completed          { background: #e0f2fe; color: #0369a1; }
.nrhh-badge--approved           { background: #dcfce7; color: #166534; }
.nrhh-badge--housed             { background: #dcfce7; color: #166534; }
.nrhh-badge--completed_unhoused { background: #fef2f2; color: #991b1b; }

/* --------------------------------------------------------------------------
   Placeholder
   -------------------------------------------------------------------------- */

.nrhh-tab-placeholder .nrhh-placeholder-msg {
	color: var(--nrhh-text-muted);
	font-style: italic;
}

/* --------------------------------------------------------------------------
   Empty state
   -------------------------------------------------------------------------- */

.nrhh-empty {
	color: var(--nrhh-text-muted);
	font-style: italic;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

/* --------------------------------------------------------------------------
   Profile editor
   -------------------------------------------------------------------------- */

.nrhh-field-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1rem;
}
.nrhh-field--checkboxes { display: flex; flex-direction: column; gap: .4rem; justify-content: flex-end; }
.nrhh-field--action { display: flex; align-items: flex-end; gap: .5rem; }

/* --------------------------------------------------------------------------
   Public directory
   -------------------------------------------------------------------------- */

/* Directory — layout based on the CaseSteward Staff Directory, warm palette. */
.nrhh-directory {
	max-width: 1120px;
	margin: 0 auto;
	padding: 1.5rem 1rem 2.5rem;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* Accented hero headline. */
.nrhh-directory__header { margin-bottom: 1.5rem; }
.nrhh-headline {
	margin: 0;
	font-size: clamp( 1.9rem, 4vw, 2.75rem );
	font-weight: 800;
	letter-spacing: .06em;
	line-height: 1.05;
	color: var(--nrhh-primary-dark);
	text-transform: uppercase;
}
.nrhh-headline .nrhh-accent { color: var(--nrhh-accent); }
.nrhh-directory__lede { margin: .6rem 0 0; color: var(--nrhh-text-muted); font-size: 1rem; max-width: 46ch; }

/* Filter bar. */
.nrhh-directory__filters {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
	align-items: flex-end;
	background: var(--nrhh-surface);
	border: 1px solid var(--nrhh-border);
	border-radius: 12px;
	box-shadow: var(--nrhh-shadow);
	padding: 1.1rem 1.25rem;
	margin-bottom: 1.25rem;
}
.nrhh-directory__filters .nrhh-field { flex: 1 1 180px; min-width: 150px; margin-bottom: 0; }
.nrhh-directory__filters .nrhh-field--checkboxes { display: flex; flex-direction: column; gap: .4rem; justify-content: flex-end; }
.nrhh-directory__filters .nrhh-field--actions { flex: 0 0 auto; display: flex; gap: .5rem; }

.nrhh-directory__status { color: var(--nrhh-text-muted); font-size: .8125rem; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; margin: 0 0 1rem .15rem; }

/* Responsive card grid. */
.nrhh-directory__grid { display: grid; gap: 1.15rem; grid-template-columns: repeat( auto-fill, minmax( 300px, 1fr ) ); }
.nrhh-cols-2 { grid-template-columns: repeat( auto-fill, minmax( 360px, 1fr ) ); }
.nrhh-cols-4 { grid-template-columns: repeat( auto-fill, minmax( 250px, 1fr ) ); }

/* Provider card — initials avatar + headings + chips. */
.nrhh-provider-card {
	background: var(--nrhh-surface);
	border: 1px solid var(--nrhh-border);
	border-radius: 14px;
	box-shadow: var(--nrhh-shadow);
	padding: 1.25rem;
	display: flex;
	flex-direction: column;
	gap: .8rem;
	transition: transform .13s ease, box-shadow .13s ease, border-color .13s ease;
}
.nrhh-provider-card:hover { transform: translateY(-3px); box-shadow: 0 10px 26px rgba(45,58,52,.14); border-color: var(--nrhh-gold); }
.nrhh-provider-card__top { display: flex; gap: .85rem; align-items: center; }
.nrhh-provider-card__avatar {
	flex: 0 0 auto;
	width: 3rem; height: 3rem; border-radius: 50%;
	display: flex; align-items: center; justify-content: center;
	font-weight: 800; font-size: 1.05rem; letter-spacing: .02em;
	color: #fff;
	background: linear-gradient( 135deg, var(--nrhh-primary), var(--nrhh-primary-dark) );
	box-shadow: inset 0 0 0 3px rgba(244,196,49,.6);
}
.nrhh-provider-card__headings { min-width: 0; }
.nrhh-provider-card__name { margin: 0; font-size: 1.05rem; font-weight: 700; color: var(--nrhh-text); line-height: 1.2; }
.nrhh-provider-card__type { margin: .15rem 0 0; font-size: .8125rem; font-weight: 600; color: var(--nrhh-primary); }
.nrhh-provider-card__meta { margin: .1rem 0 0; font-size: .8125rem; color: var(--nrhh-text-muted); }
.nrhh-provider-card__desc { margin: 0; font-size: .875rem; color: var(--nrhh-text-muted); line-height: 1.5; }

.nrhh-provider-card__tags { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem; }
.nrhh-tag {
	font-size: .72rem; font-weight: 600; letter-spacing: .01em;
	padding: .2rem .55rem; border-radius: 99px;
	color: #6f5300;
	background: rgba(244,196,49,.18);
	border: 1px solid rgba(244,196,49,.5);
}
.nrhh-provider-card__cta { align-self: flex-start; margin-top: .1rem; }

.nrhh-provider-card__name a { color: inherit; text-decoration: none; }
.nrhh-provider-card__name a:hover { color: var(--nrhh-primary); text-decoration: underline; }
.nrhh-provider-card__verified { margin: 0; font-size: .75rem; color: var(--nrhh-text-muted); }
.nrhh-directory__note { margin: 1.5rem 0 0; font-size: .875rem; color: var(--nrhh-text-muted); }
.nrhh-directory__note a { color: var(--nrhh-primary); font-weight: 600; text-decoration: none; }

/* ============================================================
   Shared card photo band + gold accents (directory + marketplace)
   ============================================================ */
/* Default: a photo band under the name/header. */
.nrhh-provider-card__photo {
	margin: .15rem -1.25rem 0;
	aspect-ratio: 16 / 10;
	overflow: hidden;
	background: var(--nrhh-bg);
	border-top: 1px solid var(--nrhh-border);
	border-bottom: 1px solid var(--nrhh-border);
}
.nrhh-provider-card__photo img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s ease; }
.nrhh-provider-card:hover .nrhh-provider-card__photo img { transform: scale(1.045); }

/* Optional variant: photo as the header background, name overlaid. */
.nrhh-provider-card--photobg .nrhh-provider-card__top {
	position: relative; margin: -1.25rem -1.25rem .1rem; padding: 1.15rem 1.25rem 1rem;
	min-height: 148px; align-items: flex-end; color: #fff;
	background-size: cover; background-position: center;
}
.nrhh-provider-card--photobg .nrhh-provider-card__top::after {
	content: ""; position: absolute; inset: 0; z-index: 0;
	background: linear-gradient( to top, rgba(43,54,49,.9), rgba(43,54,49,.3) 58%, rgba(43,54,49,.04) );
}
.nrhh-provider-card--photobg .nrhh-provider-card__avatar,
.nrhh-provider-card--photobg .nrhh-provider-card__headings { position: relative; z-index: 1; }
.nrhh-provider-card--photobg .nrhh-provider-card__name,
.nrhh-provider-card--photobg .nrhh-provider-card__meta { color: #fff; }
.nrhh-provider-card--photobg .nrhh-provider-card__type { color: var(--nrhh-gold); }

/* Gold top accent stripe on featured cards. */
.nrhh-provider-card--featured { border-top: 3px solid var(--nrhh-gold); }

/* Featured / category badge (gold). */
.nrhh-card-badge {
	align-self: flex-start;
	font-size: .68rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
	color: #4a3800; background: var(--nrhh-gold);
	padding: .2rem .62rem; border-radius: 99px;
}

/* Marketplace reuses .nrhh-directory__grid + .nrhh-provider-card; these are the extras. */
.nrhh-marketplace__pricing { margin: 0; font-size: .8125rem; color: var(--nrhh-text); }
.nrhh-marketplace__pricing strong { color: var(--nrhh-primary-dark); }
.nrhh-marketplace__status { font-weight: 700; font-size: .85rem; margin: 0; }
.nrhh-marketplace__status--connected { color: var(--nrhh-primary-dark); }
.nrhh-marketplace__status--requested { color: var(--nrhh-waitlist); }
.nrhh-marketplace__note { margin: .35rem 0 0; font-size: .78rem; color: var(--nrhh-text-muted); }
/* Audience chip — emerald-tinted to read distinctly from the gold tags. */
.nrhh-tag--audience { color: var(--nrhh-primary-dark); background: rgba(46,154,115,.12); border-color: rgba(46,154,115,.4); }
.nrhh-marketplace__actions { display: flex; flex-wrap: wrap; gap: .6rem; margin: 0 0 1.4rem; }

/* Directory pagination. */
.nrhh-pagination { display: flex; flex-wrap: wrap; gap: .4rem; justify-content: center; margin: 1.75rem 0 .5rem; }
.nrhh-page { min-width: 42px; padding: .55rem .8rem; border: 1.5px solid var(--nrhh-border); background: var(--nrhh-surface); color: var(--nrhh-text); border-radius: 9px; font-weight: 600; font-size: .9rem; line-height: 1; cursor: pointer; transition: border-color .13s, color .13s, background .13s; }
.nrhh-page:hover:not(:disabled) { border-color: var(--nrhh-primary); color: var(--nrhh-primary); }
.nrhh-page.is-current { background: var(--nrhh-primary); border-color: var(--nrhh-primary); color: #fff; }
.nrhh-page:disabled { opacity: .4; cursor: not-allowed; }
.nrhh-linkbtn { background: none; border: 0; color: var(--nrhh-primary); font-weight: 600; cursor: pointer; font: inherit; padding: 0; }

/* Provider detail view. */
.nrhh-directory--detail { max-width: 1120px; }
/* Full-bleed property photo banner at the top of the detail card. */
.nrhh-provider-detail__media { margin: -1.75rem -1.75rem 1.5rem; border-radius: 16px 16px 0 0; overflow: hidden; aspect-ratio: 24 / 9; background: var(--nrhh-bg); }
.nrhh-provider-detail__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media ( max-width: 700px ) { .nrhh-provider-detail__media { aspect-ratio: 16 / 9; margin: -1.25rem -1.25rem 1.25rem; } }
.nrhh-directory__back { margin: 0 0 1.25rem; }
.nrhh-directory__back a { color: var(--nrhh-primary); font-weight: 600; text-decoration: none; font-size: .9375rem; }
.nrhh-directory__back a:hover { text-decoration: underline; }
.nrhh-provider-detail {
	background: var(--nrhh-surface);
	border: 1px solid var(--nrhh-border);
	border-radius: 16px;
	box-shadow: var(--nrhh-shadow);
	padding: 1.75rem;
}
.nrhh-provider-detail__header { display: flex; gap: 1.15rem; align-items: center; margin-bottom: 1.5rem; }
.nrhh-provider-detail__avatar { width: 4rem; height: 4rem; font-size: 1.4rem; }
.nrhh-provider-detail__name { font-size: clamp( 1.5rem, 3vw, 2.1rem ); letter-spacing: .02em; margin: 0; }
.nrhh-provider-detail__type { margin: .25rem 0 .5rem; font-weight: 600; color: var(--nrhh-primary); }
.nrhh-provider-detail__facts {
	display: grid;
	grid-template-columns: repeat( auto-fit, minmax( 220px, 1fr ) );
	gap: .75rem 1.5rem;
	padding: 1.25rem 0;
	border-top: 1px solid var(--nrhh-border);
	border-bottom: 1px solid var(--nrhh-border);
}
.nrhh-fact { display: flex; flex-direction: column; gap: .15rem; }
.nrhh-fact__label { font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; color: var(--nrhh-text-muted); font-weight: 700; }
.nrhh-fact__value { font-size: .9375rem; color: var(--nrhh-text); font-weight: 600; }
.nrhh-provider-detail__section { margin-top: 1.35rem; }
.nrhh-section-header { font-size: .8125rem; text-transform: uppercase; letter-spacing: .05em; color: var(--nrhh-primary); margin: 0 0 .6rem; }
.nrhh-provider-detail__desc { margin: 0; font-size: .95rem; line-height: 1.65; color: var(--nrhh-text); }
.nrhh-provider-detail__actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.6rem; }
.nrhh-provider-detail__operated { margin: 0 0 1.1rem; font-size: .95rem; color: var(--nrhh-text-muted); }
.nrhh-provider-detail__operated a { color: var(--nrhh-primary); font-weight: 600; text-decoration: none; }
.nrhh-provider-detail__operated a:hover { text-decoration: underline; }

/* Homes grid inside a provider detail (drill into each property). */
.nrhh-home-grid { display: grid; grid-template-columns: repeat( auto-fill, minmax( 240px, 1fr ) ); gap: .85rem; }
.nrhh-home-card {
	display: block; text-decoration: none;
	background: var(--nrhh-bg);
	border: 1px solid var(--nrhh-border);
	border-radius: 12px;
	padding: .9rem 1rem;
	transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease;
}
.nrhh-home-card:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(60,40,20,.10); border-color: var(--nrhh-accent); }
.nrhh-home-card__head { display: flex; align-items: center; justify-content: space-between; gap: .5rem; margin-bottom: .3rem; }
.nrhh-home-card__title { font-weight: 700; color: var(--nrhh-text); font-size: .95rem; }
.nrhh-home-card__loc { margin: 0 0 .35rem; font-size: .8125rem; color: var(--nrhh-text-muted); }
.nrhh-home-card__beds { margin: 0; font-size: .8125rem; color: var(--nrhh-text); display: flex; justify-content: space-between; align-items: baseline; gap: .5rem; }
.nrhh-home-card__more { color: var(--nrhh-primary); font-weight: 600; font-size: .78rem; white-space: nowrap; }

@media ( prefers-color-scheme: dark ) and ( min-width: 100000px ) {
	.nrhh-home-card { background: #2b2622; border-color: #3a352f; }
	.nrhh-home-card__title, .nrhh-home-card__beds { color: #f0ece7; }
}

@media ( prefers-color-scheme: dark ) and ( min-width: 100000px ) {
	.nrhh-headline { color: #f0ece7; }
	.nrhh-provider-card { background: #262220; border-color: #3a352f; }
	.nrhh-provider-card__name, .nrhh-provider-detail__name, .nrhh-fact__value { color: #f0ece7; }
	.nrhh-directory__filters, .nrhh-provider-detail { background: #262220; border-color: #3a352f; }
}

@media ( max-width: 600px ) {
	.nrhh-kpi-grid { grid-template-columns: repeat(2, 1fr); }
	.nrhh-portal-header-inner { flex-direction: column; align-items: flex-start; gap: .5rem; }
	.nrhh-referral-meta { flex-direction: column; gap: .25rem; }
}

/* ==========================================================================
   CHW Portal
   ========================================================================== */

.nrhh-chw-portal { max-width: var(--nrhh-max-width); margin: 0 auto; padding: 1.5rem 1rem; }

/* Nav */
.nrhh-chw-nav { display: flex; gap: .5rem; flex-wrap: wrap; }
.nrhh-chw-nav__link {
	padding: .375rem .875rem;
	border-radius: var(--nrhh-radius);
	color: var(--nrhh-primary);
	text-decoration: none;
	font-weight: 500;
	border: 1px solid transparent;
}
.nrhh-chw-nav__link--active,
.nrhh-chw-nav__link:hover {
	background: var(--nrhh-primary);
	color: #fff;
}

/* Caseload list */
.nrhh-caseload__toolbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
.nrhh-caseload__heading { margin: 0; font-size: 1.125rem; }
.nrhh-case-list { display: flex; flex-direction: column; gap: .625rem; }
.nrhh-case-row {
	display: flex;
	align-items: center;
	gap: 1rem;
	padding: .875rem 1rem;
	background: var(--nrhh-surface);
	border: 1px solid var(--nrhh-border);
	border-radius: var(--nrhh-radius);
	box-shadow: var(--nrhh-shadow);
}
.nrhh-case-row__identity { flex: 1 1 200px; display: flex; flex-direction: column; gap: .125rem; }
.nrhh-case-row__name { font-weight: 600; color: var(--nrhh-primary); text-decoration: none; }
.nrhh-case-row__name:hover { text-decoration: underline; }
.nrhh-case-row__location { font-size: .8125rem; color: var(--nrhh-text-muted); }
.nrhh-case-row__meta { display: flex; flex-direction: column; align-items: flex-end; gap: .25rem; }
.nrhh-case-row__last-contact { font-size: .8125rem; color: var(--nrhh-text-muted); }

/* Case detail */
.nrhh-case-detail__header {
	display: flex;
	align-items: center;
	gap: 1rem;
	flex-wrap: wrap;
	margin-bottom: 1.5rem;
}
.nrhh-case-detail__name { margin: 0; font-size: 1.25rem; flex: 1; }
.nrhh-case-detail__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1.5rem; }

/* Case sections */
.nrhh-case-section {
	background: var(--nrhh-surface);
	border: 1px solid var(--nrhh-border);
	border-radius: var(--nrhh-radius);
	box-shadow: var(--nrhh-shadow);
	padding: 1.25rem;
	margin-bottom: 1.25rem;
}
.nrhh-case-section__title { margin: 0 0 1rem; font-size: 1rem; border-bottom: 1px solid var(--nrhh-border); padding-bottom: .5rem; }

/* Definition list */
.nrhh-dl { display: grid; grid-template-columns: max-content 1fr; gap: .375rem 1rem; margin: 0; font-size: .875rem; }
.nrhh-dl dt { font-weight: 600; color: var(--nrhh-text-muted); }
.nrhh-dl dd { margin: 0; }

/* Contact notes */
.nrhh-notes-list { margin-top: 1.25rem; display: flex; flex-direction: column; gap: .75rem; }
.nrhh-note-entry {
	padding: .875rem;
	background: var(--nrhh-bg);
	border-left: 3px solid var(--nrhh-accent);
	border-radius: 0 var(--nrhh-radius) var(--nrhh-radius) 0;
	font-size: .875rem;
}
.nrhh-note-entry__meta { display: flex; gap: .75rem; flex-wrap: wrap; margin-bottom: .375rem; color: var(--nrhh-text-muted); font-size: .8125rem; }
.nrhh-note-entry__channel { font-weight: 600; color: var(--nrhh-text); }
.nrhh-note-entry__reached--reached { color: var(--nrhh-success); font-weight: 600; }
.nrhh-note-entry__reached--no-answer { color: var(--nrhh-danger); }
.nrhh-note-entry__text, .nrhh-note-entry__next { margin: .25rem 0 0; }

/* Tasks */
.nrhh-task-list { display: flex; flex-direction: column; gap: .5rem; margin-top: 1rem; }
.nrhh-task-row {
	display: flex;
	align-items: center;
	gap: .75rem;
	padding: .625rem .875rem;
	background: var(--nrhh-surface);
	border: 1px solid var(--nrhh-border);
	border-radius: var(--nrhh-radius);
	font-size: .875rem;
}
.nrhh-task-row--done { opacity: .65; }
.nrhh-task-row__title { flex: 1; }
.nrhh-task-row__due { color: var(--nrhh-text-muted); font-size: .8125rem; }
.nrhh-task-row__done-label { color: var(--nrhh-success); font-size: .8125rem; font-weight: 600; }

/* Status badge — base pill + CHW variants */
.nrhh-status-badge {
	display: inline-flex; align-items: center;
	padding: .22rem .6rem; border-radius: 99px;
	font-size: .74rem; font-weight: 700; letter-spacing: .01em; white-space: nowrap;
	background: #eef1f4; color: #5a6675;
}
.nrhh-status-badge--assigned               { background: rgba(0,154,225,.12); color: #0a6c9c; }
.nrhh-status-badge--initial_contact_made   { background: #e3f0e8; color: #2e6b3a; }
.nrhh-status-badge--assessment_completed   { background: #e3ecf7; color: #1e4f8e; }
.nrhh-status-badge--care_plan_created      { background: #eee5f5; color: #6a2f99; }
.nrhh-status-badge--referrals_sent         { background: #fef3cd; color: #7d5a00; }
.nrhh-status-badge--goals_in_progress      { background: #d4edda; color: #155724; }
.nrhh-status-badge--successfully_closed    { background: #c3e6cb; color: #155724; font-weight: 700; }
.nrhh-status-badge--unable_to_contact      { background: #f8d7da; color: #721c24; }
.nrhh-status-badge--escalated              { background: #fff3cd; color: #856404; font-weight: 700; }

@media ( max-width: 700px ) {
	.nrhh-case-detail__grid { grid-template-columns: 1fr; }
	.nrhh-case-row { flex-wrap: wrap; }
	.nrhh-case-row__meta { align-items: flex-start; }
}
