/* TUF Newsletter — native WordPress.com / Jetpack presentation.
   Presentation only. Subscription transport remains Jetpack / WordPress.com. */

.tuf-newsletter-slot{
  width:min(100%,1180px);
  margin:34px auto 4px;
  padding:clamp(24px,3.5vw,38px);
  border:1px solid #d8e3ee;
  border-radius:18px;
  background:
    radial-gradient(circle at 92% 6%,rgba(18,103,232,.11),transparent 34%),
    linear-gradient(135deg,#f8fbff 0%,#ffffff 58%,#f7f9fc 100%);
  box-shadow:0 18px 46px rgba(13,39,70,.08);
  display:grid;
  grid-template-columns:minmax(0,1.05fr) minmax(340px,.95fr);
  gap:clamp(24px,4vw,52px);
  align-items:center;
}

.tuf-newsletter-slot__copy{
  min-width:0;
}

.tuf-newsletter-slot__eyebrow{
  display:inline-flex;
  align-items:center;
  gap:8px;
  color:#1267e8;
  font-size:11px;
  font-weight:800;
  letter-spacing:.14em;
}

.tuf-newsletter-slot__eyebrow::before{
  content:"";
  width:24px;
  height:2px;
  border-radius:999px;
  background:#c79a3b;
}

.tuf-newsletter-slot h2{
  margin:9px 0 10px;
  color:#0c1d2d;
  font-size:clamp(28px,3vw,42px);
  line-height:1.06;
  letter-spacing:-.035em;
}

.tuf-newsletter-slot__copy>p{
  max-width:660px;
  margin:0;
  color:#516273;
  font-size:15px;
  line-height:1.7;
}

.tuf-newsletter-slot__copy>small{
  display:block;
  margin-top:13px;
  color:#758392;
  font-size:12px;
  line-height:1.55;
}


/* =========================================================
   NATIVE JETPACK MOUNT
   ========================================================= */

.tuf-newsletter-slot__mount{
  min-width:0;
  padding:18px;
  border:1px solid rgba(18,103,232,.16);
  border-radius:14px;
  background:rgba(255,255,255,.88);
  box-shadow:0 10px 30px rgba(13,39,70,.06);
}


/* Jetpack status / confirmation / error text */

.tuf-newsletter-slot__mount p:not(#subscribe-email):not(#subscribe-submit){
  margin:0 0 16px;
  padding:13px 15px;
  border:1px solid #d8e5f3;
  border-radius:10px;
  background:#f7faff;
  color:#516273;
  font-size:13px;
  line-height:1.6;
}


/* Native Jetpack form */

.tuf-newsletter-slot__mount form{
  width:100%;
  margin:0;
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:9px;
  align-items:end;
}


/* Jetpack email field wrapper */

.tuf-newsletter-slot__mount #subscribe-email{
  min-width:0;
  margin:0 !important;
}

.tuf-newsletter-slot__mount #subscribe-email label,
.tuf-newsletter-slot__mount form label{
  display:block;
  margin:0 0 7px;
  color:#26394b;
  font-size:12px;
  font-weight:750;
  line-height:1.4;
}


/* Native email field */

.tuf-newsletter-slot__mount #subscribe-email input[type="email"],
.tuf-newsletter-slot__mount form input[type="email"]{
  box-sizing:border-box;
  width:100% !important;
  min-width:0;
  height:48px !important;
  margin:0 !important;
  padding:0 13px !important;

  border:1px solid #cbd8e5 !important;
  border-radius:10px !important;

  color:#33485b !important;
  background:#fff !important;

  font:inherit !important;
  font-size:14px !important;

  outline:none;
  box-shadow:none !important;

  transition:
    border-color .18s ease,
    box-shadow .18s ease;
}

.tuf-newsletter-slot__mount #subscribe-email input[type="email"]:focus,
.tuf-newsletter-slot__mount form input[type="email"]:focus{
  border-color:#1267e8 !important;
  box-shadow:0 0 0 3px rgba(18,103,232,.11) !important;
}

.tuf-newsletter-slot__mount input[type="email"]::placeholder{
  color:#8796a5;
  opacity:1;
}


/* Native Jetpack submit wrapper */

.tuf-newsletter-slot__mount #subscribe-submit{
  margin:0 !important;
  padding:0 !important;
  align-self:end;
}


/* Native Jetpack Subscribe button */

.tuf-newsletter-slot__mount #subscribe-submit input[type="submit"],
.tuf-newsletter-slot__mount form input[type="submit"],
.tuf-newsletter-slot__mount form button{
  box-sizing:border-box;

  min-width:132px;
  height:48px !important;

  margin:0 !important;
  padding:0 20px !important;

  border:1px solid #1267e8 !important;
  border-radius:10px !important;

  color:#fff !important;
  background:#1267e8 !important;

  font:inherit !important;
  font-size:13px !important;
  font-weight:800 !important;

  line-height:1 !important;
  text-align:center;

  cursor:pointer;

  box-shadow:0 6px 15px rgba(18,103,232,.16);

  transition:
    background .18s ease,
    border-color .18s ease,
    box-shadow .18s ease,
    transform .18s ease;
}

.tuf-newsletter-slot__mount #subscribe-submit input[type="submit"]:hover,
.tuf-newsletter-slot__mount form input[type="submit"]:hover,
.tuf-newsletter-slot__mount form button:hover{
  background:#0d59cf !important;
  border-color:#0d59cf !important;
  box-shadow:0 8px 18px rgba(18,103,232,.22);
  transform:translateY(-1px);
}

.tuf-newsletter-slot__mount #subscribe-submit input[type="submit"]:active,
.tuf-newsletter-slot__mount form input[type="submit"]:active,
.tuf-newsletter-slot__mount form button:active{
  transform:translateY(0);
}


/* Links returned by Jetpack */

.tuf-newsletter-slot__mount a{
  color:#1267e8;
  font-weight:700;
  text-decoration:none;
}

.tuf-newsletter-slot__mount a:hover{
  text-decoration:underline;
}


/* Hide empty Jetpack spacing */

.tuf-newsletter-slot__mount p:empty{
  display:none;
}


/* =========================================================
   OLD PREVIEW SUPPORT
   ========================================================= */

.tuf-newsletter-slot__preview label{
  display:block;
  margin:0 0 7px;
  color:#26394b;
  font-size:12px;
  font-weight:750;
}

.tuf-newsletter-slot__preview-row{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:9px;
}

.tuf-newsletter-slot__preview input,
.tuf-newsletter-slot__preview button{
  min-width:0;
  min-height:48px;
  border-radius:10px;
  font:inherit;
}

.tuf-newsletter-slot__preview input{
  width:100%;
  padding:0 13px;
  border:1px solid #cbd8e5;
  color:#33485b;
  background:#fff;
}

.tuf-newsletter-slot__preview button{
  padding:0 20px;
  border:1px solid #1267e8;
  color:#fff;
  background:#1267e8;
  font-weight:800;
}

.tuf-newsletter-slot__preview :disabled{
  cursor:not-allowed;
  opacity:.72;
}

.tuf-newsletter-slot__preview>small{
  display:block;
  margin-top:9px;
  color:#7b8996;
  font-size:11px;
  line-height:1.45;
}


/* =========================================================
   MIDNIGHT
   ========================================================= */

[data-tuf-style="midnight"] .tuf-newsletter-slot{
  border-color:#23384b;
  background:
    radial-gradient(circle at 92% 6%,rgba(42,130,255,.16),transparent 34%),
    linear-gradient(135deg,#07131f 0%,#091723 60%,#07111c 100%);
  box-shadow:0 18px 46px rgba(0,0,0,.24);
}

[data-tuf-style="midnight"] .tuf-newsletter-slot h2{
  color:#f3f7fb;
}

[data-tuf-style="midnight"] .tuf-newsletter-slot__copy>p{
  color:#aebdca;
}

[data-tuf-style="midnight"] .tuf-newsletter-slot__copy>small,
[data-tuf-style="midnight"] .tuf-newsletter-slot__preview>small{
  color:#8797a6;
}

[data-tuf-style="midnight"] .tuf-newsletter-slot__mount{
  border-color:#263d51;
  background:rgba(8,22,34,.78);
}

[data-tuf-style="midnight"] .tuf-newsletter-slot__mount p:not(#subscribe-email):not(#subscribe-submit){
  border-color:#263d51;
  background:#0d1d2b;
  color:#aebdca;
}

[data-tuf-style="midnight"] .tuf-newsletter-slot__mount label,
[data-tuf-style="midnight"] .tuf-newsletter-slot__preview label{
  color:#c8d4df;
}

[data-tuf-style="midnight"] .tuf-newsletter-slot__mount input[type="email"],
[data-tuf-style="midnight"] .tuf-newsletter-slot__preview input{
  border-color:#30495f !important;
  color:#d8e2eb !important;
  background:#0d1d2b !important;
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media(max-width:820px){

  .tuf-newsletter-slot{
    grid-template-columns:minmax(0,1fr);
  }

}

@media(max-width:560px){

  .tuf-newsletter-slot{
    margin-top:26px;
    padding:20px;
    border-radius:14px;
  }

  .tuf-newsletter-slot__mount{
    padding:14px;
  }

  .tuf-newsletter-slot__mount form,
  .tuf-newsletter-slot__preview-row{
    grid-template-columns:minmax(0,1fr);
  }

  .tuf-newsletter-slot__mount #subscribe-submit input[type="submit"],
  .tuf-newsletter-slot__mount form input[type="submit"],
  .tuf-newsletter-slot__mount form button,
  .tuf-newsletter-slot__preview button{
    width:100%;
  }

}