/* Athena Subscribe — modal and form.
   Everything is namespaced under .ath-sub so nothing here can reach the page
   around it, and nothing on the page can repaint it. */

.ath-sub, .ath-sub *, .ath-sub *::before, .ath-sub *::after { box-sizing: border-box; }

.ath-sub{
  --s-ink:#0B0B0C;
  --s-gold:#FFC04A;
  --s-line:#DAD8D0;
  --s-grey:#6C6C75;
  position:fixed; inset:0; z-index:99999;
  display:flex; align-items:center; justify-content:center;
  padding:24px;
  font-family:Poppins,system-ui,-apple-system,"Segoe UI",sans-serif;
}
.ath-sub[hidden]{ display:none; }

.ath-sub-veil{ position:absolute; inset:0; background:rgba(11,11,12,.72); }

.ath-sub-box{
  position:relative; z-index:1;
  width:100%; max-width:440px;
  background:#fff; color:var(--s-ink);
  border-radius:3px;
  padding:34px 32px 30px;
  box-shadow:0 30px 70px -20px rgba(0,0,0,.55);
  max-height:calc(100vh - 48px);
  overflow-y:auto;
}

.ath-sub-x{
  position:absolute; top:8px; right:10px;
  width:38px; height:38px; padding:0;
  border:0; background:transparent; cursor:pointer;
  font-size:26px; line-height:1; color:var(--s-grey);
}
.ath-sub-x:hover{ color:var(--s-ink); }
.ath-sub-x:focus-visible{ outline:2px solid var(--s-ink); outline-offset:2px; }

.ath-sub-kick{
  margin:0; font-size:11px; font-weight:600;
  letter-spacing:.18em; text-transform:uppercase; color:var(--s-gold);
}
/* The theme sets a colour and a font on h1 to h6 outright, and naming the
   element beats a plain class, so both are restated here. */
.ath-sub h2.ath-sub-h{ font-family:inherit; }
.ath-sub .ath-sub-h{
  margin:10px 0 0; font-size:28px; font-weight:600;
  line-height:1.2; letter-spacing:-.02em; color:var(--s-ink);
}
.ath-sub .ath-sub-p{
  margin:10px 0 0; font-size:15px; font-weight:500; line-height:1.55;
  color:var(--s-grey); text-wrap:balance;
}

.ath-sub-form{ margin-top:22px; }
.ath-sub-f{ display:block; margin-bottom:14px; }
.ath-sub-f span{
  display:block; margin-bottom:6px;
  font-size:12.5px; font-weight:600; letter-spacing:.04em; color:var(--s-ink);
}
.ath-sub .ath-sub-f input{
  width:100%; margin:0;
  padding:13px 14px;
  font-family:inherit; font-size:15px; line-height:1.2;
  color:var(--s-ink); background:#fff;
  border:1px solid var(--s-line); border-radius:2px;
  outline:none; box-shadow:none;
}
.ath-sub .ath-sub-f input:focus{ border-color:var(--s-ink); box-shadow:0 0 0 3px rgba(255,192,74,.35); }
.ath-sub .ath-sub-f input[aria-invalid="true"]{ border-color:#B3261E; }

/* Off screen rather than display:none, because some bots skip anything the
   browser is not rendering. */
.ath-sub-hp{ position:absolute; left:-9999px; width:1px; height:1px; overflow:hidden; }

.ath-sub-msg{ margin:0; min-height:0; font-size:13.5px; line-height:1.5; color:#B3261E; }
.ath-sub-msg:empty{ display:none; }

.ath-sub-submit{
  width:100%; margin-top:16px;
  padding:15px 24px;
  font-family:inherit; font-size:15px; font-weight:600; line-height:1;
  color:#fff; background:var(--s-ink);
  border:2px solid var(--s-ink); border-radius:2px;
  cursor:pointer;
  transition:background-color .16s ease, color .16s ease;
}
.ath-sub-submit:hover,
.ath-sub-submit:focus-visible{ background:transparent; color:var(--s-ink); }
.ath-sub-submit:focus-visible{ outline:2px solid var(--s-gold); outline-offset:3px; }
.ath-sub-submit[disabled]{ opacity:.6; cursor:default; }

.ath-sub-done{ text-align:center; padding:8px 0 4px; }
.ath-sub-done .ath-sub-h{ margin-top:0; }

/* The shortcode button, for anywhere there is no Breakdance button to reuse. */
.ath-sub-btn{
  display:inline-block; padding:15px 28px;
  font-family:Poppins,system-ui,sans-serif; font-size:15px; font-weight:600; line-height:1;
  color:#0B0B0C; background:#FFC04A;
  border:2px solid #FFC04A; border-radius:2px; cursor:pointer;
  transition:background-color .16s ease, color .16s ease;
}
.ath-sub-btn:hover,
.ath-sub-btn:focus-visible{ background:transparent; color:#0B0B0C; }

@media (max-width:520px){
  .ath-sub{ padding:16px; }
  .ath-sub-box{ padding:30px 22px 26px; }
  .ath-sub .ath-sub-h{ font-size:24px; }
}

@media (prefers-reduced-motion:reduce){
  .ath-sub-submit, .ath-sub-btn{ transition:none; }
}
