/* The take-down request form (/takedown) and the pages worker/takedown.js
   answers with. Additive: styles.css is shared by the frozen pages and is
   not touched. Nothing on the site is boxed, so the fields are hairline
   underlines like the waitlist input. */

.takedown {
  margin: 1.2rem 0 2.4rem;
}

.takedown__field {
  margin: 0 0 1.6rem;
  padding: 0;
  border: 0;
  min-width: 0;
}

.takedown__label {
  display: block;
  margin: 0 0 0.35rem;
  padding: 0;
  font-family: var(--font-sans);
  font-size: 0.92rem;
  font-weight: 620;
  color: var(--ink);
}

.doc .takedown__hint {
  margin: 0 0 0.5rem;
  font-size: 0.86rem;
  line-height: 1.5;
  color: var(--ink-faint);
}

.takedown input[type="text"],
.takedown input[type="email"],
.takedown textarea {
  display: block;
  box-sizing: border-box;
  width: 100%;
  padding: 0.45rem 0.1rem;
  border: 0;
  border-bottom: 1px solid var(--hairline);
  border-radius: 0;
  background: transparent;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.5;
  color: var(--ink);
}

.takedown textarea {
  resize: vertical;
  min-height: 4.5rem;
}

.takedown input[type="text"]:focus,
.takedown input[type="email"]:focus,
.takedown textarea:focus {
  outline: none;
  border-bottom-color: var(--ink);
}

.takedown__choice {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  margin: 0 0 0.5rem;
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--ink-soft);
}

.takedown__choice input {
  flex: 0 0 auto;
  margin: 0;
  accent-color: var(--ink);
}

.takedown__submit {
  appearance: none;
  margin-top: 0.4rem;
  padding: 0.1rem 0;
  border: 0;
  background: none;
  cursor: pointer;
  font-family: var(--font-sans);
  font-size: 1.15rem;
  font-weight: 560;
  color: var(--ink);
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 0.25em;
  transition: opacity 160ms ease;
}

.takedown__submit:hover {
  opacity: 0.6;
}

.takedown__submit:disabled {
  cursor: not-allowed;
  opacity: 0.4;
}

/* Cloudflare Turnstile's widget renders at 65px tall; reserve it so the send
   button does not jump when the iframe arrives. */
.takedown__turnstile {
  min-height: 65px;
  margin: 0 0 1.2rem;
}

.takedown__turnstile[hidden] {
  display: none;
}

.takedown__errors {
  margin: 0 0 1.6rem;
  padding: 1rem 0;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}

.takedown__errors[hidden] {
  display: none;
}

.doc .takedown__errors p,
.doc .takedown__errors li {
  color: var(--ink);
}
