/* Pulse route — Codex-aligned with home-steep / home-styles */

.pulse-page .site-header {
  position: sticky;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.pulse-main {
  max-width: 880px;
  margin: 0 auto;
  padding: 48px 24px 96px;
}

.pulse-panel h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(36px, 5vw, 52px);
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin: 0 0 16px;
}

.pulse-lede {
  margin: 0 0 32px;
  max-width: 640px;
  color: var(--muted);
  font-size: 18px;
}

.role-grid {
  display: grid;
  gap: 16px;
  margin: 0 0 28px;
}

@media (min-width: 720px) {
  .role-grid {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

@media (min-width: 520px) and (max-width: 719px) {
  .role-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.role-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  text-align: left;
  padding: 22px 20px 24px;
  min-height: 148px;
  border: 1px solid #ececec;
  border-radius: 24px;
  background: #fafafb;
  cursor: pointer;
  font: inherit;
  color: inherit;
  transition: background 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.role-card:hover,
.role-card:focus-visible {
  background: #fbe1d1;
  border-color: transparent;
  transform: translateY(-2px);
  outline: none;
}

.role-card:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 3px;
}

.role-kicker {
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.role-card strong {
  font-size: 17px;
  font-weight: 500;
  font-family: var(--serif);
  line-height: 1.35;
  letter-spacing: -0.01em;
}

.role-desc {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.45;
}

.pulse-footnote {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.5;
}

.pulse-frame {
  padding: 20px 22px;
  margin: 0 0 28px;
  background: #f2f2f3;
  border-radius: 20px;
  color: #3e4858;
  font-size: 16px;
  line-height: 1.55;
}

.pulse-frame p {
  margin: 0 0 12px;
}

.pulse-frame p:last-child {
  margin-bottom: 0;
}

.pulse-privacy {
  font-size: 14px;
  color: var(--muted);
}

.pulse-back,
.pulse-back-btn {
  display: inline-flex;
  align-items: center;
  margin: 0 0 20px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 14px;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.pulse-back:hover,
.pulse-back-btn:hover {
  color: var(--ink);
}

.pulse-form .pulse-block {
  border: 0;
  margin: 0 0 36px;
  padding: 0;
}

.pulse-form legend {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 400;
  margin-bottom: 20px;
  padding: 0;
}

.field {
  margin-bottom: 22px;
  position: relative;
}

.field > label,
.label-like {
  display: block;
  margin-bottom: 10px;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.4;
}

.req {
  color: #a33;
  font-size: 12px;
  font-weight: 400;
  margin-left: 4px;
}

.opt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 400;
}

.field input[type="search"],
.field input[type="text"],
.other-input {
  width: 100%;
  height: 52px;
  padding: 0 16px;
  border: 1px solid #ececec;
  border-radius: 16px;
  background: white;
}

.field textarea {
  width: 100%;
  min-height: 96px;
  padding: 14px 16px;
  border: 1px solid #ececec;
  border-radius: 16px;
  background: white;
  font: inherit;
  resize: vertical;
}

.field-hint {
  margin: 8px 0 0;
  font-size: 13px;
  color: var(--muted);
}

.linkish {
  border: 0;
  background: none;
  padding: 0;
  font: inherit;
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.choice-stack {
  display: grid;
  gap: 8px;
}

.choice {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid #ececec;
  border-radius: 14px;
  background: white;
  cursor: pointer;
  font-size: 15px;
  line-height: 1.35;
}

.choice:hover {
  background: #fafafb;
}

.choice:has(input:checked) {
  border-color: var(--ink);
  background: #f2f2f3;
}

.choice input {
  margin-top: 3px;
  flex-shrink: 0;
}

.suggest {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% - 4px);
  z-index: 8;
  margin: 0;
  padding: 6px;
  list-style: none;
  max-height: 240px;
  overflow: auto;
  background: white;
  border: 1px solid #ececec;
  border-radius: 16px;
  box-shadow: 0 16px 40px rgba(23, 25, 28, 0.12);
}

.suggest li {
  padding: 10px 12px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 14px;
}

.suggest li:hover,
.suggest li[aria-selected="true"] {
  background: #f2f2f3;
}

.suggest .suggest-type {
  color: var(--muted);
  font-size: 12px;
  margin-left: 6px;
}

.pulse-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-top: 8px;
}

.form-error {
  color: #a33;
  font-size: 14px;
  margin: 0 0 16px;
}

.other-input {
  margin-top: 8px;
}

@media (max-width: 650px) {
  .pulse-main {
    padding: 32px 20px 72px;
  }
  .pulse-actions .text-link {
    width: 100%;
    text-align: center;
  }
}

.role-card.is-suggested {
  box-shadow: 0 0 0 2px #17191c;
}


.role-grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 560px;
}
.role-card-short {
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  text-decoration: none;
  color: inherit;
}
.role-card-short strong {
  font-family: var(--serif, Georgia, serif);
  font-size: 28px;
  font-weight: 400;
  letter-spacing: -0.02em;
}
@media (max-width: 650px) {
  .role-grid-2 {
    grid-template-columns: 1fr;
    max-width: none;
  }
}

/* Wizard progress */
.wizard-progress {
  margin: 0 0 28px;
  max-width: 560px;
}

.wizard-progress-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 10px;
  font-size: 14px;
}

.wizard-step-label {
  font-weight: 500;
  color: var(--ink);
}

.wizard-step-name {
  color: var(--muted);
}

.wizard-bar {
  height: 8px;
  border-radius: 999px;
  background: #ececec;
  overflow: hidden;
}

.wizard-bar-fill {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: var(--ink, #17191c);
  transition: width 0.25s ease;
}

.wizard-nav {
  margin-top: 12px;
}

.button-secondary {
  background: transparent;
  color: var(--ink);
  border: 1px solid #ececec;
  box-shadow: none;
}

.button-secondary:hover,
.button-secondary:focus-visible {
  background: #f2f2f3;
  border-color: #d8d8d8;
}

.wizard-step[hidden] {
  display: none;
}

/* Author display rules beat UA [hidden] — force hide */
.role-grid[hidden],
.role-card[hidden],
.pulse-panel[hidden],
.button[hidden],
.wizard-nav [hidden] {
  display: none !important;
}

.hint-inline {
  font-weight: 400;
  color: var(--muted, #5b6472);
  font-size: 0.92em;
}

.field-district-multi {
  position: relative;
}
.district-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
  min-height: 0;
}
.district-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  padding: 8px 10px 8px 12px;
  border-radius: 999px;
  background: #f2f2f3;
  border: 1px solid #e4e4e7;
  font-size: 14px;
  line-height: 1.2;
  color: var(--ink);
}
.district-pill span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.district-pill-remove {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #5b6472;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  padding: 0;
}
.district-pill-remove:hover {
  background: #e8e8ea;
  color: var(--ink);
}

.peer-scope {
  margin: 0 0 14px;
  color: #5b6472;
  font-size: 15px;
}
.peer-cards {
  display: grid;
  gap: 10px;
  margin: 0 0 22px;
}
.peer-card {
  padding: 14px 16px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid #ececec;
  font-size: 16px;
  line-height: 1.4;
  color: var(--ink);
}
.peer-card.preview {
  color: #3d4450;
  background: #fafafb;
}
.peer-card .peer-pct {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
