/* Base newsletter/contact form styles. Sites override typography and color via --gml-* on the wrapper. */
.gml-hp{position:absolute!important;left:-9999px!important;width:1px!important;height:1px!important;overflow:hidden!important;opacity:0!important;pointer-events:none!important;display:block!important}
form[data-gml-form],
.gml-form{
  display:grid!important;
  grid-template-columns:1fr;
  gap:.75rem;
  width:100%;
  max-width:32rem;
  font:inherit;
  color:inherit;
  box-sizing:border-box;
  align-items:stretch
}
form[data-gml-form]>* ,
.gml-form>*{min-width:0}
form[data-gml-form] > label:not(.gml-consent):not(.gml-check),
.gml-form > label:not(.gml-consent):not(.gml-check){
  display:flex!important;
  flex-direction:column!important;
  flex-wrap:nowrap;
  align-items:stretch!important;
  gap:.3rem;
  width:100%;
  min-width:0;
  font:inherit
}
form[data-gml-form] input[type=text],
form[data-gml-form] input[type=email],
form[data-gml-form] select,
form[data-gml-form] textarea,
.gml-form input[type=text],
.gml-form input[type=email],
.gml-form select,
.gml-form textarea{
  display:block!important;
  width:100%!important;
  max-width:100%!important;
  min-width:0!important;
  flex:none!important;
  box-sizing:border-box;
  font:inherit;
  color:inherit;
  background:var(--gml-input-bg, transparent);
  border:1px solid color-mix(in srgb, currentColor 28%, transparent);
  border-radius:var(--gml-input-radius, 6px);
  height:2.75rem;
  padding:0 .75rem;
  line-height:1.2
}
form[data-gml-form] select,
.gml-form select{appearance:auto}
form[data-gml-form] textarea,
.gml-form textarea{
  height:auto;
  min-height:8rem;
  padding:.65rem .75rem;
  line-height:1.45;
  resize:vertical
}
form[data-gml-form] button[type=submit],
.gml-form button[type=submit]{
  width:100%;
  justify-self:stretch;
  box-sizing:border-box;
  font:inherit;
  font-weight:700;
  cursor:pointer;
  border:0;
  padding:.7rem 1.1rem
}
form[data-gml-form] button[type=submit]:not([class]),
.gml-form button[type=submit]:not([class]){
  background:var(--gml-btn-bg, #111);
  color:var(--gml-btn-fg, #fff)
}
.gml-check{display:flex;gap:.5rem;align-items:flex-start;flex-wrap:wrap}
.gml-check label{display:flex!important;flex-direction:row!important;gap:.4rem;align-items:flex-start;font:inherit;width:auto}
form[data-gml-form] label.gml-consent,
label.gml-consent{
  display:flex!important;
  flex-direction:row!important;
  flex-wrap:nowrap;
  align-items:flex-start!important;
  gap:.5rem;
  width:100%;
  cursor:pointer;
  font-size:.9em;
  line-height:1.4;
  color:color-mix(in srgb, currentColor 70%, transparent)
}
form[data-gml-form] .gml-consent input[type=checkbox],
label.gml-consent input[type=checkbox],
.gml-consent input[type=checkbox]{
  display:inline-block!important;
  width:auto!important;
  min-width:1em;
  max-width:none!important;
  height:1em!important;
  margin:.2em 0 0!important;
  padding:0!important;
  flex:none!important;
  flex-shrink:0;
  position:relative;
  box-sizing:content-box;
  accent-color:currentColor
}
.gml-consent span{flex:1 1 auto;min-width:0;color:inherit}
.gml-form [data-gml-status],
form[data-gml-form] [data-gml-status]{font-size:.95em;margin:0}
.gml-form [data-gml-status][data-state=ok],
form[data-gml-form] [data-gml-status][data-state=ok]{color:var(--gml-ok, inherit)}
.gml-form [data-gml-status][data-state=err],
form[data-gml-form] [data-gml-status][data-state=err]{color:var(--gml-err, inherit)}
.gml-form [data-gml-status][hidden],
form[data-gml-form] [data-gml-status][hidden],
.gml-hp[hidden]{display:none!important}
.gml-band{margin:1.5rem 0;padding:1.2rem 0}
.gml-band h2,.gml-inline h2,.gml-exit-card h2{margin:0 0 .4rem}
.gml-band p,.gml-inline p,.gml-exit-card p{margin:0 0 .8rem}
.gml-keep-email{font-size:.95em}

/* Footer hook is a silent mount point only. Never show a second form under the footer. */
.gml-footer-signup{
  display:none!important;
  position:absolute!important;
  width:1px!important;
  height:1px!important;
  overflow:hidden!important;
  clip:rect(0 0 0 0)!important;
  pointer-events:none!important;
  margin:0!important;
  padding:0!important;
  border:0!important
}

@media print{
  .gml-footer-signup,
  .gml-exit-box,
  [data-gml-exit-box],
  .gml-exit-card{display:none!important}
}

/* Wide split banners (heading left, form right): name + email side by side on desktop. */
.signup form[data-gml-form],
.gml-form-split{
  max-width:none;
  grid-template-columns:1fr 1fr;
  gap:.75rem .85rem
}
.signup form[data-gml-form] > .gml-consent,
.signup form[data-gml-form] > button,
.signup form[data-gml-form] > [data-gml-turnstile],
.signup form[data-gml-form] > [data-gml-status],
.gml-form-split > .gml-consent,
.gml-form-split > button,
.gml-form-split > [data-gml-turnstile],
.gml-form-split > [data-gml-status]{grid-column:1/-1}
@media (max-width:760px){
  .signup form[data-gml-form],
  .gml-form-split{grid-template-columns:1fr}
}

/* Corner slide-in prompt (not a centered modal). hidden must always win over display rules. */
.gml-exit-box,
[data-gml-exit-box],
.gml-exit-box[hidden],
[data-gml-exit-box][hidden]{
  display:none!important;
  pointer-events:none;
  background:none;
  inset:auto;
  padding:0;
  margin:0
}
.gml-exit-box[data-open]:not([hidden]),
[data-gml-exit-box][data-open]:not([hidden]){
  display:block!important;
  pointer-events:auto;
  position:fixed;
  z-index:240;
  right:1rem;
  bottom:1rem;
  left:auto;
  top:auto;
  width:min(22.5rem, calc(100vw - 1.75rem));
  max-width:22.5rem;
  background:none;
  padding:0
}
.gml-exit-card{
  position:relative;
  background:var(--gml-card-bg, #fff);
  color:var(--gml-card-fg, inherit);
  font:inherit;
  width:100%;
  box-sizing:border-box;
  padding:.95rem 2.4rem .85rem 1rem;
  border:1px solid color-mix(in srgb, currentColor 16%, transparent);
  border-radius:10px;
  box-shadow:0 10px 28px rgba(0,0,0,.16);
  max-height:min(82vh, 36rem);
  overflow:auto;
  animation:gml-prompt-in .28s ease-out
}
.gml-exit-card .gml-form,
.gml-exit-card form[data-gml-form]{max-width:none;gap:.55rem}
.gml-exit-card h2{font-size:1.02rem;line-height:1.25;margin:0 0 .25rem}
.gml-exit-card p{font-size:.86em;line-height:1.35;margin:0 0 .5rem;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.gml-exit-card .gml-check{display:none}
.gml-exit-close{
  position:absolute;
  top:.15rem;
  right:.15rem;
  width:2.15rem;
  height:2.15rem;
  padding:0;
  border:0;
  background:transparent;
  color:inherit;
  cursor:pointer;
  line-height:1;
  font-size:0;
  opacity:.7;
  z-index:2
}
.gml-exit-close::before{
  content:"\00d7";
  display:block;
  font-size:1.55rem;
  line-height:2.15rem;
  font-weight:400;
  text-align:center
}
.gml-exit-close:hover,
.gml-exit-close:focus{opacity:1}
@keyframes gml-prompt-in{
  from{transform:translateY(1.15rem);opacity:0}
  to{transform:none;opacity:1}
}
@media (max-width:640px){
  .gml-exit-box[data-open]:not([hidden]),
  [data-gml-exit-box][data-open]:not([hidden]){
    right:.7rem;
    left:.7rem;
    bottom:.7rem;
    width:auto;
    max-width:none
  }
  .gml-exit-card{
    padding:.8rem 2.3rem .75rem .85rem;
    border-radius:10px;
    max-height:min(70vh, 28rem)
  }
  .gml-exit-card h2{font-size:1rem}
  .gml-exit-card p{font-size:.86em;margin:0 0 .5rem}
}
