/* bengreene tenant (Ben Greene Counseling) — minimal styling for the landing +
   sign-in. Cloned from the mpower tenant stylesheet, recolored to the bengreene
   brand; the doc/comment rules are inherited (unused here, harmless). */
:root {
  --brand: #0f766e;
  --ink: #1c1b22;
  --muted: #6b6b76;
  --line: #e4e2ea;
  --bg: #faf9fc;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font: 16px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: var(--bg);
}
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 1.25rem;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.topbar .brand {
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -0.01em;
  color: var(--brand);
  text-decoration: none;
  display: flex;
  align-items: center;
}
.topbar .brand img { height: 34px; display: block; }
.topbar nav a { color: var(--muted); text-decoration: none; font-size: 0.92rem; }
.topbar nav a:hover { color: var(--brand); }
main { max-width: 72rem; margin: 0 auto; padding: 1.75rem 1.5rem; }
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1.5rem 1.75rem;
}
.card.signin { max-width: 30rem; margin: 0 auto; }
h1 { margin-top: 0; letter-spacing: -0.02em; }
.muted { color: var(--muted); }
.muted.small { font-size: 0.82rem; }
a { color: var(--brand); }
.doc-list { list-style: none; padding: 0; margin: 1rem 0 0; }
.doc-list li { padding: 0.6rem 0; border-top: 1px solid var(--line); }
.doc-list li:first-child { border-top: 0; }
.doc-list a { text-decoration: none; font-weight: 600; }
.doc-list a:hover { text-decoration: underline; }
.doc :first-child { margin-top: 0; }
.doc pre {
  background: #f3f1f8;
  padding: 0.9rem 1rem;
  border-radius: 8px;
  overflow-x: auto;
}
.doc code { background: #f3f1f8; padding: 0.1rem 0.3rem; border-radius: 4px; }
.doc pre code { background: none; padding: 0; }
.doc blockquote {
  margin: 1rem 0;
  padding: 0.2rem 1rem;
  border-left: 3px solid var(--brand);
  color: var(--muted);
}
/* sign-in form */
.signin-form label { display: block; margin: 14px 0 6px; font-weight: 600; }
.signin-form input[type=email] {
  display: block; width: 100%; margin-top: 4px; padding: 10px 12px;
  border: 1px solid #ccc; border-radius: 8px; font-size: 16px;
}
.signin-form button {
  margin-top: 14px; padding: 10px 16px; border: 0; border-radius: 8px;
  background: var(--brand); color: #fff; font-size: 15px; cursor: pointer;
}
.signin-form button:hover { filter: brightness(1.08); }
.banner { padding: 10px 14px; border-radius: 8px; margin: 14px 0; font-size: 14px; line-height: 1.5; }
.banner-ok { background: #eaf6ec; border: 1px solid #b6dcbd; }
.banner-err { background: #fcebeb; border: 1px solid #e6b6b6; }

/* ---- grant detail: state badges, facts grid, "our read" callout ---- */

/* State badges — a row of pills under the title (stage · fit · status). */
.badges { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0.35rem 0 1.1rem; }
.badge {
  display: inline-flex; align-items: center;
  padding: 0.18rem 0.6rem;
  border-radius: 999px;
  font-size: 0.74rem; font-weight: 700;
  letter-spacing: 0.02em; text-transform: uppercase;
  border: 1px solid transparent; white-space: nowrap;
}
/* stage — where it is in our pipeline */
.badge--applied  { background: #e8f0fe; color: #1a56db; border-color: #c3d8fb; }
.badge--proposed { background: #efe9fb; color: #6d28d9; border-color: #d8caf3; }
/* fit — the research verdict */
.badge--qualified     { background: #e7f6ec; color: #1f7a3f; border-color: #b9e0c5; }
.badge--investigating { background: #fff3e0; color: #b25e00; border-color: #f3d9ad; }
.badge--needs-info    { background: #fff8e1; color: #9a7400; border-color: #efe0a6; }
.badge--disqualified  { background: #f3f1f5; color: #6b6b76; border-color: #ddd9e3; }
/* status */
.badge--closed { background: #fcebeb; color: #a23b3b; border-color: #ecc2c2; }

/* Facts grid — label/value pairs, two columns that collapse on narrow screens. */
.facts {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 0.35rem 1rem;
  margin: 0 0 1.2rem;
  padding: 0.9rem 1.1rem;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 10px;
}
.facts dt { font-weight: 700; color: var(--muted); font-size: 0.85rem; padding-top: 0.05rem; }
.facts dd { margin: 0; }
@media (max-width: 32rem) {
  .facts { grid-template-columns: 1fr; gap: 0.1rem 0; }
  .facts dd { margin-bottom: 0.5rem; }
}

/* "Our read" — the qualification rationale, set apart as a soft callout. */
.our-read {
  margin: 0 0 1.3rem;
  padding: 0.7rem 1rem;
  background: #f7f5fc;
  border-left: 3px solid var(--brand);
  border-radius: 0 8px 8px 0;
  font-size: 0.96rem;
}
.our-read strong { color: var(--brand); }

/* ---- funding landscape: grant cards ---- */
.grant {
  padding: 0.85rem 1.05rem;
  margin: 0.6rem 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  transition: border-color 0.12s ease, box-shadow 0.12s ease;
}
.grant:hover { border-color: #d8caf3; box-shadow: 0 2px 10px rgba(109, 40, 217, 0.07); }
.grant__name {
  font-weight: 700; font-size: 1.02rem; text-decoration: none;
  color: var(--ink); letter-spacing: -0.01em;
}
.grant__name:hover { color: var(--brand); }
.grant .badges { margin: 0.45rem 0 0; }
.grant__meta { margin: 0.4rem 0 0; color: var(--muted); font-size: 0.86rem; }
.grant__read { margin: 0.5rem 0 0; font-size: 0.92rem; line-height: 1.5; }

/* Collapsed "ruled out" group on the landscape page. */
.doc details { margin: 1.4rem 0 0; }
.doc details > summary {
  cursor: pointer; padding: 0.6rem 0; font-size: 0.95rem;
  border-top: 1px solid var(--line);
}
.doc details[open] > summary { color: var(--brand); margin-bottom: 0.3rem; }

/* --- Client comments (plan 131b) --------------------------------------- */
.comments { margin-top: 1.25rem; }
.comments__title {
  margin: 0 0 0.75rem; font-size: 1.05rem; letter-spacing: -0.01em;
}
.comments__empty { color: var(--muted); font-size: 0.92rem; margin: 0 0 0.75rem; }

.comment {
  padding: 0.7rem 0; border-top: 1px solid var(--line);
}
.comment:first-child { border-top: 0; }
.comment__head {
  display: flex; align-items: baseline; gap: 0.5rem; margin-bottom: 0.2rem;
}
.comment__author { font-weight: 650; font-size: 0.9rem; color: var(--ink); }
.comment__time { color: var(--muted); font-size: 0.8rem; }
.comment__quote {
  margin: 0.1rem 0 0.3rem; padding-left: 0.6rem; border-left: 2px solid var(--line);
  color: var(--muted); font-size: 0.88rem; font-style: italic;
}
.comment__body { font-size: 0.95rem; line-height: 1.5; white-space: pre-wrap; }
.comment__orphan {
  margin-top: 0.3rem; font-size: 0.78rem; color: var(--muted);
  text-transform: uppercase; letter-spacing: 0.03em;
}

.comments__form { margin-top: 0.9rem; }
.comments__label { display: block; font-size: 0.88rem; color: var(--muted); }
.comments__form textarea {
  display: block; width: 100%; margin-top: 0.35rem; padding: 0.55rem 0.65rem;
  font: inherit; font-size: 0.93rem; color: var(--ink);
  border: 1px solid var(--line); border-radius: 8px; resize: vertical; background: #fff;
}
.comments__form textarea:focus {
  outline: none; border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(109, 40, 217, 0.1);
}
.comments__formfoot { display: flex; align-items: center; gap: 0.6rem; margin-top: 0.5rem; }
.comments__form button {
  font: inherit; font-size: 0.9rem; font-weight: 600; color: #fff;
  background: var(--brand); border: 0; border-radius: 8px;
  padding: 0.4rem 0.9rem; cursor: pointer;
}
.comments__form button:disabled { opacity: 0.55; cursor: default; }
.comments__status { color: var(--muted); font-size: 0.84rem; }

/* Per-section affordance injected after each anchored heading. */
.section-comments { margin: 0.1rem 0 0.4rem; }
.section-comments__toggle {
  font: inherit; font-size: 0.78rem; color: var(--muted);
  background: none; border: 0; padding: 0.1rem 0; cursor: pointer;
}
.section-comments__toggle:hover { color: var(--brand); }
.section-comments__toggle.has-comments { color: var(--brand); font-weight: 600; }
.section-comments__panel {
  margin: 0.35rem 0 0.6rem; padding: 0.5rem 0.75rem;
  background: var(--bg); border: 1px solid var(--line); border-radius: 8px;
}

/* --- landing onboarding: "Getting started" steps + the privacy rule ----- */
.onboard { margin-top: 1.6rem; }
.onboard__h {
  font-size: 1.05rem; letter-spacing: -0.01em; margin: 0 0 0.5rem;
}
.steps { margin: 0; padding-left: 1.2rem; }
.steps li { margin: 0.5rem 0; line-height: 1.55; color: var(--muted); }
.steps li strong { color: var(--ink); }
.callout {
  margin-top: 1.4rem; padding: 0.85rem 1.1rem;
  border-radius: 0 8px 8px 0; font-size: 0.95rem; line-height: 1.55;
}
.callout--privacy {
  background: #ecfdf9; border-left: 3px solid var(--brand); color: var(--ink);
}
.callout code {
  background: #d3f0e9; color: #0b5c54;
  padding: 0.05rem 0.35rem; border-radius: 4px; font-size: 0.88em;
}

/* The landing's call-to-action into the substrate caseload at /practice. */
.cta {
  display: inline-block; margin-top: 0.75rem;
  padding: 0.6rem 1.1rem; border-radius: 8px;
  background: var(--brand); color: #fff; font-weight: 600;
  text-decoration: none;
}
.cta:hover { opacity: 0.92; }
