
.letter {
  background: #fff;
  border: 1px solid var(--color-card-border);
  border-left: 5px solid var(--color-accent-muted);
  border-radius: 8px;
  padding: 1.5rem 1.75rem;
  margin: 0 0 2rem;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.letter-heading,
.letter-form-title {
  font-family: "Lora", Georgia, serif;
  font-size: 1.3rem;
  margin: 0 0 1rem;
  color: #1a1a1a;
}

.letter-meta {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 0.25rem 0.9rem;
  margin: 0 0 1.25rem;
  padding: 0 0 1rem;
  border-bottom: 1px solid var(--color-card-border);
  font-size: 0.95rem;
}

.letter-meta dt {
  font-weight: 700;
  color: #555;
}

.letter-meta dd {
  margin: 0;
  color: #1a1a1a;
  overflow-wrap: anywhere;
}

.letter-body {
  font-family: "Lora", Georgia, serif;
  line-height: 1.7;
  color: #222;
}

.letter-body p {
  margin: 0 0 1rem;
}

.letter-body .letter-sign {
  margin: 0;
}

.letter-collapse {
  scroll-margin-top: 5rem;
}

.letter-collapse.is-collapsed .letter-body {
  max-height: 17rem;
  overflow: hidden;
  position: relative;
}

.letter-collapse.is-collapsed .letter-body::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 6rem;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0), #fff);
}

.letter-expand {
  display: block;
  margin: 0.75rem 0 0;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  color: #1a1a1a;
  background: #fff;
  border: 1.5px solid var(--color-accent-muted);
  border-radius: 100px;
  padding: 0.5rem 1.2rem;
  cursor: pointer;
}

.letter-expand[hidden] {
  display: none;
}

.letter-expand:hover {
  background: var(--color-bg-callout);
}

.letter-expand:focus-visible {
  outline: 3px solid var(--color-yellow);
  outline-offset: 2px;
}

.letter-slot {
  background: var(--color-bg-callout);
  border-bottom: 1px dashed var(--color-accent-muted);
  color: #6b5a22;
}

.letter-textarea {
  font-family: "Lora", Georgia, serif;
  line-height: 1.6;
  min-height: 18rem;
  margin-top: 0.5rem;
}

.letter-link-btn {
  background: none;
  border: 0;
  padding: 0;
  margin-top: 0.6rem;
  font: inherit;
  font-size: 0.9rem;
  color: #555;
  text-decoration: underline;
  cursor: pointer;
}

.letter-link-btn:hover {
  color: var(--color-accent-muted);
}

.letter-form-title {
  margin-bottom: 1.25rem;
}

select.form-input {
  appearance: auto;
}

.letter-edit,
.letter-form-title {
  scroll-margin-top: 5rem;
}


.letter-send {
  margin-top: 0.25rem;
}

.send-signed {
  margin: 0 0 1.25rem;
  font-size: 0.95rem;
  color: #555;
}

.send-signed .letter-link-btn {
  margin: 0 0 0 0.35rem;
}

.send-optin-status {
  margin: -0.5rem 0 1.25rem;
  font-size: 0.9rem;
  color: #555;
}

.send-heading {
  font-family: "Lora", Georgia, serif;
  font-size: 1.45rem;
  margin: 0 0 0.4rem;
  color: #1a1a1a;
}

.send-lead {
  margin: 0 0 1.1rem;
  color: #333;
  line-height: 1.55;
}

.send-choices {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(11.5rem, 1fr));
  gap: 0.75rem;
}

.send-choice {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  text-align: left;
  font: inherit;
  background: #fff;
  border: 1.5px solid var(--color-card-border);
  border-radius: 10px;
  padding: 1rem 1.1rem;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
}

.send-choice:hover {
  border-color: var(--color-accent-muted);
  background: var(--color-bg-callout);
}

.send-choice:focus-visible {
  outline: 3px solid var(--color-yellow);
  outline-offset: 2px;
}

.send-choice[aria-pressed="true"] {
  border-color: var(--color-yellow);
  background: var(--color-bg-callout);
  box-shadow: 0 0 0 1px var(--color-yellow);
}

.send-choice-name {
  font-weight: 700;
  font-size: 1.05rem;
  color: #1a1a1a;
}

.send-choice-note {
  font-size: 0.85rem;
  line-height: 1.4;
  color: #666;
}

.send-next {
  margin-top: 1rem;
  background: var(--color-bg-callout);
  border-left: 5px solid var(--color-yellow);
  border-radius: 6px;
  padding: 0.9rem 1.1rem;
}

.send-next-title {
  margin: 0 0 0.3rem;
  font-weight: 700;
  color: #1a1a1a;
}

.send-next-text {
  margin: 0;
  line-height: 1.55;
  color: #333;
}

.send-manual {
  margin-top: 1.1rem;
}

.send-manual summary {
  cursor: pointer;
  font-size: 0.9rem;
  color: #555;
  text-decoration: underline;
}

.send-manual-rows {
  margin: 0.75rem 0 0;
}

.send-manual-row {
  display: grid;
  grid-template-columns: 4.5rem 1fr auto;
  gap: 0.75rem;
  align-items: center;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--color-card-border);
  font-size: 0.92rem;
}

.send-manual-row dt {
  font-weight: 700;
  color: #555;
}

.send-manual-row dd {
  margin: 0;
  overflow-wrap: anywhere;
}

.send-copy {
  font: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  background: none;
  border: 1.5px solid var(--color-accent-muted);
  border-radius: 100px;
  padding: 0.25rem 0.85rem;
  cursor: pointer;
  min-width: 5rem;
}

.send-copy:hover {
  background: var(--color-accent-muted);
}

.send-after {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-card-border);
}

.send-after-heading {
  font-family: "Lora", Georgia, serif;
  font-size: 1.15rem;
  margin: 0 0 0.35rem;
  color: #1a1a1a;
}

.send-after p {
  margin: 0 0 0.9rem;
  color: #444;
  line-height: 1.55;
}

.send-after a {
  color: #1a1a1a;
  text-decoration: underline;
  text-decoration-color: var(--color-accent-muted);
  text-underline-offset: 2px;
}

.send-after a:hover {
  color: var(--color-accent-muted);
}

.send-after button.petition-share-btn {
  font: inherit;
  font-size: 0.9rem;
  cursor: pointer;
}

.send-share-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.send-share {
  font: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  color: #1a1a1a;
  background: #fff;
  border: 1.5px solid var(--color-card-border);
  border-radius: 100px;
  padding: 0.35rem 0.95rem;
  cursor: pointer;
}

.send-share:hover {
  border-color: var(--color-accent-muted);
  background: var(--color-bg-callout);
}

.send-share:focus-visible {
  outline: 3px solid var(--color-yellow);
  outline-offset: 2px;
}

@media (max-width: 600px) {
  .petition-lead {
    padding: 0 1.25rem;
  }

  .letter {
    padding: 1.25rem;
    border-radius: 0;
    border-right: none;
    box-shadow: none;
  }

  .send-manual-row {
    grid-template-columns: 1fr auto;
  }

  .send-manual-row dt {
    grid-column: 1 / -1;
    margin-bottom: -0.4rem;
  }
}
