/* ==========================================================================
   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;
}

/* Status tints for the card badge (trainings/events/vault reuse the card system). */
.nrhh-card-badge--success { color: #065f46; background: #d1fae5; }
.nrhh-card-badge--warn { color: #854d0e; background: #fef9c3; }
.nrhh-card-badge--error { color: #991b1b; background: #fee2e2; }
.nrhh-card-badge-row { display: flex; flex-wrap: wrap; gap: .4rem; }
.nrhh-card-badge-row:empty { display: none; }
.nrhh-vault-card--locked { opacity: .55; filter: grayscale(.4); }
.nrhh-vault-card--locked:hover { transform: none; border-color: var(--nrhh-border); box-shadow: var(--nrhh-shadow); }

/* 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; }
}

/* ==========================================================================
   Social Café — activity feed
   --------------------------------------------------------------------------
   Structure and interaction model follow BuddyBoss ReadyLaunch (the agreed
   standard for this surface): a card-per-post activity list, 48px round
   avatars in a head row, a meta line, a reaction bar, an actions row, and an
   indented comment thread. Geometry is BuddyBoss's (12px card radius, 8/16/24
   space scale, 14px/1.5 body); colour is NRHH's warm palette, never
   BuddyBoss's indigo.
   ========================================================================== */

.nrhh-cafe {
	--cafe-space-100: 8px;
	--cafe-space-200: 16px;
	--cafe-space-300: 24px;
	--cafe-radius:    12px;
	--cafe-radius-sm: 6px;
	--cafe-border:    var(--nrhh-border, #dde8e2);
	font-size: 14px;
	line-height: 1.5;
}

.nrhh-cafe__layout {
	display: grid;
	grid-template-columns: 220px 1fr;
	gap: var(--cafe-space-300);
	align-items: start;
}

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

/* --- Channels rail --- */
.nrhh-cafe__channels-title {
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: .06em;
	color: #6c7c90;
	margin: 0 0 var(--cafe-space-100);
}

.nrhh-cafe__channels { list-style: none; margin: 0; padding: 0; }

.nrhh-cafe__channel-link {
	display: block;
	padding: 8px 12px;
	border-radius: var(--cafe-radius-sm);
	text-decoration: none;
	color: #3d4a42;
	transition: background .15s ease;
}

.nrhh-cafe__channel-link:hover { background: var(--nrhh-bg, #f5fffa); }

.nrhh-cafe__channel-link.is-active {
	background: var(--nrhh-primary, #3eb489);
	color: #fff;
	font-weight: 600;
}

/* --- Composer --- */
.nrhh-cafe__composer {
	background: #fff;
	border: 1px solid var(--cafe-border);
	border-radius: var(--cafe-radius);
	padding: var(--cafe-space-200) var(--cafe-space-300);
	margin-bottom: var(--cafe-space-300);
	box-shadow: var(--nrhh-shadow, 0 1px 4px rgba(45,58,52,.08));
}

.nrhh-cafe__composer-head {
	display: flex;
	align-items: center;
	gap: var(--cafe-space-200);
	margin-bottom: var(--cafe-space-100);
}

.nrhh-cafe__field {
	width: 100%;
	box-sizing: border-box;
	padding: 10px 12px;
	border: 1px solid var(--cafe-border);
	border-radius: var(--cafe-radius-sm);
	font: inherit;
	resize: vertical;
}

.nrhh-cafe__field:focus {
	outline: 2px solid var(--nrhh-primary, #3eb489);
	outline-offset: 1px;
}

/* --- Avatars --- */
.nrhh-cafe__avatar {
	width: 48px;
	height: 48px;
	min-width: 48px;
	border-radius: 99px;
	object-fit: cover;
	display: grid;
	place-items: center;
	background: var(--nrhh-primary, #3eb489);
	color: #fff;
	font-weight: 700;
}

.nrhh-cafe__avatar--sm { width: 32px; height: 32px; min-width: 32px; font-size: 12px; }

/* --- Activity list --- */
.nrhh-cafe__list { list-style: none; margin: 0; padding: 0; }

.nrhh-cafe__item {
	background: #fff;
	border: 1px solid var(--cafe-border);
	border-radius: var(--cafe-radius);
	padding: var(--cafe-space-200) var(--cafe-space-300);
	margin-bottom: var(--cafe-space-300);
	box-shadow: var(--nrhh-shadow, 0 1px 4px rgba(45,58,52,.08));
}

.nrhh-cafe__head { display: flex; gap: var(--cafe-space-200); align-items: flex-start; }

.nrhh-cafe__author { font-weight: 600; color: #24382e; }

.nrhh-cafe__meta { font-size: 12px; color: #6c7c90; }

.nrhh-cafe__type-pill {
	display: inline-block;
	font-size: 11px;
	padding: 2px 10px;
	border-radius: 99px;
	background: var(--nrhh-accent-soft, #fbf1cf);
	color: #7a5b00;
	margin-left: var(--cafe-space-100);
}

.nrhh-cafe__body { margin: var(--cafe-space-200) 0; white-space: pre-wrap; }

/* --- Reaction bar --- */
.nrhh-cafe__reactions {
	display: flex;
	gap: 6px;
	flex-wrap: wrap;
	align-items: center;
	border-top: 1px solid var(--cafe-border);
	padding-top: var(--cafe-space-100);
}

.nrhh-cafe__react {
	background: var(--nrhh-bg, #f5fffa);
	border: 1px solid var(--cafe-border);
	border-radius: 99px;
	padding: 4px 10px;
	cursor: pointer;
	font-size: 15px;
	line-height: 1.2;
	transition: transform .12s ease, background .15s ease, border-color .15s ease;
}

.nrhh-cafe__react:hover { transform: scale(1.12); }

.nrhh-cafe__react.is-mine {
	background: var(--nrhh-accent-soft, #fbf1cf);
	border-color: var(--nrhh-accent, #f4c431);
}

.nrhh-cafe__react-count { font-size: 12px; color: #6c7c90; margin-left: 4px; }

.nrhh-cafe__follow {
	margin-left: auto;
	background: none;
	border: none;
	cursor: pointer;
	color: var(--nrhh-primary-dark, #2e9a73);
	font-size: 12px;
	font-weight: 600;
	padding: 0;
}

/* --- Actions row --- */
.nrhh-cafe__actions {
	display: flex;
	gap: var(--cafe-space-200);
	align-items: center;
	border-top: 1px solid var(--cafe-border);
	padding-top: var(--cafe-space-100);
	margin-top: var(--cafe-space-100);
	font-size: 13px;
}

.nrhh-cafe__action {
	background: none;
	border: none;
	cursor: pointer;
	color: var(--nrhh-primary-dark, #2e9a73);
	font-weight: 600;
	padding: 0;
}

.nrhh-cafe__action--muted { color: #97a4ab; font-weight: 400; }

/* --- Comment thread --- */
.nrhh-cafe__comments { margin-top: var(--cafe-space-200); }

.nrhh-cafe__comment { display: flex; gap: var(--cafe-space-100); margin-bottom: var(--cafe-space-100); }

.nrhh-cafe__comment-bubble {
	background: var(--nrhh-bg, #f5fffa);
	border-radius: var(--cafe-radius);
	padding: 8px 12px;
	flex: 1;
}

.nrhh-cafe__comment-children {
	margin-left: 40px;
	margin-top: var(--cafe-space-100);
	border-left: 2px solid var(--cafe-border);
	padding-left: var(--cafe-space-100);
}

.nrhh-cafe__empty { color: #6c7c90; font-style: italic; }

.nrhh-cafe__notice {
	background: var(--nrhh-accent-soft, #fbf1cf);
	border: 1px solid var(--nrhh-accent, #f4c431);
	border-radius: var(--cafe-radius-sm);
	padding: 12px 16px;
	margin-bottom: var(--cafe-space-300);
	font-size: 13px;
}

/* --- Café section tabs (BuddyBoss nav model) --- */
.nrhh-cafe__tabs {
	display: flex;
	gap: 4px;
	border-bottom: 1px solid var(--nrhh-border, #dde8e2);
	margin-bottom: 24px;
	flex-wrap: wrap;
}

.nrhh-cafe__tab {
	padding: 10px 16px;
	text-decoration: none;
	color: #6c7c90;
	font-weight: 600;
	font-size: 14px;
	border-bottom: 2px solid transparent;
	margin-bottom: -1px;
}

.nrhh-cafe__tab:hover { color: var(--nrhh-primary-dark, #2e9a73); }

.nrhh-cafe__tab.is-active {
	color: var(--nrhh-primary-dark, #2e9a73);
	border-bottom-color: var(--nrhh-primary, #3eb489);
}

.nrhh-cafe__badge {
	display: inline-block;
	min-width: 18px;
	padding: 0 6px;
	margin-left: 4px;
	border-radius: 99px;
	background: var(--nrhh-danger, #9f230a);
	color: #fff;
	font-size: 11px;
	line-height: 18px;
	text-align: center;
}

/* --- Member / group cards --- */
.nrhh-cafe__members {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	gap: 12px;
}

.nrhh-cafe__member-card {
	display: flex;
	align-items: center;
	gap: 12px;
	background: #fff;
	border: 1px solid var(--nrhh-border, #dde8e2);
	border-radius: 12px;
	padding: 12px 16px;
	box-shadow: var(--nrhh-shadow, 0 1px 4px rgba(45,58,52,.08));
}

.nrhh-cafe__item.is-unread { border-left: 3px solid var(--nrhh-accent, #f4c431); }

/* ==========================================================================
   Social Café — standalone section chrome
   --------------------------------------------------------------------------
   Composition follows buddyboss.com/website-community-platform: a warm cream
   hero band with a coloured eyebrow, a tight 800-weight headline, 24px/32px
   subcopy and 6px-radius CTAs; then a three-column community shell (nav rail /
   feed / context sidebar). Colour is the NR brand — cream #FBF6EE, forest
   #234639, terracotta #C2683E — not BuddyBoss's own.
   ========================================================================== */

.nrhh-cafe-app {
	--cafe-cream:     #fbf6ee;
	--cafe-forest:    #234639;
	--cafe-terra:     #c2683e;
	--cafe-ink:       #222;
	--cafe-muted:     #6c7c90;
	--cafe-line:      #e7e0d6;
}

/* --- Product-style cover header (BuddyBoss profile header model) --- */
.nrhh-cafe-cover {
	background: #fff;
	border: 1px solid var(--cafe-line);
	border-radius: 16px;
	overflow: hidden;
	margin-bottom: 28px;
	box-shadow: 0 2px 10px rgba(35,70,57,.06);
}

.nrhh-cafe-cover__band {
	height: 148px;
	background: linear-gradient(120deg, var(--cafe-forest) 0%, #2e6b53 55%, var(--cafe-terra) 100%);
}

.nrhh-cafe-cover__body { padding: 0 28px 4px; text-align: center; }

.nrhh-cafe-cover__avatar {
	width: 104px;
	height: 104px;
	margin: -58px auto 12px;
	border-radius: 99px;
	border: 4px solid #fff;
	background: var(--cafe-cream);
	display: grid;
	place-items: center;
	font-size: 30px;
	font-weight: 800;
	color: var(--cafe-forest);
	box-shadow: 0 6px 18px rgba(35,70,57,.16);
}

.nrhh-cafe-cover__name {
	font-size: 26px;
	font-weight: 800;
	letter-spacing: -0.3px;
	color: var(--cafe-forest);
	margin: 0;
}

.nrhh-cafe-cover__meta { font-size: 13px; color: var(--cafe-muted); margin: 5px 0 12px; }

.nrhh-cafe-cover__stats {
	display: flex;
	justify-content: center;
	gap: 28px;
	margin-bottom: 16px;
	flex-wrap: wrap;
}

.nrhh-cafe-cover__stat b { color: var(--cafe-forest); font-weight: 800; }
.nrhh-cafe-cover__stat { font-size: 13px; color: var(--cafe-muted); }

/* Horizontal tab strip under the cover */
.nrhh-cafe-cover__tabs {
	display: flex;
	justify-content: flex-start;
	gap: 6px;
	border-top: 1px solid var(--cafe-line);
	padding: 0 20px;
	flex-wrap: wrap;
}

.nrhh-cafe-cover__tab {
	padding: 14px 10px;
	font-size: 14px;
	font-weight: 600;
	color: var(--cafe-muted);
	text-decoration: none;
	border-bottom: 2px solid transparent;
	margin-bottom: -1px;
}

.nrhh-cafe-cover__tab:hover { color: var(--cafe-forest); }

.nrhh-cafe-cover__tab.is-active {
	color: var(--cafe-forest);
	border-bottom-color: var(--cafe-terra);
}

/* Sign-in strip for the public tier */
.nrhh-cafe-cover__cta {
	display: flex;
	gap: 10px;
	justify-content: center;
	margin-bottom: 16px;
	flex-wrap: wrap;
}

.nrhh-cafe-btn {
	display: inline-block;
	border-radius: 6px;
	padding: 12px 24px;
	font-weight: 700;
	font-size: 14px;
	text-decoration: none;
	border: 1px solid transparent;
	cursor: pointer;
}

.nrhh-cafe-btn--primary { background: var(--cafe-terra); color: #fff; }
.nrhh-cafe-btn--primary:hover { background: #a9552f; color: #fff; }
.nrhh-cafe-btn--ghost { background: #fff; color: var(--cafe-terra); border-color: #efe3d8; }

/* Avatar grid ("I'm following") */
.nrhh-cafe-facegrid { display: flex; flex-wrap: wrap; gap: 6px; }

.nrhh-cafe-facegrid .nrhh-cafe__avatar--sm { width: 34px; height: 34px; min-width: 34px; font-size: 11px; }

/* Profile-completion meter */
.nrhh-cafe-meter {
	height: 8px;
	background: #eef2ef;
	border-radius: 99px;
	overflow: hidden;
	margin: 6px 0 10px;
}

.nrhh-cafe-meter__fill { height: 100%; background: var(--cafe-terra); border-radius: 99px; }

.nrhh-cafe-check {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 13px;
	padding: 4px 0;
	color: var(--cafe-ink);
}

.nrhh-cafe-check__dot {
	width: 16px;
	height: 16px;
	border-radius: 99px;
	display: grid;
	place-items: center;
	font-size: 10px;
	color: #fff;
	background: #cfd8d2;
	flex: none;
}

.nrhh-cafe-check.is-done .nrhh-cafe-check__dot { background: var(--nrhh-primary, #3eb489); }

/* --- Three-column community shell --- */
.nrhh-cafe-shell {
	display: grid;
	grid-template-columns: 232px minmax(0, 1fr) 288px;
	gap: 28px;
	align-items: start;
	max-width: 1200px;
	margin: 0 auto;
}

@media (max-width: 1100px) {
	.nrhh-cafe-shell { grid-template-columns: 210px minmax(0, 1fr); }
	.nrhh-cafe-shell__aside { display: none; }
}

@media (max-width: 782px) {
	.nrhh-cafe-shell { grid-template-columns: 1fr; }
	.nrhh-cafe-shell__rail { display: none; }
}

.nrhh-cafe-shell__rail,
.nrhh-cafe-shell__aside { position: sticky; top: 24px; }

.nrhh-cafe-nav { list-style: none; margin: 0 0 24px; padding: 0; }

.nrhh-cafe-nav__link {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	padding: 10px 14px;
	border-radius: 10px;
	text-decoration: none;
	color: var(--cafe-forest);
	font-weight: 600;
	font-size: 14px;
}

.nrhh-cafe-nav__link:hover { background: var(--cafe-cream); }

.nrhh-cafe-nav__link.is-active {
	background: var(--cafe-forest);
	color: #fff;
}

.nrhh-cafe-widget {
	background: #fff;
	border: 1px solid var(--cafe-line);
	border-radius: 14px;
	padding: 16px;
	margin-bottom: 16px;
}

.nrhh-cafe-widget__title {
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: .08em;
	color: var(--cafe-muted);
	margin: 0 0 12px;
	font-weight: 700;
}

.nrhh-cafe-widget__row {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 7px 0;
}

/* --- Post interaction model, matched to the live BuddyBoss demo ---
   A reaction SUMMARY row (who reacted + comment count), then a two-up action
   bar of Like / Comment buttons, then the thread. The four reaction choices
   live in a popover on the Like button rather than sitting on the card. --- */

.nrhh-cafe__item { border-radius: 10px; padding: 15px 15px 10px; }

.nrhh-cafe__summary {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 8px 0 6px;
	font-size: 13px;
	color: var(--cafe-muted);
}

.nrhh-cafe__summary-icons { display: flex; }

.nrhh-cafe__summary-icon {
	width: 20px;
	height: 20px;
	border-radius: 99px;
	background: #fff;
	border: 1px solid var(--cafe-line);
	display: grid;
	place-items: center;
	font-size: 11px;
	margin-right: -6px;
}

.nrhh-cafe__summary-count { margin-left: auto; }

.nrhh-cafe__bar {
	display: grid;
	grid-template-columns: 1fr 1fr;
	border-top: 1px solid var(--cafe-line);
	padding-top: 4px;
}

.nrhh-cafe__bar-btn {
	background: none;
	border: 0;
	border-radius: 6px;
	padding: 10px 14px;
	font-size: 13px;
	color: #5a5a5a;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 7px;
	font-family: inherit;
}

.nrhh-cafe__bar-btn:hover { background: #f6f7f6; }
.nrhh-cafe__bar-btn.is-mine { color: var(--cafe-terra); font-weight: 700; }

/* Reaction popover */
.nrhh-cafe__picker {
	position: absolute;
	bottom: calc(100% + 6px);
	left: 50%;
	transform: translateX(-50%) scale(.92);
	display: flex;
	gap: 4px;
	background: #fff;
	border: 1px solid var(--cafe-line);
	border-radius: 99px;
	padding: 5px 8px;
	box-shadow: 0 8px 22px rgba(35,70,57,.16);
	opacity: 0;
	pointer-events: none;
	transition: opacity .14s ease, transform .14s ease;
	z-index: 5;
	white-space: nowrap;
}

.nrhh-cafe__react-wrap { position: relative; }
.nrhh-cafe__react-wrap:hover .nrhh-cafe__picker,
.nrhh-cafe__picker:hover {
	opacity: 1;
	pointer-events: auto;
	transform: translateX(-50%) scale(1);
}

.nrhh-cafe__picker button {
	background: none;
	border: 0;
	font-size: 19px;
	line-height: 1;
	padding: 3px;
	cursor: pointer;
	transition: transform .12s ease;
}

.nrhh-cafe__picker button:hover { transform: scale(1.28); }

/* Comment thread — bubble carries the name, meta links sit beneath it */
.nrhh-cafe__comment-bubble {
	background: #f2f4f3;
	border-radius: 10px;
	padding: 8px 12px;
	display: inline-block;
	max-width: 100%;
}

.nrhh-cafe__comment-name { font-weight: 700; font-size: 13px; color: var(--cafe-forest); display: block; }

.nrhh-cafe__comment-links {
	display: flex;
	gap: 12px;
	font-size: 12px;
	color: var(--cafe-muted);
	padding: 4px 0 0 12px;
}

.nrhh-cafe__comment-links button {
	background: none;
	border: 0;
	padding: 0;
	font-size: 12px;
	font-weight: 700;
	color: var(--cafe-muted);
	cursor: pointer;
	font-family: inherit;
}

.nrhh-cafe__comment-links button:hover { color: var(--cafe-terra); }

/* Inline comment composer */
.nrhh-cafe__composer-inline {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-top: 10px;
}

.nrhh-cafe__composer-inline input[type="text"] {
	flex: 1;
	border: 1px solid var(--cafe-line);
	border-radius: 99px;
	padding: 9px 14px;
	font: inherit;
	font-size: 13px;
}

.nrhh-cafe__composer-inline input:focus { outline: 2px solid var(--nrhh-primary, #3eb489); outline-offset: 1px; }

/* Semicircular completion gauge */
.nrhh-cafe-gauge { text-align: center; margin-bottom: 10px; }
.nrhh-cafe-gauge svg { display: block; margin: 0 auto; }
.nrhh-cafe-gauge__num { font-size: 30px; font-weight: 800; fill: var(--cafe-forest); }
.nrhh-cafe-gauge__pct { font-size: 12px; font-weight: 700; fill: var(--cafe-muted); }
.nrhh-cafe-gauge__cap { font-size: 12px; color: var(--cafe-muted); margin-top: -6px; }

.nrhh-cafe-check { justify-content: flex-start; }
.nrhh-cafe-check__n { margin-left: auto; font-size: 12px; color: var(--cafe-muted); font-weight: 700; }

/* --- Members + Groups directories, matched to the live demo --- */

.nrhh-cafe-subtabs {
	display: flex;
	gap: 24px;
	border-bottom: 1px solid var(--cafe-line);
	margin-bottom: 18px;
}

.nrhh-cafe-subtab {
	padding: 0 0 12px;
	font-size: 14px;
	font-weight: 600;
	color: var(--cafe-muted);
	text-decoration: none;
	border-bottom: 2px solid transparent;
	margin-bottom: -1px;
}

.nrhh-cafe-subtab:hover { color: var(--cafe-forest); }
.nrhh-cafe-subtab.is-active { color: var(--cafe-forest); border-bottom-color: var(--cafe-forest); }

.nrhh-cafe-countrow {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 16px;
	flex-wrap: wrap;
}

.nrhh-cafe-countrow__n { font-size: 15px; font-weight: 700; color: var(--cafe-forest); }

.nrhh-cafe-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: 20px;
}

/* Member card */
.nrhh-cafe-mcard {
	background: #fff;
	border: 1px solid var(--cafe-line);
	border-radius: 12px;
	padding: 26px 16px 0;
	text-align: center;
	overflow: hidden;
}

.nrhh-cafe-mcard__avatar {
	width: 96px;
	height: 96px;
	margin: 0 auto 8px;
	border-radius: 99px;
	display: grid;
	place-items: center;
	font-size: 28px;
	font-weight: 800;
	color: #fff;
	background: var(--nrhh-primary, #3eb489);
	position: relative;
}

.nrhh-cafe-mcard__badge {
	position: absolute;
	bottom: -9px;
	left: 50%;
	transform: translateX(-50%);
	background: var(--cafe-forest);
	color: #fff;
	font-size: 10px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .04em;
	padding: 3px 10px;
	border-radius: 5px;
	white-space: nowrap;
}

.nrhh-cafe-mcard__name { font-size: 15px; font-weight: 700; color: var(--cafe-forest); margin-top: 12px; }
.nrhh-cafe-mcard__meta { font-size: 12px; color: var(--cafe-muted); margin-top: 3px; }

.nrhh-cafe-mcard__btn {
	display: block;
	width: 100%;
	margin: 14px 0 0;
	padding: 9px 12px;
	border: 1px solid var(--cafe-line);
	border-radius: 6px;
	background: #fff;
	font-size: 13px;
	font-weight: 600;
	color: var(--cafe-forest);
	cursor: pointer;
	font-family: inherit;
}

.nrhh-cafe-mcard__btn:hover { background: var(--cafe-cream); }
.nrhh-cafe-mcard__btn.is-on { color: var(--cafe-terra); border-color: #efd9cc; }

.nrhh-cafe-mcard__foot {
	border-top: 1px solid var(--cafe-line);
	margin: 14px -16px 0;
	padding: 9px 16px;
	font-size: 12px;
	color: var(--cafe-muted);
}

/* Group card — cover band with an overlapping square avatar */
.nrhh-cafe-gcard {
	background: #fff;
	border: 1px solid var(--cafe-line);
	border-radius: 12px;
	overflow: hidden;
	text-align: center;
}

.nrhh-cafe-gcard__cover {
	height: 96px;
	background: linear-gradient(120deg, var(--cafe-forest), #2e6b53 60%, var(--cafe-terra));
}

.nrhh-cafe-gcard__avatar {
	width: 62px;
	height: 62px;
	margin: -34px auto 0;
	border-radius: 12px;
	border: 3px solid #fff;
	background: var(--nrhh-accent, #f4c431);
	display: grid;
	place-items: center;
	font-size: 19px;
	font-weight: 800;
	color: #4a3a00;
	position: relative;
}

.nrhh-cafe-gcard__name {
	font-size: 15px;
	font-weight: 700;
	color: var(--cafe-forest);
	margin: 10px 12px 0;
	text-decoration: none;
	display: block;
}

.nrhh-cafe-gcard__meta { font-size: 12px; color: var(--cafe-muted); margin: 3px 12px 12px; }

.nrhh-cafe-gcard__foot {
	border-top: 1px solid var(--cafe-line);
	padding: 9px 12px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
}

.nrhh-cafe-facestack { display: flex; }

.nrhh-cafe-facestack .nrhh-cafe__avatar {
	width: 26px;
	height: 26px;
	min-width: 26px;
	font-size: 10px;
	border: 2px solid #fff;
	margin-right: -8px;
}

.nrhh-cafe-pill {
	font-size: 12px;
	font-weight: 600;
	padding: 5px 12px;
	border-radius: 6px;
	background: #f2f4f3;
	color: var(--cafe-forest);
	border: 0;
	cursor: pointer;
	font-family: inherit;
}

.nrhh-cafe-pill--join { background: var(--cafe-forest); color: #fff; }

/* --- Messages: two-pane thread list + conversation (demo model) --- */
.nrhh-cafe-msg {
	display: grid;
	grid-template-columns: 300px minmax(0, 1fr);
	background: #fff;
	border: 1px solid var(--cafe-line);
	border-radius: 12px;
	overflow: hidden;
	min-height: 520px;
}

@media (max-width: 782px) {
	.nrhh-cafe-msg { grid-template-columns: 1fr; }
	.nrhh-cafe-msg__list.has-open { display: none; }
}

.nrhh-cafe-msg__list { border-right: 1px solid var(--cafe-line); display: flex; flex-direction: column; }

.nrhh-cafe-msg__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	padding: 16px;
}

.nrhh-cafe-msg__title { font-size: 19px; font-weight: 800; color: var(--cafe-forest); margin: 0; }

.nrhh-cafe-msg__threads { list-style: none; margin: 0; padding: 0; overflow-y: auto; flex: 1; }

.nrhh-cafe-msg__thread {
	display: flex;
	gap: 10px;
	align-items: center;
	padding: 12px 16px;
	border-bottom: 1px solid #f4f6f5;
	text-decoration: none;
	color: inherit;
}

.nrhh-cafe-msg__thread:hover { background: #fafbfa; }
.nrhh-cafe-msg__thread.is-active { background: #eef4f1; }

.nrhh-cafe-msg__thread-name {
	font-weight: 700;
	font-size: 14px;
	color: var(--cafe-forest);
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.nrhh-cafe-msg__thread-preview {
	font-size: 12px;
	color: var(--cafe-muted);
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.nrhh-cafe-msg__dot {
	width: 9px;
	height: 9px;
	border-radius: 99px;
	background: var(--cafe-terra);
	flex: none;
}

.nrhh-cafe-msg__pane { display: flex; flex-direction: column; }

.nrhh-cafe-msg__pane-head {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 14px 18px;
	border-bottom: 1px solid var(--cafe-line);
}

.nrhh-cafe-msg__stream { flex: 1; overflow-y: auto; padding: 18px; }

.nrhh-cafe-msg__daysep {
	text-align: center;
	font-size: 12px;
	color: var(--cafe-muted);
	margin: 14px 0 12px;
}

.nrhh-cafe-msg__row { display: flex; gap: 10px; margin-bottom: 14px; }
.nrhh-cafe-msg__row-name { font-weight: 700; font-size: 13px; color: var(--cafe-forest); }
.nrhh-cafe-msg__row-time { font-size: 12px; color: var(--cafe-muted); margin-left: 6px; }
.nrhh-cafe-msg__row-body { font-size: 14px; margin-top: 2px; white-space: pre-wrap; }

.nrhh-cafe-msg__composer { border-top: 1px solid var(--cafe-line); padding: 12px 18px; }

.nrhh-cafe-msg__composer textarea {
	width: 100%;
	box-sizing: border-box;
	border: 1px solid var(--cafe-line);
	border-radius: 8px;
	padding: 10px 12px;
	font: inherit;
	font-size: 14px;
	resize: vertical;
}

.nrhh-cafe-msg__empty {
	flex: 1;
	display: grid;
	place-items: center;
	color: var(--cafe-muted);
	font-size: 14px;
	padding: 40px;
	text-align: center;
}

.nrhh-cafe-iconbtn {
	background: none;
	border: 1px solid var(--cafe-line);
	border-radius: 6px;
	width: 32px;
	height: 32px;
	display: grid;
	place-items: center;
	cursor: pointer;
	font-size: 15px;
	color: var(--cafe-forest);
}

.nrhh-cafe-iconbtn:hover { background: var(--cafe-cream); }

/* View-mode toggle + sort control */
.nrhh-cafe-viewtoggle { display: flex; gap: 4px; }

.nrhh-cafe-viewtoggle a {
	width: 30px;
	height: 30px;
	display: grid;
	place-items: center;
	border: 1px solid var(--cafe-line);
	border-radius: 6px;
	color: var(--cafe-muted);
	text-decoration: none;
	font-size: 13px;
}

.nrhh-cafe-viewtoggle a.is-active { background: var(--cafe-forest); color: #fff; border-color: var(--cafe-forest); }

.nrhh-cafe-select {
	border: 1px solid var(--cafe-line);
	border-radius: 6px;
	padding: 6px 10px;
	font: inherit;
	font-size: 13px;
	background: #fff;
	color: var(--cafe-forest);
}

/* List mode collapses the card grid to rows */
.nrhh-cafe-grid.is-list { grid-template-columns: 1fr; }
.nrhh-cafe-grid.is-list .nrhh-cafe-mcard,
.nrhh-cafe-grid.is-list .nrhh-cafe-gcard {
	display: grid;
	grid-template-columns: 56px 1fr auto;
	align-items: center;
	gap: 14px;
	text-align: left;
	padding: 12px 16px;
}

.nrhh-cafe-grid.is-list .nrhh-cafe-gcard__cover { display: none; }
.nrhh-cafe-grid.is-list .nrhh-cafe-mcard__avatar { width: 48px; height: 48px; font-size: 16px; margin: 0; }
.nrhh-cafe-grid.is-list .nrhh-cafe-gcard__avatar { width: 48px; height: 48px; font-size: 15px; margin: 0; border-width: 0; }
.nrhh-cafe-grid.is-list .nrhh-cafe-mcard__badge { display: none; }
.nrhh-cafe-grid.is-list .nrhh-cafe-mcard__name,
.nrhh-cafe-grid.is-list .nrhh-cafe-gcard__name { margin: 0; }
.nrhh-cafe-grid.is-list .nrhh-cafe-mcard__btn { width: auto; margin: 0; }
.nrhh-cafe-grid.is-list .nrhh-cafe-mcard__foot { display: none; }
.nrhh-cafe-grid.is-list .nrhh-cafe-gcard__foot { border: 0; padding: 0; }

/* --- Completed-training badges (provider + navigator profiles) --- */
.nrhh-badges { margin-top: 1rem; }

.nrhh-badges__title {
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: .08em;
	color: #6c7c90;
	margin: 0 0 .5rem;
	font-weight: 700;
}

.nrhh-badges__row { display: flex; flex-wrap: wrap; gap: 6px; }

.nrhh-badge {
	display: inline-block;
	font-size: 12px;
	font-weight: 600;
	padding: 5px 11px;
	border-radius: 99px;
	background: #eef7f2;
	color: #2e9a73;
	border: 1px solid #cfe9dd;
}

.nrhh-badge--tier {
	background: var(--nrhh-accent-soft, #fbf1cf);
	color: #7a5b00;
	border-color: var(--nrhh-accent, #f4c431);
}

/* --- Training session picker --- */
.nrhh-session {
	display: flex;
	align-items: center;
	gap: 12px;
	flex-wrap: wrap;
	padding: 10px 12px;
	border: 1px solid var(--nrhh-border, #dde8e2);
	border-radius: 8px;
	margin-top: 8px;
	background: #fff;
}

.nrhh-session__when { font-weight: 600; font-size: 14px; color: #234639; }
.nrhh-session__meta { font-size: 12px; color: #6c7c90; }
.nrhh-session__seats { margin-left: auto; font-size: 12px; color: #6c7c90; }

.nrhh-session__seats.is-full { color: #9f230a; font-weight: 700; }

.nrhh-reg-status {
	display: inline-block;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .04em;
	padding: 3px 9px;
	border-radius: 4px;
	background: #eef7f2;
	color: #2e9a73;
}

.nrhh-reg-status--waitlisted { background: #fbf1cf; color: #7a5b00; }
.nrhh-reg-status--cancelled { background: #f4f4f4; color: #777; }

/* --- Training calendar --- */
.nrhh-cal__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin: 1rem 0 .6rem;
	flex-wrap: wrap;
}

.nrhh-cal__month { font-size: 1rem; font-weight: 700; color: #234639; margin: 0; }

.nrhh-cal {
	display: grid;
	grid-template-columns: repeat(7, 1fr);
	gap: 1px;
	background: #dde8e2;
	border: 1px solid #dde8e2;
	border-radius: 8px;
	overflow: hidden;
}

.nrhh-cal__dow {
	background: #f5fffa;
	padding: 7px 6px;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .05em;
	color: #6c7c90;
	text-align: center;
}

.nrhh-cal__cell { background: #fff; min-height: 84px; padding: 5px 6px; }
.nrhh-cal__cell--pad { background: #fafcfb; }
.nrhh-cal__num { font-size: 12px; color: #97a4ab; }
.nrhh-cal__cell--today .nrhh-cal__num { color: #c2683e; font-weight: 800; }

.nrhh-cal__event {
	display: block;
	margin-top: 3px;
	padding: 3px 6px;
	border-radius: 4px;
	background: #eef7f2;
	border-left: 3px solid #3eb489;
	font-size: 11px;
	line-height: 1.3;
	color: #234639;
	text-decoration: none;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.nrhh-cal__event:hover { background: #ddefe6; }
