:root{
  --bhpc-navy:#061523;
  --bhpc-navy-2:#10263a;
  --bhpc-orange:#f48a0b;
  --bhpc-gold:#ffc15a;
  --bhpc-morning:#fff7ea;
  --bhpc-white:#fff;
  --bhpc-ink:#101722;
  --bhpc-muted:#627084;
  --bhpc-border:#dde5ee;
  --bhpc-shadow:0 18px 50px rgba(6,21,35,.14);
  --bhpc-radius:8px;
}

.bhpc-home,
.bhpc-dashboard,
.bhpc-page-hero,
.bhpc-section,
.bhpc-footer-cta{
  font-family:Inter,ui-sans-serif,system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
  color:var(--bhpc-ink);
}

.bhpc-home{
  background:#fff;
}

.bhpc-logo{
  display:flex;
  flex-direction:column;
  color:#fff;
  text-decoration:none;
  line-height:1;
}

.bhpc-logo span{
  font-weight:950;
  font-size:1.55rem;
  text-transform:uppercase;
}

.bhpc-logo small{
  color:var(--bhpc-orange);
  font-weight:950;
  margin-left:2px;
}

.bhpc-logo em{
  margin-top:4px;
  font-size:.72rem;
  font-style:normal;
  font-weight:800;
  letter-spacing:.04em;
  text-transform:uppercase;
  color:rgba(255,255,255,.78);
}

.bhpc-home-hero{
  background:linear-gradient(180deg,#061523 0%,#0c2033 100%);
  color:#fff;
  overflow:hidden;
}

.bhpc-home-nav{
  max-width:1440px;
  margin:0 auto;
  min-height:86px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;
  padding:0 28px;
}

.bhpc-home-links{
  display:flex;
  align-items:center;
  gap:22px;
  font-size:.92rem;
  font-weight:850;
}

.bhpc-home-links a{
  color:#fff;
  text-decoration:none;
}

.bhpc-hero-grid{
  max-width:1440px;
  margin:0 auto;
  display:grid;
  grid-template-columns:minmax(220px,30%) minmax(360px,40%) minmax(220px,30%);
  min-height:418px;
  align-items:stretch;
}

.bhpc-family-panel,
.bhpc-business-panel,
.bhpc-hands-panel,
.bhpc-mural-card{
  background-size:cover;
  background-position:center;
  min-height:300px;
}

.bhpc-family-panel{
  background:
    linear-gradient(rgba(6,21,35,.05),rgba(6,21,35,.36)),
    url('../img/home-hero-family.jpg');
  background-size:cover;
  background-position:center;
}

.bhpc-business-panel{
  background:
    linear-gradient(rgba(6,21,35,.02),rgba(6,21,35,.30)),
    url('../img/home-hero-business.jpg');
  background-size:cover;
  background-position:center;
}

.bhpc-hero-copy{
  display:flex;
  flex-direction:column;
  justify-content:center;
  align-items:center;
  text-align:center;
  padding:56px 34px;
  background:
    radial-gradient(circle at 50% 35%,rgba(255,255,255,.10),transparent 34%),
    linear-gradient(135deg,#071827,#0c2235 58%,#071827);
}

.bhpc-hero-copy h1{
  margin:0;
  max-width:780px;
  color:#fff;
  font-size:clamp(2.15rem,4.2vw,4rem);
  line-height:1.02;
  text-transform:uppercase;
  letter-spacing:0;
  font-weight:950;
  overflow-wrap:normal;
}

.bhpc-hero-copy p{
  font-size:1.35rem;
  font-weight:850;
  margin:24px 0 0;
  color:#fff;
}

.bhpc-actions{
  display:flex;
  flex-wrap:wrap;
  gap:14px;
  margin-top:24px;
}

.bhpc-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:44px;
  padding:0 22px;
  border:1px solid var(--bhpc-orange);
  border-radius:8px;
  background:var(--bhpc-orange);
  color:#fff;
  text-decoration:none;
  font-size:.86rem;
  font-weight:900;
  text-transform:uppercase;
  box-shadow:0 14px 30px rgba(244,138,11,.28);
}

.bhpc-btn--small{
  min-height:38px;
  padding:0 16px;
}

.bhpc-btn--ghost-light,
.bhpc-btn--outline-light{
  background:transparent;
  color:#fff;
  border-color:rgba(255,255,255,.72);
  box-shadow:none;
}

.bhpc-btn--outline{
  background:#fff;
  color:var(--bhpc-orange);
  box-shadow:none;
}

.bhpc-btn--wide{
  width:100%;
}

.bhpc-help-strip{
  max-width:1180px;
  margin:-1px auto 0;
  position:relative;
  z-index:4;
  display:grid;
  grid-template-columns:1.2fr repeat(6,1fr);
  background:#071522;
  color:#fff;
  box-shadow:0 18px 48px rgba(6,21,35,.20);
}

.bhpc-help-strip strong{
  display:flex;
  align-items:center;
  justify-content:center;
  text-align:center;
  padding:18px;
  font-size:.88rem;
  text-transform:uppercase;
}

.bhpc-help-strip a{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:8px;
  min-height:128px;
  padding:14px;
  color:#fff;
  text-align:center;
  text-decoration:none;
  border-left:1px solid rgba(255,255,255,.18);
}

.bhpc-help-strip small{
  color:rgba(255,255,255,.76);
  font-size:.75rem;
}

.bhpc-icon{
  width:42px;
  height:42px;
  border-radius:8px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  background:rgba(244,138,11,.12);
  border:2px solid var(--bhpc-orange);
  color:var(--bhpc-orange);
}

.bhpc-icon:before{
  content:"";
  width:18px;
  height:18px;
  border:2px solid currentColor;
  border-radius:4px;
}

.bhpc-icon--heart:before{border-radius:50% 50% 45% 45%;transform:rotate(45deg)}
.bhpc-icon--people:before,.bhpc-icon--family:before{border-radius:50%;box-shadow:12px 4px 0 -4px currentColor,-12px 4px 0 -4px currentColor}
.bhpc-icon--briefcase:before{border-radius:3px;border-top-width:5px}
.bhpc-icon--food:before{width:7px;border-radius:5px;box-shadow:11px 0 0 -2px currentColor}
.bhpc-icon--doc:before{border-radius:2px}
.bhpc-icon--sponsor:before{border-radius:50%;box-shadow:0 0 0 5px rgba(244,138,11,.16)}

.bhpc-mission,
.bhpc-involved{
  display:grid;
  grid-template-columns:minmax(280px,1fr) minmax(280px,1fr);
  max-width:1280px;
  margin:0 auto;
  padding:78px 28px;
  gap:54px;
  align-items:center;
}

.bhpc-mission h2,
.bhpc-section h2,
.bhpc-membership-band h2,
.bhpc-impact h2,
.bhpc-involved h2,
.bhpc-page-hero h1,
.bhpc-footer-cta h2{
  margin:0 0 18px;
  line-height:1.08;
  font-weight:950;
  letter-spacing:0;
}

.bhpc-section-label{
  color:var(--bhpc-orange);
  font-weight:950;
  text-transform:uppercase;
  font-size:.78rem;
}

.bhpc-mission p,
.bhpc-involved p,
.bhpc-page-hero p,
.bhpc-footer-cta p{
  color:var(--bhpc-muted);
  font-size:1.05rem;
}

.bhpc-mural-card{
  min-height:420px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:8px;
  background:
    linear-gradient(rgba(6,21,35,.02),rgba(6,21,35,.06)),
    url('../img/mission-community.jpg');
  background-size:cover;
  background-position:center;
  box-shadow:var(--bhpc-shadow);
}

.bhpc-mural-card span{
  display:none;
}

.bhpc-section{
  max-width:1280px;
  margin:0 auto;
  padding:70px 28px;
}

.bhpc-centered{
  text-align:center;
}

.bhpc-feature-grid,
.bhpc-card-grid,
.bhpc-mini-grid,
.bhpc-plans,
.bhpc-stat-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:22px;
}

.bhpc-card,
.bhpc-plan,
.bhpc-panel,
.bhpc-stat,
.bhpc-note{
  background:#fff;
  border:1px solid var(--bhpc-border);
  border-radius:8px;
  box-shadow:0 10px 35px rgba(6,21,35,.08);
  padding:24px;
}

.bhpc-card{
  position:relative;
  overflow:hidden;
  padding:24px;
}

.bhpc-card--media{
  padding:0 0 22px;
}

.bhpc-card--media .bhpc-card-media{
  margin:0;
  height:142px;
  overflow:hidden;
  background:#eef3f8;
}

.bhpc-card--media .bhpc-card-media img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

.bhpc-card--media .bhpc-icon{
  margin:-24px 0 0 22px;
  position:relative;
  z-index:2;
  background:var(--bhpc-orange);
  color:#fff;
  border-color:var(--bhpc-orange);
}

.bhpc-card--media h3,
.bhpc-card--media p,
.bhpc-card--media a{
  margin-left:22px;
  margin-right:22px;
}

.bhpc-card h3,
.bhpc-plan h3,
.bhpc-panel h2{
  margin:14px 0 10px;
  font-size:1rem;
  line-height:1.2;
  font-weight:950;
  text-transform:uppercase;
}

.bhpc-card p,
.bhpc-plan p{
  color:var(--bhpc-muted);
  font-size:.94rem;
}

.bhpc-card a{
  color:var(--bhpc-orange);
  font-weight:900;
  text-decoration:none;
}

.bhpc-membership-band{
  background:linear-gradient(180deg,#f7fbff,#fff);
  text-align:center;
  padding:70px 28px;
}

.bhpc-plans{
  max-width:1200px;
  margin:28px auto;
}

.bhpc-plans--compact{
  grid-template-columns:repeat(4,minmax(0,1fr));
}

.bhpc-plans--full{
  grid-template-columns:repeat(5,minmax(0,1fr));
}

.bhpc-plan--popular{
  border-color:var(--bhpc-orange);
  box-shadow:0 18px 45px rgba(244,138,11,.18);
}

.bhpc-plan strong{
  display:block;
  color:var(--bhpc-orange);
  font-size:1.05rem;
}

.bhpc-plan ul{
  text-align:left;
  color:var(--bhpc-muted);
  padding-left:18px;
  min-height:92px;
}

.bhpc-impact{
  background:
    linear-gradient(rgba(6,21,35,.90),rgba(6,21,35,.92)),
    url('../img/impact-bg.jpg');
  background-size:cover;
  background-position:center;
  color:#fff;
  text-align:center;
  padding:56px 28px;
}

.bhpc-impact div{
  max-width:1000px;
  margin:20px auto 0;
  display:grid;
  grid-template-columns:repeat(4,auto auto);
  gap:8px 16px;
  align-items:center;
  justify-content:center;
}

.bhpc-impact strong{
  color:var(--bhpc-gold);
  font-size:2rem;
  font-weight:950;
}

.bhpc-impact span{
  color:#fff;
  font-weight:800;
  text-align:left;
}

.bhpc-hands-panel{
  min-height:330px;
  border-radius:8px;
  background:
    linear-gradient(rgba(6,21,35,.02),rgba(6,21,35,.08)),
    url('../img/involved-team.jpg');
  background-size:cover;
  background-position:center;
}

.bhpc-home-footer{
  display:grid;
  grid-template-columns:1.4fr 1fr 1fr 1.15fr;
  gap:42px;
  padding:54px max(28px,calc((100vw - 1280px)/2 + 28px)) 28px;
  color:#fff;
  background:radial-gradient(circle at 15% 0%,rgba(244,138,11,.12),transparent 32%),linear-gradient(135deg,#061523,#0b1f32);
}

.bhpc-home-footer p{
  color:rgba(255,255,255,.78);
  max-width:330px;
}

.bhpc-home-footer h3{
  margin:0 0 16px;
  color:#fff;
  font-size:.86rem;
  text-transform:uppercase;
  font-weight:950;
}

.bhpc-home-footer a{
  display:block;
  color:#fff;
  text-decoration:none;
  margin:0 0 8px;
  font-weight:700;
  font-size:.9rem;
}

.bhpc-home-footer .bhpc-form{
  gap:10px;
}

.bhpc-home-footer .bhpc-form h3{
  display:none;
}

.bhpc-home-footer .bhpc-form label{
  color:#fff;
  font-size:.8rem;
}

.bhpc-home-footer .bhpc-form input{
  background:transparent;
  border-color:rgba(255,255,255,.36);
  color:#fff;
}

.bhpc-page-hero{
  max-width:1280px;
  margin:0 auto 34px;
  padding:58px 36px;
  color:#fff;
  background:radial-gradient(circle at 85% 15%,rgba(255,193,90,.32),transparent 28%),linear-gradient(135deg,#061523,#123453);
  border-radius:8px;
  box-shadow:var(--bhpc-shadow);
}

.bhpc-page-hero h1{
  max-width:860px;
  color:#fff;
  font-size:clamp(2.4rem,4vw,4.4rem);
}

.bhpc-page-hero p{
  max-width:760px;
  color:rgba(255,255,255,.82);
}

.bhpc-two-col{
  display:grid;
  grid-template-columns:minmax(0,1.3fr) minmax(280px,.7fr);
  gap:28px;
}

.bhpc-footer-cta{
  max-width:1180px;
  margin:50px auto;
  padding:42px 30px;
  background:var(--bhpc-morning);
  border:1px solid #f5dfbb;
  border-radius:8px;
}

.bhpc-form{
  display:grid;
  gap:16px;
  max-width:860px;
}

.bhpc-form-row{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:16px;
}

.bhpc-form label{
  display:grid;
  gap:8px;
  font-weight:800;
}

.bhpc-form input,
.bhpc-form textarea{
  width:100%;
  box-sizing:border-box;
  border:1px solid var(--bhpc-border);
  border-radius:8px;
  padding:12px 14px;
  font:inherit;
}

.bhpc-form-band{
  background:#f8fbff;
  border:1px solid var(--bhpc-border);
  border-radius:8px;
}

.bhpc-faq{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:18px;
}

.bhpc-faq article{
  padding:22px;
  background:#fff;
  border:1px solid var(--bhpc-border);
  border-radius:8px;
  box-shadow:0 10px 30px rgba(6,21,35,.06);
}

.bhpc-faq h3{
  margin:0 0 10px;
  font-size:1rem;
  line-height:1.25;
  font-weight:900;
}

.bhpc-faq p{
  margin:0;
  color:var(--bhpc-muted);
}

.bhpc-dashboard{
  display:grid;
  grid-template-columns:320px minmax(0,1fr);
  min-height:100vh;
  background:#f5f8fc;
}

.bhpc-dash-sidebar{
  background:linear-gradient(180deg,#061523,#0d2639);
  color:#fff;
  padding:28px 20px;
}

.bhpc-dash-sidebar a{
  display:block;
  color:#fff;
  text-decoration:none;
  padding:13px 16px;
  margin:4px 0;
  border-radius:8px;
  font-weight:760;
}

.bhpc-dash-sidebar a:hover,
.bhpc-dash-sidebar a:first-of-type{
  background:rgba(255,255,255,.10);
  color:var(--bhpc-gold);
}

.bhpc-upgrade-box{
  margin-top:42px;
  padding:24px;
  border:1px solid rgba(255,193,90,.35);
  border-radius:8px;
  background:linear-gradient(135deg,rgba(255,193,90,.10),rgba(255,255,255,.05));
  text-align:center;
}

.bhpc-dash-main{
  min-width:0;
}

.bhpc-dash-top{
  min-height:86px;
  display:flex;
  align-items:center;
  gap:22px;
  padding:0 36px;
  background:#fff;
  box-shadow:0 2px 22px rgba(6,21,35,.08);
}

.bhpc-dash-top h1{
  font-size:1.55rem;
  margin:0;
}

.bhpc-menu-toggle{
  border:0;
  background:#fff;
  font-weight:900;
  font-size:.85rem;
}

.bhpc-search{
  flex:1;
  display:flex;
  max-width:520px;
  margin-left:auto;
}

.bhpc-search input{
  flex:1;
  border:1px solid var(--bhpc-border);
  border-radius:8px 0 0 8px;
}

.bhpc-search button{
  border:1px solid var(--bhpc-border);
  border-left:0;
  border-radius:0 8px 8px 0;
  background:#fff;
  padding:0 14px;
  font-weight:800;
}

.bhpc-user-chip{
  display:flex;
  align-items:center;
  gap:12px;
}

.bhpc-user-chip>b{
  display:grid;
  place-items:center;
  width:46px;
  height:46px;
  border-radius:50%;
  background:var(--bhpc-navy);
  color:#fff;
}

.bhpc-user-chip span{
  display:grid;
  font-weight:850;
}

.bhpc-user-chip small{
  color:var(--bhpc-muted);
  font-weight:600;
}

.bhpc-dash-hero{
  margin:28px 36px;
  min-height:235px;
  display:flex;
  align-items:center;
  padding:34px;
  border-radius:8px;
  color:#fff;
  background:
    linear-gradient(90deg,#0a1d30 0%,rgba(10,29,48,.93) 44%,rgba(10,29,48,.30) 100%),
    url('../img/dashboard-hero.jpg');
  background-size:cover;
  background-position:right center;
  box-shadow:var(--bhpc-shadow);
}

.bhpc-dash-hero h2{
  font-size:2rem;
  margin:0 0 12px;
  color:#fff;
}

.bhpc-dash-layout{
  display:grid;
  grid-template-columns:minmax(0,1fr) 360px;
  gap:28px;
  padding:0 36px 36px;
}

.bhpc-stat-grid{
  grid-template-columns:repeat(5,minmax(0,1fr));
}

.bhpc-stat span{
  display:block;
  font-size:2rem;
  font-weight:950;
}

.bhpc-stat b{
  display:block;
  color:#26384a;
}

.bhpc-stat a{
  color:#075ca8;
  text-decoration:none;
  font-size:.82rem;
  font-weight:850;
}

.bhpc-panel-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:28px;
  margin-top:28px;
}

.bhpc-panel{
  margin-bottom:28px;
}

.bhpc-panel>a{
  display:block;
  color:var(--bhpc-ink);
  text-decoration:none;
  padding:12px 0;
  border-bottom:1px solid var(--bhpc-border);
}

.bhpc-membership-card{
  padding:28px;
  border-radius:8px;
  color:#fff;
  background:linear-gradient(135deg,#061523,#102f48);
  box-shadow:var(--bhpc-shadow);
  margin-bottom:28px;
}

.bhpc-membership-row{
  display:flex;
  align-items:center;
  gap:14px;
}

.bhpc-membership-row em{
  margin-left:auto;
  background:#18a56f;
  border-radius:6px;
  padding:4px 9px;
  text-transform:uppercase;
  font-style:normal;
  font-size:.75rem;
  font-weight:900;
}

.bhpc-activity,
.bhpc-events{
  list-style:none;
  padding:0;
  margin:0;
}

.bhpc-activity li,
.bhpc-events li{
  display:flex;
  justify-content:space-between;
  gap:16px;
  padding:13px 0;
  border-bottom:1px solid var(--bhpc-border);
}

.bhpc-events li{
  justify-content:flex-start;
}

.bhpc-events time{
  width:48px;
  text-align:center;
  border-radius:8px;
  background:#f0f6ff;
  color:#075ca8;
  font-weight:950;
  text-transform:uppercase;
}

.bhpc-activity small,
.bhpc-events small{
  color:var(--bhpc-muted);
}

.bhpc-order-list{
  display:grid;
  gap:14px;
}

.bhpc-order-list article{
  display:grid;
  grid-template-columns:96px 1fr auto;
  gap:10px;
  align-items:center;
  padding:14px;
  border:1px solid var(--bhpc-border);
  border-radius:8px;
}

.bhpc-order-list img{
  width:90px;
  height:66px;
  object-fit:cover;
  border-radius:6px;
}

.bhpc-order-list progress{
  width:100%;
  height:9px;
  accent-color:#18a56f;
}

.bhpc-settings-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:14px;
}

.bhpc-settings-grid label{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  padding:16px;
  background:#fff;
  border:1px solid var(--bhpc-border);
  border-radius:8px;
  font-weight:800;
}

@media (max-width: 1100px){
  .bhpc-home-links{display:none}
  .bhpc-hero-grid{grid-template-columns:1fr}
  .bhpc-family-panel,.bhpc-business-panel{display:none}
  .bhpc-help-strip{grid-template-columns:repeat(2,1fr);margin:0}
  .bhpc-help-strip strong{grid-column:1/-1}
  .bhpc-feature-grid,.bhpc-card-grid,.bhpc-plans,.bhpc-stat-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .bhpc-faq{grid-template-columns:1fr 1fr}
  .bhpc-dashboard{grid-template-columns:1fr}
  .bhpc-dash-sidebar{display:none}
  .bhpc-dash-layout{grid-template-columns:1fr}
  .bhpc-home-footer{grid-template-columns:1fr 1fr}
}

@media (max-width: 720px){
  .bhpc-home-nav,.bhpc-mission,.bhpc-involved,.bhpc-two-col,.bhpc-panel-grid,.bhpc-form-row{grid-template-columns:1fr;display:grid}
  .bhpc-feature-grid,.bhpc-card-grid,.bhpc-mini-grid,.bhpc-plans,.bhpc-stat-grid,.bhpc-settings-grid{grid-template-columns:1fr}
  .bhpc-faq{grid-template-columns:1fr}
  .bhpc-help-strip{grid-template-columns:1fr}
  .bhpc-dash-top{padding:18px;flex-wrap:wrap}
  .bhpc-dash-hero,.bhpc-dash-layout{margin:18px;padding:22px}
  .bhpc-search{order:3;flex-basis:100%;margin-left:0}
  .bhpc-user-chip span{display:none}
  .bhpc-home-footer{grid-template-columns:1fr}
}

/* Phase 8 recovery dashboard system UI */
.bhpc-inline-form{display:inline-flex;align-items:center;gap:8px;margin:10px 0 0}
.bhpc-resource-action-band{margin:28px 0;padding:18px;border:1px solid var(--bhpc-border);border-radius:10px;background:#fff}
.bhpc-message-compose{padding:22px;margin:0 0 24px;border:1px solid var(--bhpc-border);border-radius:10px;background:#fff;box-shadow:var(--bhpc-shadow)}
.bhpc-message-compose input,.bhpc-message-compose textarea,.bhpc-message-compose select{width:100%;max-width:100%;border:1px solid var(--bhpc-border);border-radius:8px;padding:10px 12px;margin-top:6px;background:#fff;color:var(--bhpc-text)}
.bhpc-message-card--unread{border-color:#075ca8;box-shadow:0 0 0 2px rgba(7,92,168,.08)}
.bhpc-message-card small,.bhpc-card small{display:block;margin:12px 0;color:var(--bhpc-muted);font-weight:700}
.bhpc-order-list article{grid-template-columns:1fr auto}
.bhpc-order-list article>span{display:inline-flex;align-items:center;justify-content:center;border-radius:999px;padding:7px 11px;background:#f0f6ff;color:#075ca8;font-weight:900;white-space:nowrap}
.bhpc-events span{display:grid;gap:8px}
.bhpc-events .bhpc-inline-form{margin-top:4px}
@media (max-width: 720px){.bhpc-order-list article{grid-template-columns:1fr}.bhpc-order-list article>span{justify-self:start}}

/* Phase 9 completion: member workflow notices and compact management controls */
.bhpc-alert{border-radius:16px;margin:0 0 18px;padding:14px 16px;font-weight:700;border:1px solid rgba(255,255,255,.18);background:#ecfdf5;color:#065f46;box-shadow:0 12px 30px rgba(15,23,42,.08)}
.bhpc-alert--error{background:#fef2f2;color:#991b1b}
.bhpc-message-compose select,.bhpc-message-compose input,.bhpc-message-compose textarea{width:100%;border-radius:12px;border:1px solid rgba(15,23,42,.16);padding:11px 12px;background:#fff;color:#111827}
.bhpc-message-compose{margin:0 0 22px;padding:20px;border-radius:20px;background:#fff;box-shadow:0 18px 50px rgba(15,23,42,.08)}
.bhpc-message-card--unread{border:2px solid rgba(37,99,235,.35)}
.bhpc-order-list article a,.bhpc-card a + a{display:inline-flex;margin-left:10px}

/* Dashboard layout repair: force the member dashboard to use the available viewport width
   even when it is rendered inside a constrained page/content wrapper. */
.bhpc-dashboard{
  width:100vw;
  max-width:100vw;
  margin-left:calc(50% - 50vw);
  margin-right:calc(50% - 50vw);
  box-sizing:border-box;
  grid-template-columns:minmax(260px,300px) minmax(0,1fr);
  overflow-x:hidden;
}

.bhpc-dashboard *,
.bhpc-dashboard *::before,
.bhpc-dashboard *::after{
  box-sizing:border-box;
}

.bhpc-dash-main,
.bhpc-dash-content,
.bhpc-dash-rail,
.bhpc-panel,
.bhpc-card,
.bhpc-note,
.bhpc-stat,
.bhpc-membership-card{
  min-width:0;
}

.bhpc-dash-main{
  width:100%;
  max-width:none;
  overflow:hidden;
}

.bhpc-dash-top,
.bhpc-dash-hero,
.bhpc-dash-layout{
  max-width:1500px;
  margin-left:auto;
  margin-right:auto;
  width:calc(100% - 72px);
}

.bhpc-dash-top{
  margin-top:0;
  padding-left:0;
  padding-right:0;
}

.bhpc-dash-hero{
  margin-top:28px;
  margin-bottom:28px;
}

.bhpc-dash-layout{
  padding:0 0 40px;
  grid-template-columns:minmax(0,1fr) minmax(300px,360px);
  align-items:start;
}

.bhpc-stat-grid{
  display:grid;
  grid-template-columns:repeat(6,minmax(140px,1fr));
  gap:18px;
  width:100%;
}

.bhpc-stat{
  min-height:132px;
  display:flex;
  flex-direction:column;
  justify-content:center;
  overflow-wrap:normal;
  word-break:normal;
}

.bhpc-stat span,
.bhpc-stat b,
.bhpc-stat a,
.bhpc-panel,
.bhpc-panel p,
.bhpc-note,
.bhpc-note p,
.bhpc-card,
.bhpc-card p{
  overflow-wrap:normal;
  word-break:normal;
  white-space:normal;
}

.bhpc-stat b{
  line-height:1.25;
}

.bhpc-panel-grid{
  grid-template-columns:repeat(2,minmax(300px,1fr));
  align-items:start;
}

.bhpc-panel,
.bhpc-note,
.bhpc-card,
.bhpc-message-compose,
.bhpc-membership-card{
  width:100%;
  max-width:100%;
  overflow:hidden;
}

.bhpc-order-list article{
  grid-template-columns:minmax(0,1fr) auto;
}

.bhpc-dash-sidebar{
  width:100%;
}

.bhpc-dash-sidebar .bhpc-btn,
.bhpc-upgrade-box .bhpc-btn{
  width:100%;
  min-width:0;
  white-space:normal;
  text-align:center;
}

.bhpc-search label{
  flex:1;
  min-width:0;
}

@media (max-width: 1320px){
  .bhpc-dash-layout{
    grid-template-columns:1fr;
  }
  .bhpc-dash-rail{
    display:grid;
    grid-template-columns:repeat(2,minmax(300px,1fr));
    gap:24px;
  }
  .bhpc-dash-rail .bhpc-panel,
  .bhpc-dash-rail .bhpc-membership-card{
    margin-bottom:0;
  }
}

@media (max-width: 1180px){
  .bhpc-stat-grid{
    grid-template-columns:repeat(3,minmax(170px,1fr));
  }
}

@media (max-width: 1100px){
  .bhpc-dashboard{
    width:100%;
    max-width:100%;
    margin-left:0;
    margin-right:0;
  }
  .bhpc-dash-top,
  .bhpc-dash-hero,
  .bhpc-dash-layout{
    width:calc(100% - 36px);
  }
}

@media (max-width: 820px){
  .bhpc-panel-grid,
  .bhpc-dash-rail{
    grid-template-columns:1fr;
  }
  .bhpc-stat-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}

@media (max-width: 560px){
  .bhpc-dash-top,
  .bhpc-dash-hero,
  .bhpc-dash-layout{
    width:calc(100% - 28px);
  }
  .bhpc-stat-grid{
    grid-template-columns:1fr;
  }
  .bhpc-dash-hero,
  .bhpc-dash-layout{
    margin-left:auto;
    margin-right:auto;
  }
}

/* Phase 11 dashboard layout correction
   Keep the dashboard inside brickhouse-platform-core while breaking it out of narrow
   page wrappers and making the cards respond to the real dashboard width. */
body:has(.bhpc-dashboard) .entry-content,
body:has(.bhpc-dashboard) .wp-block-post-content,
body:has(.bhpc-dashboard) .page-content,
body:has(.bhpc-dashboard) .post-content,
body:has(.bhpc-dashboard) .content-area,
body:has(.bhpc-dashboard) .site-main,
body:has(.bhpc-dashboard) main,
body:has(.bhpc-dashboard) article,
body:has(.bhpc-dashboard) .hentry{
  max-width:none !important;
  width:100% !important;
  overflow:visible !important;
}

html body .bhpc-dashboard{
  position:relative !important;
  left:50% !important;
  right:50% !important;
  width:100vw !important;
  max-width:none !important;
  margin-left:-50vw !important;
  margin-right:-50vw !important;
  display:grid !important;
  grid-template-columns:minmax(240px,280px) minmax(0,1fr) !important;
  align-items:stretch !important;
  overflow-x:clip !important;
}

html body .bhpc-dash-sidebar{
  width:100% !important;
  max-width:280px !important;
  padding:28px 18px !important;
}

html body .bhpc-dash-sidebar .bhpc-logo span{
  font-size:1.28rem !important;
}

html body .bhpc-dash-main{
  width:100% !important;
  max-width:none !important;
  min-width:0 !important;
  overflow:visible !important;
  container-name:bhpc-dashboard-main;
  container-type:inline-size;
}

html body .bhpc-dash-top,
html body .bhpc-dash-hero,
html body .bhpc-dash-layout{
  width:min(1500px, calc(100% - 72px)) !important;
  max-width:1500px !important;
  margin-left:auto !important;
  margin-right:auto !important;
}

html body .bhpc-dash-top{
  display:flex !important;
  align-items:center !important;
  gap:18px !important;
  margin-top:0 !important;
  padding-left:0 !important;
  padding-right:0 !important;
  overflow:visible !important;
}

html body .bhpc-dash-hero{
  margin-top:28px !important;
  margin-bottom:28px !important;
}

html body .bhpc-dash-layout{
  display:grid !important;
  grid-template-columns:minmax(0,1fr) minmax(300px,360px) !important;
  gap:28px !important;
  padding:0 0 42px !important;
  align-items:start !important;
}

html body .bhpc-dash-content,
html body .bhpc-dash-rail{
  min-width:0 !important;
  max-width:100% !important;
}

html body .bhpc-stat-grid{
  display:grid !important;
  grid-template-columns:repeat(auto-fit, minmax(170px, 1fr)) !important;
  gap:18px !important;
  width:100% !important;
  min-width:0 !important;
}

html body .bhpc-stat{
  width:auto !important;
  min-width:0 !important;
  min-height:128px !important;
  padding:20px !important;
  overflow:visible !important;
}

html body .bhpc-stat span{
  font-size:clamp(1.55rem, 2vw, 2.2rem) !important;
  line-height:1 !important;
}

html body .bhpc-stat b,
html body .bhpc-stat a,
html body .bhpc-panel h2,
html body .bhpc-panel h3,
html body .bhpc-panel p,
html body .bhpc-note h3,
html body .bhpc-note p,
html body .bhpc-card h3,
html body .bhpc-card p{
  white-space:normal !important;
  overflow-wrap:break-word !important;
  word-break:normal !important;
  writing-mode:horizontal-tb !important;
}

html body .bhpc-panel-grid{
  display:grid !important;
  grid-template-columns:repeat(auto-fit, minmax(280px, 1fr)) !important;
  gap:24px !important;
  width:100% !important;
}

html body .bhpc-panel,
html body .bhpc-note,
html body .bhpc-card,
html body .bhpc-message-compose,
html body .bhpc-membership-card{
  width:100% !important;
  max-width:100% !important;
  min-width:0 !important;
  overflow:visible !important;
}

html body .bhpc-dash-rail{
  display:block !important;
}

html body .bhpc-dash-rail .bhpc-panel,
html body .bhpc-dash-rail .bhpc-membership-card{
  margin-bottom:28px !important;
}

html body .bhpc-search{
  min-width:240px !important;
}

html body .bhpc-user-chip{
  min-width:max-content !important;
}

@container bhpc-dashboard-main (max-width: 1100px){
  .bhpc-dash-layout{
    grid-template-columns:1fr !important;
  }
  .bhpc-dash-rail{
    display:grid !important;
    grid-template-columns:repeat(auto-fit, minmax(280px, 1fr)) !important;
    gap:24px !important;
  }
  .bhpc-dash-rail .bhpc-panel,
  .bhpc-dash-rail .bhpc-membership-card{
    margin-bottom:0 !important;
  }
}

@container bhpc-dashboard-main (max-width: 820px){
  .bhpc-dash-top{
    flex-wrap:wrap !important;
    min-height:auto !important;
    padding-top:16px !important;
    padding-bottom:16px !important;
  }
  .bhpc-search{
    order:3 !important;
    flex-basis:100% !important;
    max-width:none !important;
    min-width:0 !important;
    margin-left:0 !important;
  }
  .bhpc-stat-grid{
    grid-template-columns:repeat(auto-fit, minmax(150px, 1fr)) !important;
  }
  .bhpc-panel-grid,
  .bhpc-dash-rail{
    grid-template-columns:1fr !important;
  }
}

@media (max-width: 900px){
  html body .bhpc-dashboard{
    left:auto !important;
    right:auto !important;
    width:100% !important;
    margin-left:0 !important;
    margin-right:0 !important;
    grid-template-columns:1fr !important;
  }
  html body .bhpc-dash-sidebar{
    display:none !important;
  }
  html body .bhpc-dash-top,
  html body .bhpc-dash-hero,
  html body .bhpc-dash-layout{
    width:calc(100% - 32px) !important;
  }
}

/* Phase 12 dashboard polish: fix hero outline-button hover contrast and sidebar logo header wrapping. */
html body .bhpc-dash-hero .bhpc-btn--ghost-light,
html body .bhpc-dash-hero .bhpc-btn--outline-light{
  background:rgba(6,21,35,.22) !important;
  color:#ffffff !important;
  border-color:rgba(255,255,255,.82) !important;
  text-shadow:none !important;
}

html body .bhpc-dash-hero .bhpc-btn--ghost-light:hover,
html body .bhpc-dash-hero .bhpc-btn--ghost-light:focus,
html body .bhpc-dash-hero .bhpc-btn--ghost-light:active,
html body .bhpc-dash-hero .bhpc-btn--outline-light:hover,
html body .bhpc-dash-hero .bhpc-btn--outline-light:focus,
html body .bhpc-dash-hero .bhpc-btn--outline-light:active{
  background:#ffffff !important;
  color:#061523 !important;
  border-color:#ffffff !important;
  box-shadow:0 14px 30px rgba(6,21,35,.22) !important;
  opacity:1 !important;
  filter:none !important;
  text-decoration:none !important;
}

html body .bhpc-dash-hero .bhpc-btn--ghost-light:hover *,
html body .bhpc-dash-hero .bhpc-btn--ghost-light:focus *,
html body .bhpc-dash-hero .bhpc-btn--outline-light:hover *,
html body .bhpc-dash-hero .bhpc-btn--outline-light:focus *{
  color:#061523 !important;
}

html body .bhpc-dash-sidebar .bhpc-logo{
  display:grid !important;
  grid-template-columns:auto auto !important;
  align-items:end !important;
  justify-content:start !important;
  column-gap:4px !important;
  row-gap:3px !important;
  width:100% !important;
  max-width:100% !important;
  min-width:0 !important;
  margin:0 0 18px !important;
  padding:16px 14px !important;
  border-radius:10px !important;
  background:rgba(255,255,255,.08) !important;
  border:1px solid rgba(255,255,255,.12) !important;
  overflow:hidden !important;
  line-height:1.02 !important;
  text-decoration:none !important;
}

html body .bhpc-dash-sidebar .bhpc-logo span,
html body .bhpc-dash-sidebar .bhpc-logo small,
html body .bhpc-dash-sidebar .bhpc-logo em{
  display:block !important;
  min-width:0 !important;
  max-width:100% !important;
  writing-mode:horizontal-tb !important;
  white-space:nowrap !important;
  overflow-wrap:normal !important;
  word-break:normal !important;
  text-decoration:none !important;
}

html body .bhpc-dash-sidebar .bhpc-logo span{
  grid-column:1 !important;
  grid-row:1 !important;
  font-size:clamp(1.05rem,1.16vw,1.2rem) !important;
  line-height:1 !important;
  letter-spacing:-.02em !important;
}

html body .bhpc-dash-sidebar .bhpc-logo small{
  grid-column:2 !important;
  grid-row:1 !important;
  align-self:end !important;
  margin:0 0 1px !important;
  font-size:.78rem !important;
  line-height:1 !important;
  color:#f48a0b !important;
}

html body .bhpc-dash-sidebar .bhpc-logo em{
  grid-column:1 / -1 !important;
  grid-row:2 !important;
  margin:0 !important;
  font-size:.64rem !important;
  line-height:1.25 !important;
  letter-spacing:.045em !important;
  color:rgba(255,255,255,.78) !important;
  overflow:hidden !important;
  text-overflow:ellipsis !important;
}

@media (max-width: 1100px){
  html body .bhpc-dash-sidebar .bhpc-logo{
    padding:14px 12px !important;
  }
  html body .bhpc-dash-sidebar .bhpc-logo span{
    font-size:1.02rem !important;
  }
  html body .bhpc-dash-sidebar .bhpc-logo small{
    font-size:.72rem !important;
  }
}

/* Final dashboard button polish: preserve membership card button contrast on hover/focus. */
html body .bhpc-dashboard .bhpc-membership-card a.bhpc-btn,
html body .bhpc-dashboard .bhpc-membership-card a.bhpc-btn:visited,
html body .bhpc-dashboard .bhpc-membership-card .bhpc-btn--outline-light,
html body .bhpc-dashboard .bhpc-membership-card .bhpc-btn--outline-light:visited{
  color:#ffffff !important;
  -webkit-text-fill-color:#ffffff !important;
  background:rgba(255,255,255,.04) !important;
  border-color:rgba(255,255,255,.78) !important;
  text-shadow:none !important;
  opacity:1 !important;
  filter:none !important;
  text-decoration:none !important;
}

html body .bhpc-dashboard .bhpc-membership-card a.bhpc-btn:hover,
html body .bhpc-dashboard .bhpc-membership-card a.bhpc-btn:focus,
html body .bhpc-dashboard .bhpc-membership-card a.bhpc-btn:active,
html body .bhpc-dashboard .bhpc-membership-card .bhpc-btn--outline-light:hover,
html body .bhpc-dashboard .bhpc-membership-card .bhpc-btn--outline-light:focus,
html body .bhpc-dashboard .bhpc-membership-card .bhpc-btn--outline-light:active{
  color:#061523 !important;
  -webkit-text-fill-color:#061523 !important;
  background:#ffffff !important;
  border-color:#ffffff !important;
  box-shadow:0 14px 30px rgba(6,21,35,.24) !important;
  text-shadow:none !important;
  opacity:1 !important;
  filter:none !important;
  text-decoration:none !important;
}

html body .bhpc-dashboard .bhpc-membership-card a.bhpc-btn:hover *,
html body .bhpc-dashboard .bhpc-membership-card a.bhpc-btn:focus *,
html body .bhpc-dashboard .bhpc-membership-card .bhpc-btn--outline-light:hover *,
html body .bhpc-dashboard .bhpc-membership-card .bhpc-btn--outline-light:focus *{
  color:#061523 !important;
  -webkit-text-fill-color:#061523 !important;
}
