.ourhoa-wrap { max-width: 980px; margin: 0 auto; padding: 16px; }
.ourhoa-card { background: rgba(255,255,255,0.9); border-radius: 16px; padding: 16px; margin: 12px 0; box-shadow: 0 4px 20px rgba(0,0,0,0.08); }
.ourhoa-btn { display: inline-block; padding: 10px 14px; border-radius: 12px; border: 1px solid rgba(0,0,0,0.15); background: #111; color: #fff; cursor: pointer; margin-right: 8px; }
.ourhoa-btn:hover { opacity: 0.9; }
.ourhoa-btn.ourhoa-btn-secondary { background: #fff; color: #111; }
.ourhoa-btn.ourhoa-btn-secondary:hover { opacity: 0.9; }
.ourhoa-status { margin-top: 10px; padding: 10px 12px; border-radius: 12px; background: rgba(0,0,0,0.04); }
.ourhoa-status.is-ok { background: rgba(0, 128, 0, 0.08); }
.ourhoa-status.is-err { background: rgba(220, 0, 0, 0.08); }
.ourhoa-muted { opacity: 0.75; font-size: 14px; }

.ourhoa-portal-header { display:flex; justify-content:space-between; align-items:baseline; gap:12px; margin-bottom: 8px; }
.ourhoa-portal-title { font-size: 18px; font-weight: 700; }
.ourhoa-election { padding: 10px 0; border-bottom: 1px solid rgba(0,0,0,0.08); }
.ourhoa-election-title { font-weight: 600; margin-bottom: 4px; }
.ourhoa-link { display:inline-block; margin-top: 8px; text-decoration: underline; }
.ourhoa-options { margin-top: 12px; display: grid; gap: 10px; }
.ourhoa-option { display:flex; justify-content: space-between; align-items:center; padding: 10px 12px; border: 1px solid rgba(0,0,0,0.10); border-radius: 14px; }
.ourhoa-option-label { font-weight: 600; }


/* Admin */
.ourhoa-tabs { display:flex; gap:8px; flex-wrap:wrap; margin-bottom:12px; }
.ourhoa-tab { display:inline-flex; align-items:center; gap:6px; border:1px solid rgba(0,0,0,.15); background:rgba(255,255,255,.7); padding:8px 12px; border-radius:999px; cursor:pointer; }
.ourhoa-tab .ourhoa-badge { font-size: 11px; padding: 2px 8px; }
.ourhoa-tab-label { display:inline-flex; align-items:center; }
.ourhoa-tab-badges { display:inline-flex; align-items:center; gap:6px; margin-left:2px; }
.ourhoa-tab-badge { font-size: 11px; padding: 2px 8px; }
.ourhoa-tab-badge.is-adminonly { background: rgba(239, 68, 68, 0.10); border-color: rgba(239, 68, 68, 0.22); color: #991b1b; }
.ourhoa-tab-badge.is-membersonly { background: rgba(16, 185, 129, 0.10); border-color: rgba(16, 185, 129, 0.24); color: #065f46; }
.ourhoa-tab-badge.is-beta { background: rgba(245, 158, 11, 0.12); border-color: rgba(245, 158, 11, 0.24); color: #92400e; }
.ourhoa-tab.is-active { background:rgba(0,0,0,.08); }
.ourhoa-admin-kv { display:flex; flex-direction:column; gap:8px; }
.ourhoa-row { display:flex; justify-content:space-between; align-items:center; gap:12px; }
.ourhoa-admin-form input[type="file"] { display:block; margin:10px 0; }
.ourhoa-link { display:inline-block; padding:6px 10px; border-radius:999px; border:1px solid rgba(0,0,0,.15); text-decoration:none; }
.ourhoa-link:hover { background:rgba(0,0,0,.05); }

.ourhoa-callout { padding: 10px 12px; border-radius: 14px; border: 1px solid rgba(0,0,0,0.12); background: rgba(0,0,0,0.03); }
.ourhoa-callout-warn { background: rgba(255, 165, 0, 0.10); }

.ourhoa-callout-ok { background: rgba(0, 128, 0, 0.08); }
.ourhoa-callout-info { background: rgba(0, 0, 0, 0.03); }

.ourhoa-pill { display:inline-flex; align-items:center; padding:2px 10px; border-radius:999px; border:1px solid rgba(0,0,0,0.12); background: rgba(0,0,0,0.04); font-size: 12px; font-weight: 700; }
.ourhoa-pill-blue { background: rgba(0, 100, 255, 0.10); border-color: rgba(0, 100, 255, 0.16); }
.ourhoa-badge,
.ourhoa-pill-status,
.ourhoa-passport-badge {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:2px 10px;
  border-radius:999px;
  border:1px solid rgba(0,0,0,0.12);
  background: rgba(0,0,0,0.04);
  color: inherit;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
}
.ourhoa-badge-icon,
.ourhoa-passport-badge {
  width: 24px;
  height: 24px;
  padding: 0;
  font-weight: 800;
}
.ourhoa-badge-status,
.ourhoa-pill-status {
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.ourhoa-badge-status.is-roster,
.ourhoa-pill-status.is-roster {
  background: rgba(16, 185, 129, 0.14);
  border-color: rgba(16, 185, 129, 0.32);
  color: #065f46;
}
.ourhoa-badge-status.is-custom,
.ourhoa-pill-status.is-custom {
  background: rgba(0,0,0,0.04);
  border-color: rgba(0,0,0,0.12);
  color: inherit;
}
.ourhoa-badge-status.is-empty,
.ourhoa-pill-status.is-empty {
  background: rgba(107, 114, 128, 0.10);
  border-color: rgba(107, 114, 128, 0.22);
  color: #4b5563;
}
.ourhoa-badge-status.is-info,
.ourhoa-pill-status.is-info {
  background: rgba(59, 130, 246, 0.10);
  border-color: rgba(59, 130, 246, 0.22);
  color: #1d4ed8;
}

.ourhoa-badge-status.is-visible,
.ourhoa-pill-status.is-visible {
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(16, 185, 129, 0.26);
  color: #065f46;
}
.ourhoa-badge-status.is-private,
.ourhoa-pill-status.is-private {
  background: rgba(107, 114, 128, 0.10);
  border-color: rgba(107, 114, 128, 0.22);
  color: #4b5563;
}
.ourhoa-badge-status.is-optin,
.ourhoa-pill-status.is-optin {
  background: rgba(59, 130, 246, 0.08);
  border-color: rgba(59, 130, 246, 0.18);
  color: #1d4ed8;
}

.ourhoa-badge-status.is-usonly {
  background: rgba(37, 99, 235, 0.12);
  color: #1d4ed8;
  border-color: rgba(37, 99, 235, 0.25);
}
.ourhoa-badge-status.is-busy,
.ourhoa-pill-status.is-busy {
  background: rgba(245, 158, 11, 0.12);
  border-color: rgba(245, 158, 11, 0.24);
  color: #92400e;
}
.ourhoa-badge-status.is-ok,
.ourhoa-pill-status.is-ok {
  background: rgba(16, 185, 129, 0.14);
  border-color: rgba(16, 185, 129, 0.32);
  color: #065f46;
}
.ourhoa-badge-status.is-error,
.ourhoa-pill-status.is-error {
  background: rgba(239, 68, 68, 0.12);
  border-color: rgba(239, 68, 68, 0.24);
  color: #991b1b;
}
.ourhoa-badge-status.is-payment,
.ourhoa-pill-status.is-payment {
  background: rgba(16, 185, 129, 0.10);
  border-color: rgba(16, 185, 129, 0.24);
  color: #065f46;
}
.ourhoa-badge-status.is-vendor,
.ourhoa-pill-status.is-vendor {
  background: rgba(139, 92, 246, 0.10);
  border-color: rgba(139, 92, 246, 0.22);
  color: #5b21b6;
}
.ourhoa-badge-status.is-receipt,
.ourhoa-pill-status.is-receipt {
  background: rgba(59, 130, 246, 0.10);
  border-color: rgba(59, 130, 246, 0.22);
  color: #1d4ed8;
}
.ourhoa-badge.is-ok,
.ourhoa-passport-badge.is-ok {
  background: rgba(0, 128, 0, 0.12);
  border-color: rgba(0, 128, 0, 0.18);
}



.ourhoa-notice {
  padding: 12px;
  border: 1px solid rgba(0,0,0,0.10);
  border-radius: 14px;
  background: rgba(255,255,255,0.60);
  margin-top: 10px;
}

.ourhoa-notice-title {
  font-weight: 700;
  margin-bottom: 4px;
}

/* WOTA Passport badge (reuses .ourhoa-badge styles) */
/* Resources */
.ourhoa-res-panel { }
.ourhoa-codebox {
  white-space: pre-wrap;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 13px;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid rgba(0,0,0,0.10);
  background: rgba(255,255,255,0.60);
}


/* Savings calculator */
.ourhoa-grid-2 { display:grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 700px) { .ourhoa-grid-2 { grid-template-columns: 1fr; } }
.ourhoa-label { display:block; font-size: 14px; font-weight: 700; margin-bottom: 6px; }
.ourhoa-input { width:100%; padding:10px 12px; border-radius:12px; border:1px solid rgba(0,0,0,0.15); background: rgba(255,255,255,0.7); }
.ourhoa-sv-kpi { min-width: 220px; border:1px solid rgba(0,0,0,0.10); border-radius: 16px; padding: 12px; background: rgba(255,255,255,0.6); }
.ourhoa-sv-kpi-num { font-size: 22px; font-weight: 800; }
.ourhoa-table { width:100%; border-collapse: collapse; font-size: 14px; }
.ourhoa-table th, .ourhoa-table td { text-align:left; padding: 10px 8px; border-bottom: 1px solid rgba(0,0,0,0.10); vertical-align: top; }
.ourhoa-table thead th { font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; opacity: 0.75; }
.ourhoa-table tr.is-total td { font-weight: 800; }
.ourhoa-table tr.is-annual td { font-weight: 800; }
.ourhoa-list { margin: 0; padding-left: 18px; }

/* Advanced section (hidden by default) */
.ourhoa-advanced { margin-top: 4px; }
.ourhoa-advanced > summary { cursor: pointer; display: inline-block; padding: 8px 12px; border-radius: 12px; border: 1px solid rgba(0,0,0,0.15); background: rgba(0,0,0,0.03); }
.ourhoa-advanced[open] > summary { background: rgba(0,0,0,0.06); }
.ourhoa-advanced-body { margin-top: 10px; display: flex; flex-direction: column; gap: 10px; }


/* WOTA Passport login (optional) */
.ourhoa-passport-login{margin-top:14px;padding-top:10px;border-top:1px solid rgba(0,0,0,.08)}
.ourhoa-passport-divider{text-align:center;margin:6px 0 10px;color:#666;font-size:12px}
.ourhoa-passport-divider span{background:#fff;padding:0 10px}
.ourhoa-passport-button{display:inline-block;width:100%;text-align:center;padding:10px 12px;border-radius:10px;box-sizing:border-box}
.ourhoa-passport-note{margin-top:8px;color:#666;font-size:12px;line-height:1.4}


/* In-app tutorials */
.ourhoa-tutorial-panel { padding-top: 12px; }
.ourhoa-tutorial-details { border: 1px solid rgba(0,0,0,.10); border-radius: 14px; padding: 10px 12px; background: rgba(255,255,255,.55); }
.ourhoa-tutorial-details > summary { cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.ourhoa-tutorial-details > summary::-webkit-details-marker { display: none; }
.ourhoa-tutorial-details > summary::after { content: "▾"; opacity: .7; }
.ourhoa-tutorial-details[open] > summary::after { transform: rotate(180deg); }
.ourhoa-tutorial-content h4 { font-size: 15px; }
.ourhoa-tutorial-list { margin: 0; padding-left: 18px; }
.ourhoa-tutorial-list li { margin: 6px 0; }


/* Governance finish-line polish */
.ourhoa-results-wrap { display:flex; flex-direction:column; gap:14px; }
.ourhoa-results-card, .ourhoa-gov-card, .ourhoa-trust-card, .ourhoa-verify-result, .ourhoa-public-audit {
  border: 1px solid rgba(0,0,0,0.08);
  background: linear-gradient(180deg, rgba(255,255,255,0.96), rgba(250,250,250,0.94));
}
.ourhoa-section-head {
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
  margin-bottom:12px;
}
.ourhoa-form-stack p { margin: 0 0 12px; }
.ourhoa-form-stack input[type="text"],
.ourhoa-form-stack input[type="email"],
.ourhoa-form-stack input[type="url"],
.ourhoa-form-stack input[type="datetime-local"],
.ourhoa-form-stack select,
.ourhoa-form-stack textarea {
  width:100%;
  max-width:100%;
  padding:10px 12px;
  border-radius:12px;
  border:1px solid rgba(0,0,0,0.15);
  background:#fff;
  box-sizing:border-box;
}
.ourhoa-progress {
  height:18px;
  border-radius:999px;
  background:rgba(0,0,0,0.08);
  overflow:hidden;
  margin:10px 0 12px;
}
.ourhoa-progress-bar {
  height:100%;
  background:linear-gradient(90deg, #111, #3b82f6);
  border-radius:999px;
}
.ourhoa-divider {
  height:1px;
  background:rgba(0,0,0,0.08);
  margin:16px 0;
}
.ourhoa-clean-list { margin:0; padding-left:18px; }
.ourhoa-clean-list li { margin:0 0 8px; }
.ourhoa-kicker {
  font-size:12px;
  font-weight:700;
  letter-spacing:.04em;
  text-transform:uppercase;
  opacity:.7;
  margin-bottom:6px;
}
.ourhoa-surface {
  padding:12px;
  border-radius:14px;
  border:1px solid rgba(0,0,0,0.08);
  background:rgba(255,255,255,0.85);
}
.ourhoa-code-line code {
  display:block;
  word-break:break-all;
  white-space:pre-wrap;
}
.ourhoa-trust-grid { margin-bottom:12px; }
.ourhoa-trust-actions { display:flex; flex-direction:column; gap:14px; margin-top:14px; }
.ourhoa-table-wrap { overflow:auto; }
.ourhoa-table-wrap .ourhoa-table { min-width: 680px; }
@media (max-width: 700px) {
  .ourhoa-section-head { flex-direction:column; }
  .ourhoa-card { padding:14px; }
}


/* Setup & Tools */
.ourhoa-tools-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(280px,1fr)); gap:16px; margin:16px 0; }
.ourhoa-code-list { display:flex; flex-wrap:wrap; gap:8px; }
.ourhoa-code-list code { display:inline-block; padding:8px 10px; border-radius:10px; background:#111; color:#fff; }
.ourhoa-pill-ok { background: rgba(16, 185, 129, 0.12); border-color: rgba(16, 185, 129, 0.24); color:#065f46; }
.ourhoa-pill-warn { background: rgba(245, 158, 11, 0.12); border-color: rgba(245, 158, 11, 0.24); color:#92400e; }


/* Neighbor directory opt-in polish */
.ourhoa-neighbor-optin-wrap{padding:16px 18px;}
.ourhoa-neighbor-optin-row{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px 18px;align-items:center;}
.ourhoa-neighbor-optin-item{display:flex;align-items:center;gap:10px;margin:0;min-width:0;line-height:1.35;}
.ourhoa-neighbor-optin-item input[type="checkbox"]{margin:0;flex:0 0 auto;width:18px;height:18px;}
.ourhoa-neighbor-optin-item span{display:block;}
@media (max-width: 980px){.ourhoa-neighbor-optin-row{grid-template-columns:1fr;}}
