/* lens demo styles. Plain CSS, no build step. */

:root {
  --bg: #fafaf9;
  --fg: #1c1917;
  --muted: #57534e;
  --line: #e7e5e4;
  --card: #ffffff;
  --pb4a: #5e34c8;
  --pb4a-soft: #f1ecff;
  --multiglass: #0f172a;
  --multiglass-soft: #f1f5f9;
  --green: #16a34a;
  --yellow: #ca8a04;
  --red: #dc2626;
  --warn-bg: #fef9c3;
  --warn-fg: #713f12;
  --err-bg: #fee2e2;
  --err-fg: #991b1b;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--fg);
  line-height: 1.5;
}

a { color: var(--pb4a); text-decoration: none; }
a:hover { text-decoration: underline; }
code { font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, monospace; font-size: 0.85em; background: var(--multiglass-soft); padding: 0 0.25em; border-radius: 3px; }

/* ---- topbar ---- */
.topbar {
  border-bottom: 1px solid var(--line);
  background: white;
  position: sticky; top: 0; z-index: 10;
}
.topbar-inner {
  max-width: 1100px; margin: 0 auto; padding: 0.75rem 1.25rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.brand { display: inline-flex; align-items: center; gap: 0.5rem; font-size: 1.05rem; }
.brand-mark { font-size: 1.3em; color: var(--multiglass); }
.brand-mark-img { height: 1.6em; width: auto; }
.brand-sub { color: var(--muted); font-size: 0.85em; margin-left: 0.25rem; }
.topbar-nav { display: inline-flex; align-items: center; gap: 0.9rem; font-size: 0.9rem; }
.topbar-nav a { color: var(--fg); }
.role-tag {
  border: 1px solid var(--line); border-radius: 999px; padding: 0.15rem 0.65rem; font-size: 0.78rem; color: var(--muted);
}
.role-tag[data-role="admin"] { background: var(--multiglass-soft); color: var(--multiglass); border-color: var(--multiglass); }
.role-tag[data-role="client_admin"] { background: var(--pb4a-soft); color: var(--pb4a); border-color: var(--pb4a); }
.role-tag[data-role="client_member"] { background: #ecfdf5; color: var(--green); border-color: var(--green); }

/* ---- page ---- */
.page { max-width: 1100px; margin: 0 auto; padding: 2rem 1.25rem 4rem; }
.hero h1 { font-size: 2.1rem; margin: 0 0 0.5rem; }
.hero .lede { color: var(--muted); font-size: 1.05rem; max-width: 60ch; }
.hero-member { text-align: center; padding: 1.5rem 0; }
.hero-member .member-mark { height: 84px; margin-bottom: 0.5rem; }
.hero-member .lede { margin-left: auto; margin-right: auto; }
.hero-petition { padding: 1rem 0; }

/* ---- banners ---- */
.banner { padding: 0.7rem 1rem; border-radius: 6px; margin: 1rem 0; font-size: 0.95rem; }
.banner-warn { background: var(--warn-bg); color: var(--warn-fg); }
.banner-err { background: var(--err-bg); color: var(--err-fg); }
.banner a { color: inherit; text-decoration: underline; }

/* ---- tier 1: domain grid ---- */
.domain-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(360px, 1fr)); gap: 1.25rem; margin-top: 1.75rem; }
.domain-card { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 1.25rem; }
.domain-card-head { display: flex; align-items: baseline; justify-content: space-between; gap: 0.5rem; }
.domain-card-head h2 { margin: 0; font-size: 1.2rem; }
.slug { font-family: ui-monospace, monospace; color: var(--muted); font-size: 0.85rem; }
.public-site { margin: 0.25rem 0 1rem; color: var(--muted); font-size: 0.9rem; }
.deliverable-list { list-style: none; padding: 0; margin: 0 0 1rem; }
.deliverable-list li { padding: 0.5rem 0; border-top: 1px solid var(--line); }
.deliverable-list li:first-child { border-top: 0; }
.status { font-size: 0.9em; vertical-align: middle; }
.status-green { color: var(--green); }
.status-yellow { color: var(--yellow); }
.status-red { color: var(--red); }
.muted { color: var(--muted); }
.small { font-size: 0.85em; }

/* ---- buttons ---- */
.btn, .btn-secondary {
  display: inline-block; padding: 0.5rem 0.95rem; border-radius: 6px; font-size: 0.95rem;
  text-decoration: none; border: 1px solid transparent; cursor: pointer;
}
.btn { background: var(--pb4a); color: white; }
.btn:hover { background: #4f29b0; text-decoration: none; }
.btn-secondary { background: var(--multiglass-soft); color: var(--multiglass); }
.btn-secondary:hover { background: #e2e8f0; text-decoration: none; }
.domain-card-foot { display: flex; gap: 0.5rem; }

/* ---- ops list ---- */
.ops { margin-top: 2.5rem; }
.ops-list { list-style: none; padding: 0; }
.ops-list li { padding: 0.45rem 0; border-bottom: 1px dashed var(--line); display: flex; justify-content: space-between; align-items: center; }
.badge { font-size: 0.72rem; padding: 0.1rem 0.5rem; background: var(--multiglass-soft); color: var(--multiglass); border-radius: 999px; }
.badge-client_admin { background: var(--pb4a-soft); color: var(--pb4a); }
.badge-client_member { background: #ecfdf5; color: var(--green); }

/* ---- tier 2 ---- */
.page-head h1 { font-size: 1.8rem; margin: 0 0 0.25rem; }
.deliverables { display: grid; gap: 1rem; margin-top: 1.5rem; }
.deliverable { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 1.25rem; }
.deliverable header { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 0.5rem; }
.deliverable h2 { margin: 0; font-size: 1.15rem; }
.team { margin-top: 2.5rem; }
.people-list { list-style: none; padding: 0; }
.people-list li { padding: 0.45rem 0; border-bottom: 1px solid var(--line); display: flex; gap: 0.6rem; align-items: center; }

/* ---- tier 3 ---- */
.member-actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1rem; margin-top: 2rem; }
.action-card {
  background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 1.1rem 1.25rem;
  color: var(--fg); text-decoration: none; display: block; transition: border-color 0.15s, transform 0.15s;
}
.action-card:hover { border-color: var(--pb4a); text-decoration: none; transform: translateY(-1px); }
.action-card h3 { margin: 0 0 0.25rem; font-size: 1.05rem; color: var(--pb4a); }
.note { margin-top: 2.5rem; padding: 1rem; background: var(--multiglass-soft); border-radius: 8px; }

/* ---- petition embed ---- */
.petition-form { margin-top: 1.5rem; }
.civi-embed { width: 100%; min-height: 520px; border: 1px solid var(--line); border-radius: 8px; background: white; }

/* ---- footer ---- */
.footer { border-top: 1px solid var(--line); background: white; padding: 1rem 0; margin-top: 3rem; color: var(--muted); font-size: 0.85rem; }
.footer-inner { max-width: 1100px; margin: 0 auto; padding: 0 1.25rem; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.dev-switcher a { color: var(--muted); }
.dev-switcher a:hover { color: var(--pb4a); }

/* ---- body class variants ---- */
.pb4a a { color: var(--pb4a); }
.pb4a .btn { background: var(--pb4a); }
