/* Author and subscription paths share the existing ivory material system. */
:root body.ivory-editorial .entry-meta__author {
  color: var(--iv-link);
  text-decoration: underline;
  text-underline-offset: 3px;
}

:root body.ivory-editorial .author-profile__header {
  grid-template-columns: minmax(0, 1fr);
  min-height: 0;
}

.author-profile__context {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-block: 24px;
}

.author-profile__context > section,
.reader-newsletter {
  min-width: 0;
  padding: clamp(20px, 3vw, 32px);
  color: var(--iv-ink);
  background: var(--iv-surface);
  border: 1px solid var(--iv-edge);
  border-radius: 24px;
  box-shadow: var(--iv-small-shadow);
}

.author-profile__context h2,
.reader-newsletter h2 {
  margin-top: 0;
  font-size: clamp(1.25rem, 2vw, 1.6rem);
  line-height: 1.25;
}

.author-profile__context p,
.reader-newsletter > p {
  color: var(--iv-muted);
}

.reader-newsletter {
  margin-block: 28px;
}

.reader-context-link {
  padding: 12px 16px;
  background: var(--iv-soft);
  border-left: 3px solid var(--iv-accent);
  border-radius: 0 12px 12px 0;
}

:root body.ivory-editorial .reader-newsletter .newsletter-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  margin: 18px 0 0;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.reader-newsletter .newsletter-card > label {
  min-width: 0;
  margin: 0;
}

.reader-newsletter .newsletter-card__status {
  grid-column: 1 / -1;
  margin: 0;
}

.reader-newsletter .reader-newsletter__privacy {
  margin-bottom: 0;
  font-size: 0.8rem;
}

@media (width <= 700px) {
  .author-profile__context {
    grid-template-columns: minmax(0, 1fr);
  }

  :root body.ivory-editorial .reader-newsletter .newsletter-card {
    grid-template-columns: minmax(0, 1fr);
  }
}
