/* Enima Newsroom public distribution UI — v0.3.14 */
.enima-follow-box{
  margin:32px 0;
  padding:24px;
  border:1px solid #e2e6ec;
  border-radius:14px;
  background:#fafbfc;
  box-sizing:border-box;
}
.enima-follow-box h2{margin:0 0 6px;font-size:26px;line-height:1.2}
.enima-follow-box>p{margin:0 0 22px;color:#52606d}
.enima-follow-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:20px;
  align-items:stretch;
}

/* Both cards use the exact same five-row geometry on desktop. */
.enima-follow-card{
  min-width:0;
  padding:28px 30px;
  background:#fff;
  border:1px solid #e5e8ed;
  border-radius:12px;
  box-sizing:border-box;
  display:grid!important;
  grid-template-rows:48px 74px 58px 58px minmax(20px,auto);
  row-gap:16px;
  align-content:start;
}
.enima-follow-card>h3{
  grid-row:1;
  margin:0!important;
  min-height:0!important;
  display:flex!important;
  align-items:center;
  justify-content:center;
  text-align:center;
  font-size:26px!important;
  line-height:1.15!important;
  font-weight:700!important;
}
.enima-card-description{
  grid-row:2;
  margin:0!important;
  min-height:0!important;
  align-self:start;
  font-size:20px;
  line-height:1.45;
}

/* Push card rows. */
.enima-push-choice{
  grid-row:3;
  display:block;
  margin:0!important;
  padding:0!important;
}
.enima-push-choice select{
  display:block;
  width:100%!important;
  height:58px!important;
  min-height:58px!important;
  margin:0!important;
  padding:10px 14px!important;
  border:1px solid #ccd3db;
  border-radius:8px;
  background:#fff;
  box-sizing:border-box;
  font:inherit;
  font-size:18px;
  line-height:1.2;
}
.enima-push-actions{
  grid-row:4;
  display:flex;
  width:100%;
  margin:0!important;
  padding:0!important;
  gap:10px;
  box-sizing:border-box;
}
.enima-push-actions .enima-push-subscribe{
  width:100%;
  min-height:58px;
  margin:0!important;
  padding:12px 18px!important;
  border:0;
  border-radius:8px;
  background:#10243e;
  color:#fff;
  font-size:18px;
  line-height:1.2;
  font-weight:700;
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:center;
  text-align:center;
  box-sizing:border-box;
}
.enima-push-actions .enima-push-unsubscribe{
  min-height:58px;
  margin:0!important;
  padding:12px 18px!important;
  border:1px solid #d8a2a2;
  border-radius:8px;
  background:#fff;
  color:#8b1e1e;
  font-weight:700;
  cursor:pointer;
  box-sizing:border-box;
}
.enima-follow-card button[hidden]{display:none!important}
.enima-follow-card button:disabled{opacity:.65;cursor:wait}
.enima-widget-status{
  grid-row:5;
  min-height:20px;
  margin:0!important;
  font-size:13px;
  color:#3d4a57;
}
.enima-widget-status.is-error{color:#9b1c1c}

/* Newsletter: the real Jetpack form stays functional, but its outer wrappers
   are removed by distribution.js. display:contents lets the email and submit
   rows occupy the exact same grid rows as the Push controls. */
.enima-jetpack-newsletter-widget>.enima-newsletter-normalized-form,
.enima-newsletter-normalized-form,
.enima-newsletter-controls{
  display:contents!important;
  margin:0!important;
  padding:0!important;
  border:0!important;
}
.enima-newsletter-normalized-form>.enima-newsletter-jetpack-original{
  display:none!important;
}
.enima-newsletter-email-row{
  grid-row:3;
  width:100%;
  height:58px;
  margin:0!important;
  padding:0!important;
}
.enima-newsletter-email-row input[type=email]{
  display:block;
  width:100%!important;
  height:58px!important;
  min-height:58px!important;
  margin:0!important;
  padding:10px 14px!important;
  border:1px solid #ccd3db;
  border-radius:8px;
  background:#fff;
  box-sizing:border-box;
  font:inherit;
  font-size:18px;
  line-height:1.2;
}
.enima-newsletter-submit-row{
  grid-row:4;
  width:100%;
  height:58px;
  margin:0!important;
  padding:0!important;
}
.enima-newsletter-submit-row input[type=submit],
.enima-newsletter-submit-row button[type=submit]{
  width:100%!important;
  height:58px!important;
  min-height:58px!important;
  margin:0!important;
  padding:12px 18px!important;
  border:0!important;
  border-radius:8px!important;
  background:#10243e!important;
  color:#fff!important;
  font-size:18px!important;
  line-height:1.2!important;
  font-weight:700!important;
  cursor:pointer;
  display:flex!important;
  align-items:center;
  justify-content:center;
  text-align:center;
  box-sizing:border-box;
}
.enima-newsletter-form-wrap .success,
.enima-newsletter-form-wrap .error{
  grid-row:5;
  margin:0!important;
}

.enima-consent{display:block;font-size:12px;line-height:1.4;margin-top:10px;color:#5b6470}
.enima-distribution-public-notice{padding:12px 14px;border-radius:8px;background:#eef7ef;margin:16px 0}
.enima-breaking-banner{width:100%;background:#a40000;color:#fff;position:relative;z-index:9998}
.enima-breaking-inner{max-width:1200px;margin:auto;display:flex;align-items:center;gap:14px;padding:10px 18px}
.enima-breaking-inner a{color:#fff;text-decoration:none;font-weight:700;flex:1}
.enima-breaking-close{appearance:none;border:0;background:transparent;color:#fff;font-size:24px;line-height:1;cursor:pointer}
.screen-reader-text{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}

/* v0.3.15 — mobile layout: natural vertical flow, no overflow */
@media(max-width:700px){
  .enima-follow-box{
    width:100%;
    max-width:100%;
    padding:14px!important;
    margin:24px 0!important;
    box-sizing:border-box!important;
    overflow:hidden;
  }
  .enima-follow-grid{
    display:grid!important;
    grid-template-columns:minmax(0,1fr)!important;
    gap:16px!important;
    width:100%;
    max-width:100%;
    min-width:0;
  }
  .enima-follow-grid>.enima-follow-card,
  .enima-follow-card{
    display:flex!important;
    flex-direction:column!important;
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    height:auto!important;
    min-height:0!important;
    padding:22px 16px!important;
    gap:16px!important;
    box-sizing:border-box!important;
    overflow:hidden;
  }
  .enima-follow-card>h3{
    width:100%;
    margin:0!important;
    min-height:0!important;
    font-size:24px!important;
    line-height:1.15!important;
    text-align:center!important;
    justify-content:center!important;
  }
  .enima-card-description{
    width:100%;
    margin:0!important;
    min-height:0!important;
    font-size:18px!important;
    line-height:1.45!important;
  }

  /* Never let theme rules force controls wider than their Newsroom card. */
  .enima-push-choice,
  .enima-newsletter-email-row,
  .enima-newsletter-submit-row,
  .enima-push-actions,
  .enima-widget-status{
    display:block!important;
    position:static!important;
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    height:auto!important;
    min-height:0!important;
    margin:0!important;
    padding:0!important;
    box-sizing:border-box!important;
  }
  .enima-push-choice select,
  .enima-newsletter-email-row input[type=email]{
    display:block!important;
    position:static!important;
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    height:56px!important;
    min-height:56px!important;
    margin:0!important;
    padding:10px 12px!important;
    box-sizing:border-box!important;
    font-size:17px!important;
    line-height:1.2!important;
  }

  /* When subscribed there are two Push actions: stack them naturally. */
  .enima-push-actions{
    display:flex!important;
    flex-direction:column!important;
    align-items:stretch!important;
    gap:10px!important;
  }
  .enima-push-actions .enima-push-subscribe,
  .enima-push-actions .enima-push-unsubscribe,
  .enima-newsletter-submit-row input[type=submit],
  .enima-newsletter-submit-row button[type=submit]{
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    position:static!important;
    float:none!important;
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    height:auto!important;
    min-height:56px!important;
    margin:0!important;
    padding:13px 12px!important;
    box-sizing:border-box!important;
    font-size:17px!important;
    line-height:1.25!important;
    white-space:normal!important;
    overflow-wrap:anywhere;
    text-align:center!important;
  }
  .enima-widget-status{
    font-size:14px!important;
    line-height:1.4!important;
  }
  .enima-newsletter-normalized-form,
  .enima-newsletter-controls,
  .enima-newsletter-form-wrap{
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
  }
  .enima-breaking-inner{align-items:flex-start}
  .enima-breaking-inner strong{white-space:nowrap}
}
