/* CityStage Notify: client dashboard + public teaser. Extends the site palette. */

:root {
  --n-ink: #1c2739;
  --n-soft: #3d4a61;
  --n-muted: #6b7a93;
  --n-line: #e3e9f2;
  --n-bg: #f6f8fb;
  --n-card: #ffffff;
  --n-red: #ab5451;
  --n-red-deep: #8c403d;
  --n-navy: #243453;
  --n-teal: #0e7c7b;
  --n-amber: #b7791f;
  --n-green: #2f7d44;
  --n-purple: #5f3dc4;
  --n-radius: 14px;
}

/* ---------- gate ---------- */
.gate-wrap {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  background: var(--n-bg);
}
.gate-card {
  background: #fff;
  border: 1px solid var(--n-line);
  border-radius: 18px;
  padding: 44px 40px;
  max-width: 440px;
  width: 100%;
  text-align: center;
  box-shadow: 0 12px 48px rgba(36, 52, 83, 0.1);
}
.gate-card .eyebrow { margin-bottom: 10px; }
.gate-card h1 {
  font-family: var(--display);
  text-transform: uppercase;
  color: var(--n-navy);
  font-size: 1.6rem;
  margin-bottom: 10px;
}
.gate-card p { color: var(--muted); font-size: 0.95rem; margin-bottom: 22px; }
.gate-card input {
  width: 100%;
  font-size: 1rem;
  padding: 13px 16px;
  border: 1px solid var(--n-line);
  border-radius: 10px;
  margin-bottom: 12px;
  font-family: var(--font);
}
.gate-card input:focus { outline: none; border-color: var(--n-red); box-shadow: 0 0 0 3px rgba(171, 84, 81, 0.12); }
.gate-card .btn { width: 100%; cursor: pointer; }
.gate-error { color: var(--n-red-deep); font-size: 0.85rem; margin-top: 10px; min-height: 1.2em; }
.gate-note { margin-top: 18px; font-size: 0.78rem; color: var(--n-muted); }

/* ---------- dashboard shell ---------- */
.ndash { background: var(--n-bg); }
.ntopbar {
  background: var(--n-navy);
  color: #fff;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  gap: 14px;
  position: sticky;
  top: 0;
  z-index: 50;
  flex-wrap: wrap;
}
.ntopbar .nlogo { font-weight: 800; font-size: 1.05rem; letter-spacing: 0.02em; text-decoration: none; color: #fff; }
.ntopbar .nlogo span { color: var(--n-red); }
.nbadge {
  background: var(--n-red);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 999px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.ntopbar .nevent { margin-left: auto; font-size: 0.85rem; color: rgba(255,255,255,0.75); }
.ntopbar .nevent strong { color: #fff; }
.ntopbar .nactions { display: flex; gap: 8px; }
.nbtn {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.35);
  background: transparent;
  color: #fff;
  cursor: pointer;
  text-decoration: none;
}
.nbtn:hover { background: rgba(255,255,255,0.12); }
.nbtn-solid { background: var(--n-red); border-color: var(--n-red); }
.nbtn-solid:hover { background: var(--n-red-deep); }

.nwrap { max-width: 1180px; margin: 0 auto; padding: 32px 24px 90px; }

.ndemo {
  background: #fff7ed;
  border: 1px solid #fed7aa;
  color: #7c4a03;
  border-radius: var(--n-radius);
  padding: 14px 20px;
  font-size: 0.88rem;
  margin-bottom: 24px;
}
.ndemo strong { color: #5c3600; }

.nhero {
  background: linear-gradient(135deg, #1c2739 0%, #243b5c 60%, #0e7c7b 135%);
  color: #fff;
  border-radius: var(--n-radius);
  padding: 40px 44px;
  margin-bottom: 28px;
}
.nhero h1 { font-size: 1.75rem; letter-spacing: -0.02em; margin-bottom: 6px; }
.nhero p.nsub { color: #b9c4d6; font-size: 0.95rem; max-width: 680px; margin-bottom: 24px; }
.nhero-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; }
.nhero-stat {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 10px;
  padding: 14px 16px;
}
.nhero-stat .k { font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.1em; color: #9fb0c9; margin-bottom: 4px; }
.nhero-stat .v { font-size: 1.05rem; font-weight: 700; }
.nhero-stat .v small { font-weight: 400; color: #b9c4d6; font-size: 0.8rem; }

.nsection { margin-bottom: 44px; }
.nsection-head { display: flex; align-items: baseline; gap: 12px; margin-bottom: 6px; flex-wrap: wrap; }
.nsection-head .nstep {
  background: var(--n-navy); color: #fff; font-size: 0.68rem; font-weight: 800;
  padding: 3px 10px; border-radius: 999px; letter-spacing: 0.06em;
}
.nsection-head h2 { font-size: 1.35rem; letter-spacing: -0.01em; color: var(--n-ink); }
.nsection-desc { color: var(--n-muted); font-size: 0.9rem; margin-bottom: 18px; max-width: 780px; }

/* progress */
.nprogress-card {
  background: #fff;
  border: 1px solid var(--n-line);
  border-radius: var(--n-radius);
  padding: 22px 26px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}
.nprogress-bar { flex: 1 1 220px; height: 12px; background: var(--n-bg); border-radius: 999px; overflow: hidden; border: 1px solid var(--n-line); }
.nprogress-fill { height: 100%; background: linear-gradient(90deg, var(--n-teal), var(--n-red)); width: 0; transition: width 0.4s ease; border-radius: 999px; }
.nprogress-label { font-weight: 800; color: var(--n-navy); font-size: 0.95rem; white-space: nowrap; }
.nprogress-sub { color: var(--n-muted); font-size: 0.82rem; }

/* filters */
.nfilters {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 18px;
  align-items: center;
}
.nfilters input[type="search"],
.nfilters select {
  font-family: var(--font);
  font-size: 0.9rem;
  color: var(--n-ink);
  background: #fff;
  border: 1px solid var(--n-line);
  border-radius: 10px;
  padding: 10px 14px;
}
.nfilters input[type="search"] { flex: 2 1 220px; }
.nfilters select { flex: 1 1 160px; }
.nfilters input:focus, .nfilters select:focus { outline: none; border-color: var(--n-red); }
.ncount { margin-left: auto; font-size: 0.82rem; color: var(--n-muted); }

/* matrix tables */
.ncat { margin-bottom: 26px; }
.ncat-title { font-size: 0.95rem; font-weight: 800; margin: 0 0 10px; display: flex; align-items: center; gap: 10px; color: var(--n-ink); }
.ncat-title .ncount-pill { background: var(--n-navy); color: #fff; font-size: 0.68rem; font-weight: 700; border-radius: 999px; padding: 2px 10px; }
.ncard { background: #fff; border: 1px solid var(--n-line); border-radius: var(--n-radius); padding: 6px 10px; overflow-x: auto; }
table.nstake { width: 100%; border-collapse: collapse; font-size: 0.85rem; min-width: 760px; }
table.nstake thead th {
  text-align: left; font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--n-muted); padding: 10px 12px; border-bottom: 2px solid var(--n-line); background: #f8fafc;
  white-space: nowrap;
}
table.nstake tbody td { padding: 12px; border-bottom: 1px solid var(--n-line); vertical-align: top; }
table.nstake tbody tr:last-child td { border-bottom: none; }
table.nstake tbody tr:hover { background: #fafcff; }
.nname { font-weight: 700; color: var(--n-ink); }
.naddr { color: var(--n-muted); font-size: 0.78rem; margin-top: 2px; }
.ncontact { font-size: 0.82rem; }
.ncontact .nmissing { color: var(--n-amber); font-weight: 600; }
.ntask { font-size: 0.76rem; color: var(--n-amber); margin-top: 4px; font-weight: 600; }
.ncheck { display: flex; align-items: flex-start; gap: 8px; margin-top: 8px; font-size: 0.78rem; color: var(--n-soft); cursor: pointer; }
.ncheck input { width: 17px; height: 17px; margin-top: 1px; accent-color: var(--n-teal); flex-shrink: 0; cursor: pointer; }
tr.ndone { opacity: 0.62; }
tr.ndone .nname { text-decoration: line-through; text-decoration-color: var(--n-teal); }

.pill {
  display: inline-block; font-size: 0.66rem; font-weight: 800; padding: 3px 10px;
  border-radius: 999px; letter-spacing: 0.04em; text-transform: uppercase; white-space: nowrap;
}
.pill.verified { background: #d3f9d8; color: #1e6b2e; }
.pill.canvass { background: #ffec99; color: #7a5b00; }
.pill.platform { background: #dbe4ff; color: #364fc7; }
.pill.institution { background: #e5dbff; color: #5f3dc4; }
.pill.mail { background: #ffe8cc; color: #9c4a00; }

/* platform cards */
.nplat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.nplat-card { background: #fff; border: 1px solid var(--n-line); border-radius: 12px; padding: 18px 20px; }
.nplat-card .pcat { font-size: 0.66rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--n-muted); margin-bottom: 6px; }
.nplat-card h4 { font-size: 0.95rem; margin-bottom: 2px; color: var(--n-ink); }
.nplat-card p { font-size: 0.82rem; color: var(--n-soft); }
.nplat-card .phow { margin-top: 10px; font-size: 0.78rem; background: #f1f5fb; border-radius: 8px; padding: 8px 10px; color: var(--n-soft); }

/* timeline */
.ntimeline { position: relative; padding-left: 28px; }
.ntimeline::before {
  content: ""; position: absolute; left: 8px; top: 6px; bottom: 6px; width: 3px;
  background: linear-gradient(var(--n-teal), var(--n-red)); border-radius: 3px;
}
.nt-item { position: relative; margin-bottom: 18px; }
.nt-item::before {
  content: ""; position: absolute; left: -26px; top: 4px; width: 13px; height: 13px;
  background: #fff; border: 3px solid var(--n-teal); border-radius: 50%;
}
.nt-item.hot::before { border-color: var(--n-red); }
.nt-card { background: #fff; border: 1px solid var(--n-line); border-radius: 12px; padding: 16px 20px; }
.nt-card .nwhen { font-size: 0.72rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; color: var(--n-teal); margin-bottom: 4px; }
.nt-item.hot .nt-card .nwhen { color: var(--n-red-deep); }
.nt-card h4 { font-size: 0.95rem; margin-bottom: 4px; color: var(--n-ink); }
.nt-card ul { margin: 6px 0 0 18px; }
.nt-card li { font-size: 0.85rem; color: var(--n-soft); margin-bottom: 3px; }
.nt-check { margin-top: 10px; }
.nt-check label { display: flex; align-items: flex-start; gap: 8px; font-size: 0.8rem; color: var(--n-soft); cursor: pointer; }
.nt-check input { width: 16px; height: 16px; accent-color: var(--n-teal); margin-top: 2px; cursor: pointer; }
.nt-item.ndone .nt-card { opacity: 0.6; }
.nt-item.ndone .nt-card h4 { text-decoration: line-through; text-decoration-color: var(--n-teal); }

/* messages */
.nmsg-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.nmsg-card { background: #fff; border: 1px solid var(--n-line); border-radius: 12px; padding: 20px 22px; }
.nmsg-card .nchan { font-size: 0.66rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; color: var(--n-red-deep); margin-bottom: 6px; }
.nmsg-card h4 { font-size: 0.92rem; margin-bottom: 8px; color: var(--n-ink); }
.nmsg-body {
  background: #f8fafc; border: 1px solid var(--n-line); border-radius: 8px;
  padding: 14px 16px; font-size: 0.83rem; color: var(--n-soft); white-space: pre-wrap;
}
.ncopy { margin-top: 10px; }

/* kpi + map */
.nkpi-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 14px; margin-bottom: 18px; }
.nkpi { background: #fff; border: 1px solid var(--n-line); border-radius: 12px; padding: 16px 18px; text-align: center; }
.nkpi .n { font-size: 1.6rem; font-weight: 800; letter-spacing: -0.02em; color: var(--n-navy); }
.nkpi .l { font-size: 0.68rem; color: var(--n-muted); text-transform: uppercase; letter-spacing: 0.06em; margin-top: 2px; }
.nmap-shell { display: grid; grid-template-columns: 1.4fr 1fr; border: 1px solid var(--n-line); border-radius: var(--n-radius); overflow: hidden; background: #fff; margin-bottom: 18px; }
.nmap-svg { background: #eef3f8; min-height: 340px; display: flex; align-items: center; justify-content: center; }
.nmap-photo { margin: 0 0 16px; }
.nmap-photo:last-child { margin-bottom: 0; }
.nmap-photo img { width: 100%; height: auto; border-radius: 10px; border: 1px solid var(--n-line); display: block; }
.nmap-photo figcaption { font-size: 0.78rem; color: var(--n-soft); margin-top: 8px; }
.nmap-legend { padding: 24px 28px; border-left: 1px solid var(--n-line); }
.nmap-legend h3 { font-size: 0.95rem; margin-bottom: 12px; color: var(--n-ink); }
.nlegend-row { display: flex; align-items: center; gap: 10px; font-size: 0.83rem; margin-bottom: 9px; color: var(--n-soft); }
.nswatch { width: 22px; height: 12px; border-radius: 3px; flex-shrink: 0; }
.nstreet-list { margin-top: 16px; padding: 0; }
.nstreet-list li { list-style: none; font-size: 0.83rem; padding: 7px 0; border-bottom: 1px dashed var(--n-line); color: var(--n-soft); }
.nstreet-list li:last-child { border-bottom: none; }
.nstreet-list li strong { color: var(--n-ink); }

/* event picker */
.npicker { display: grid; gap: 14px; max-width: 640px; margin: 0 auto; }
.npick-card {
  display: flex; align-items: center; gap: 16px;
  background: #fff; border: 1px solid var(--n-line); border-radius: var(--n-radius);
  padding: 20px 24px; text-decoration: none; color: var(--n-ink);
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.npick-card:hover { border-color: var(--n-red); transform: translateY(-2px); }
.npick-card h3 { font-size: 1.05rem; }
.npick-card p { font-size: 0.85rem; color: var(--n-muted); margin: 0; }
.npick-card .ngo { margin-left: auto; color: var(--n-red); font-weight: 800; }

/* teaser page */
.nteaser-hero { text-align: center; padding: 72px 20px 40px; }
.nteaser-hero h1 {
  font-family: var(--display);
  font-size: clamp(2.4rem, 8vw, 4.2rem);
  text-transform: uppercase;
  color: var(--n-navy);
  line-height: 1;
  margin-bottom: 18px;
}
.nsteps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 34px 0; }
.nstep-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 24px; text-align: left; }
.nstep-card .nnum {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--n-navy); color: #fff; font-weight: 800; margin-bottom: 14px;
}
.nstep-card h3 { font-size: 1.05rem; color: var(--n-navy); margin-bottom: 8px; }
.nstep-card p { font-size: 0.92rem; color: var(--muted); margin: 0; }
.nfeat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 30px 0; }
.nfeat { background: var(--bg-raised); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 22px; }
.nfeat h3 { font-size: 0.98rem; color: var(--n-navy); margin-bottom: 6px; }
.nfeat p { font-size: 0.88rem; color: var(--muted); margin: 0; }
.nsample { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow-x: auto; margin: 26px 0; }
.ncta-band { background: var(--n-navy); border-radius: var(--radius); padding: 44px 36px; text-align: center; margin: 40px 0; }
.ncta-band h2 { font-family: var(--display); text-transform: uppercase; color: #fff; font-size: 1.6rem; margin-bottom: 10px; }
.ncta-band p { color: rgba(255,255,255,0.75); max-width: 560px; margin: 0 auto 24px; }
.ncta-band .hero-ctas { margin-bottom: 0; }

@media (max-width: 860px) {
  .nmsg-grid { grid-template-columns: 1fr; }
  .nmap-shell { grid-template-columns: 1fr; }
  .nmap-legend { border-left: none; border-top: 1px solid var(--n-line); }
  .nsteps { grid-template-columns: 1fr; }
  .nfeat-grid { grid-template-columns: 1fr; }
  .nhero { padding: 30px 26px; }
  .ntopbar .nevent { display: none; }
}

/* ---------- print ---------- */
@media print {
  .ntopbar, .nfilters, .nprogress-card .nbtn, .nactions, .gate-wrap, .ncopy, .ncheck { display: none !important; }
  .ndash { background: #fff; }
  .nwrap { max-width: 100%; padding: 0; }
  .nhero { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .nsection { break-inside: avoid; }
  table.nstake { font-size: 11px; }
  tr.ndone { opacity: 1; }
}
