.tfs-library-subscribe-trigger {
  min-height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 26px;
  border: 2px solid #0a0a0a;
  border-radius: 0;
  background: #fff8f5;
  color: #0a0a0a;
  font-family: "Barlow Condensed", Impact, sans-serif;
  font-size: 17px;
  font-style: italic;
  font-weight: 800;
  letter-spacing: .06em;
  line-height: 1;
  text-transform: uppercase;
  cursor: pointer;
  transition: background .2s ease, color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.tfs-library-subscribe-trigger:hover {
  background: linear-gradient(90deg, #00e5cc, #55aaff 52%, #9b59ff);
  color: #0a0a0a;
  box-shadow: 5px 5px 0 #0a0a0a;
  transform: translate(-2px, -2px);
}

.tfs-library-subscribe-trigger:focus-visible {
  outline: 3px solid #00e5cc;
  outline-offset: 4px;
}

.tfs-library-subscribe-trigger.tfs-library-subscribe-combined {
  background: #101010;
  color: #ffffff;
  border-color: #00e5cc;
  letter-spacing: 0;
}
.tfs-library-subscribe-trigger.tfs-library-subscribe-combined:hover {
  background: #242424;
  color: #ffffff;
}
.tfs-library-subscribe-modes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin: 18px 0 22px;
  border: 1px solid #101010;
}
.tfs-library-subscribe-modes button {
  min-height: 52px;
  padding: 10px 12px;
  border: 0;
  border-radius: 0;
  background: #ffffff;
  color: #101010;
  font-family: "Barlow Condensed", Impact, sans-serif;
  font-size: 17px;
  font-weight: 800;
  font-style: italic;
  line-height: 1.2;
  letter-spacing: 0;
  cursor: pointer;
}
.tfs-library-subscribe-modes button + button { border-left: 1px solid #101010; }
.tfs-library-subscribe-modes button[aria-pressed="true"] {
  background: #101010;
  color: #ffffff;
  box-shadow: inset 0 -4px #00e5cc;
}
.tfs-library-subscribe-modes button:focus-visible { outline: 3px solid #9b59ff; outline-offset: -4px; }

.library-cta .tfs-library-subscribe-trigger {
  margin: 16px 0 0 12px;
}

.tfs-library-subscribe-dialog {
  --tfs-gate-black: #0a0a0a;
  --tfs-gate-cream: #fff8f5;
  --tfs-gate-cyan: #00e5cc;
  --tfs-gate-violet: #9b59ff;
  --tfs-gate-gradient: linear-gradient(90deg, var(--tfs-gate-cyan), #55aaff 52%, var(--tfs-gate-violet));
  width: min(calc(100% - 32px), 560px);
  max-width: 560px;
  max-height: calc(100dvh - 32px);
  margin: auto;
  padding: 0;
  overflow: auto;
  border: 2px solid var(--tfs-gate-black);
  border-radius: 0;
  background: var(--tfs-gate-cream);
  color: var(--tfs-gate-black);
  box-shadow: 10px 10px 0 var(--tfs-gate-black);
}

.tfs-library-subscribe-dialog,
.tfs-library-subscribe-dialog * {
  box-sizing: border-box;
}

.tfs-library-subscribe-dialog::backdrop {
  background: rgba(5, 5, 5, .78);
  backdrop-filter: blur(4px);
}

.tfs-library-subscribe-dialog[open] {
  display: block;
}

.tfs-library-subscribe-panel {
  position: relative;
  padding: 26px 28px 20px;
  font-family: "DM Sans", Arial, sans-serif;
}

.tfs-library-subscribe-topline {
  width: calc(100% + 56px);
  height: 6px;
  margin: -26px -28px 18px;
  background: var(--tfs-gate-gradient);
}

.tfs-library-subscribe-close {
  position: absolute;
  top: 22px;
  right: 24px;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--tfs-gate-black);
  border-radius: 0;
  background: #fff;
  color: var(--tfs-gate-black);
  font-size: 29px;
  line-height: 1;
  cursor: pointer;
  transition: background .2s ease, color .2s ease, transform .2s ease;
}

.tfs-library-subscribe-close:hover,
.tfs-library-subscribe-close:focus-visible {
  background: var(--tfs-gate-black);
  color: #fff;
  outline: 0;
  transform: translate(-2px, -2px);
}

.tfs-library-subscribe-brand {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin: 0 54px 18px 0;
}

.tfs-library-subscribe-brand img {
  display: block;
  width: 154px;
  height: 40px;
  object-fit: contain;
  object-position: left center;
}

.tfs-library-subscribe-brand span {
  font-style: italic;
  padding-left: 14px;
  border-left: 1px solid var(--tfs-gate-black);
  background: var(--tfs-gate-gradient);
  color: transparent;
  font-family: "Barlow Condensed", Impact, sans-serif;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.tfs-library-subscribe-dialog h2 {
  margin: 0;
  font-family: "Barlow Condensed", Impact, sans-serif;
  font-size: 58px;
  font-style: italic;
  font-weight: 800;
  line-height: .88;
  letter-spacing: 0;
  text-transform: uppercase;
}

.tfs-library-subscribe-dialog h2 span {
  background: var(--tfs-gate-gradient);
  color: transparent;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.tfs-library-subscribe-resource {
  display: inline-block;
  margin: 14px 0 0;
  padding: 8px 10px;
  border: 1px solid var(--tfs-gate-black);
  background: #fff;
  font-family: "Barlow Condensed", Impact, sans-serif;
  font-size: 14px;
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
}

.tfs-library-subscribe-intro {
  max-width: 50ch;
  margin: 14px 0 0;
  color: #625d5b;
  font-size: 14px;
  line-height: 1.5;
}

.tfs-library-subscribe-form {
  margin-top: 18px;
}

.tfs-library-subscribe-capture {
  padding: 18px;
  background: var(--tfs-gate-black);
  color: #fff;
}

.tfs-library-subscribe-form > .tfs-library-subscribe-capture > label:first-child {
  display: block;
  margin-bottom: 9px;
  font-family: "Barlow Condensed", Impact, sans-serif;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.tfs-library-subscribe-form input[type="email"] {
  width: 100%;
  min-height: 58px;
  padding: 0 16px;
  border: 1px solid var(--tfs-gate-black);
  border-radius: 0;
  background: #fff;
  color: var(--tfs-gate-black);
  font: 17px "DM Sans", Arial, sans-serif;
  outline: 0;
}

.tfs-library-subscribe-form input[type="email"]:focus {
  box-shadow: 4px 4px 0 var(--tfs-gate-violet);
}

.tfs-library-subscribe-honeypot {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

.tfs-library-subscribe-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 16px 0 0;
  color: rgba(255, 255, 255, .9);
  font-family: "DM Sans", Arial, sans-serif;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.45;
  text-transform: none;
  cursor: pointer;
}

.tfs-library-subscribe-consent input {
  width: 18px;
  height: 18px;
  margin: 1px 0 0;
  flex: 0 0 auto;
  accent-color: var(--tfs-gate-violet);
}

.tfs-library-subscribe-privacy {
  margin: 11px 0 0;
  color: rgba(255, 255, 255, .64);
  font-size: 12px;
  line-height: 1.5;
}

.tfs-library-subscribe-privacy a {
  color: #fff;
  font-weight: 800;
  text-decoration: underline;
  text-decoration-color: var(--tfs-gate-cyan);
  text-underline-offset: 3px;
}

.tfs-library-subscribe-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 18px;
}

.tfs-library-subscribe-submit {
  min-height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 26px;
  border: 2px solid transparent;
  border-radius: 0;
  background: var(--tfs-gate-gradient);
  color: var(--tfs-gate-black);
  font-family: "Barlow Condensed", Impact, sans-serif;
  font-size: 17px;
  font-style: italic;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  cursor: pointer;
}

.tfs-library-subscribe-submit:disabled {
  cursor: wait;
  opacity: .65;
}

.tfs-library-subscribe-cancel {
  min-height: 44px;
  padding: 0 4px;
  border: 0;
  background: transparent;
  color: var(--tfs-gate-black);
  font-family: "Barlow Condensed", Impact, sans-serif;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .08em;
  text-decoration: underline;
  text-decoration-color: var(--tfs-gate-cyan);
  text-underline-offset: 5px;
  text-transform: uppercase;
  cursor: pointer;
}

.tfs-library-subscribe-status {
  margin: 14px 0 0;
  color: var(--tfs-gate-black);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.45;
}

.tfs-library-subscribe-status:empty {
  display: none;
}

.tfs-library-subscribe-status.is-error {
  color: #a91515;
}

@media (max-width: 1023px) {
  .tfs-library-subscribe-dialog {
    width: min(calc(100% - 48px), 520px);
    box-shadow: 8px 8px 0 var(--tfs-gate-black);
  }

  .tfs-library-subscribe-panel {
    padding: 24px 26px 20px;
  }

  .tfs-library-subscribe-topline {
    width: calc(100% + 52px);
    margin: -24px -26px 18px;
  }

  .tfs-library-subscribe-brand {
    margin-bottom: 16px;
  }

  .tfs-library-subscribe-brand img {
    width: 140px;
    height: 36px;
  }

  .tfs-library-subscribe-dialog h2 {
    font-size: 50px;
  }
}

@media (max-width: 767px) {
  .tfs-library-subscribe-trigger {
    width: 100%;
    min-height: 52px;
    padding-inline: 18px;
  }

  .library-cta .tfs-library-subscribe-trigger {
    margin: 14px 0 0;
  }

  .tfs-library-subscribe-dialog {
    width: calc(100% - 24px);
    max-height: calc(100dvh - 24px);
    box-shadow: 7px 7px 0 var(--tfs-gate-black);
  }

  .tfs-library-subscribe-panel {
    padding: 22px 20px 18px;
  }

  .tfs-library-subscribe-topline {
    width: calc(100% + 40px);
    margin: -22px -20px 16px;
  }

  .tfs-library-subscribe-close {
    top: 18px;
    right: 16px;
  }

  .tfs-library-subscribe-brand {
    gap: 10px;
    margin: 0 48px 14px 0;
  }

  .tfs-library-subscribe-brand img {
    width: 128px;
    height: 34px;
  }

  .tfs-library-subscribe-brand span {
    padding-left: 10px;
    font-size: 15px;
  }

  .tfs-library-subscribe-dialog h2 {
    font-size: 42px;
  }

  .tfs-library-subscribe-resource,
  .tfs-library-subscribe-intro {
    margin-top: 12px;
  }

  .tfs-library-subscribe-form {
    margin-top: 16px;
  }

  .tfs-library-subscribe-capture {
    padding: 16px;
  }

  .tfs-library-subscribe-actions {
    align-items: stretch;
    flex-direction: column;
    gap: 10px;
    margin-top: 16px;
  }

  .tfs-library-subscribe-submit {
    width: 100%;
  }

  .tfs-library-subscribe-cancel {
    align-self: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tfs-library-subscribe-trigger,
  .tfs-library-subscribe-close {
    transition: none;
  }
}
.tfs-library-subscribe-dialog [hidden] { display: none !important; }
