/* Load last, after mobile-legibility.css. The existing archive design and
   newsletter/analytics behavior are unchanged outside these narrow scopes. */
.newsletter-compact {
  width: 100%;
  max-width: 640px;
  min-width: 0;
  margin: 24px 0 30px;
  padding: 16px 18px;
  border: 1px solid #493c31;
  background: #121114;
  color: var(--bone, #e8e1d3);
  font-family: var(--sans, sans-serif);
  font-size: 13px;
}

.newsletter-compact > h2 {
  margin: 0 0 7px;
  color: #d6c39e;
  font-family: var(--serif, Georgia, serif);
  font-size: 27px;
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -.3px;
}

.newsletter-compact > .newsletter-compact-description {
  margin: 0 0 12px;
  color: #c1b7ad;
  font-size: 13px;
  line-height: 1.6;
}

.newsletter-compact .newsletter-form {
  margin: 0;
  min-width: 0;
}

.newsletter-compact .newsletter-label {
  margin-bottom: 6px;
  font-size: 11px;
  line-height: 1.5;
  letter-spacing: 1px;
}

.newsletter-compact .newsletter-input-row {
  display: flex;
  min-height: 46px;
}

.newsletter-compact .newsletter-input-row input {
  flex: 1 1 0;
  min-width: 0;
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  font-size: 16px;
  line-height: 1.4;
}

.newsletter-compact .newsletter-input-row button {
  flex: 0 0 auto;
  min-height: 44px;
  padding: 10px 14px;
  font-size: 12px;
  line-height: 1.4;
}

.newsletter-compact .newsletter-privacy,
.newsletter-compact .newsletter-result {
  margin-top: 8px;
  font-size: 11px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.newsletter-compact .newsletter-result:empty {
  margin-top: 0;
}

#hero-newsletter {
  max-width: 510px;
  min-width: 0;
}

#hero-newsletter .newsletter-compact {
  margin: 22px 0 0;
  padding: 14px 16px;
  background: #121114ed;
}

@media (max-width: 900px) {
  /* The existing slideshow caption becomes full-width at this breakpoint.
     Reserve its bottom band without moving any preceding hero content. */
  .hero:has(#hero-newsletter .newsletter-compact) .hero-inner {
    padding-bottom: 340px;
  }
}

@media (max-width: 800px) {
  /* Keep the longer action in its existing masthead slot. The fixed-width
     mobile menu and brand are untouched; this action can wrap to two lines. */
  .site-header .header-actions,
  .site-header .header-newsletter {
    min-width: 0;
  }

  .site-header .newsletter-trigger {
    min-width: 0;
    max-width: 90px;
    min-height: 44px;
    padding: 5px 6px;
    font-size: 12px;
    line-height: 1.35;
    letter-spacing: .2px;
    white-space: normal;
    overflow-wrap: normal;
    text-align: center;
  }

  .newsletter-compact {
    padding: 14px 16px;
  }

  .newsletter-compact > h2 {
    font-size: 25px;
  }
}

@media (max-width: 600px) {
  /* presentation-fixes.css visually clips the existing label at <=600px.
     Undo only that hiding treatment; retain its existing font and controls. */
  .analytics-choice-bar .analytics-choice-title {
    position: static;
    display: block;
    visibility: visible;
    width: auto;
    height: auto;
    margin: 0;
    overflow: visible;
    clip: auto;
  }

  /* Display the restored label above the unchanged control row, rather than
     forcing label plus controls to overflow a narrow viewport. */
  .analytics-choice-bar {
    display: grid;
  }
}
