/* CELLMIND local reference rebuild — generated from website/cellmind-rebuild/src/styles. Do not edit output. */
/* ---- pages/affiliate.css ---- */
/* Affiliate registration — centred white form card. Values: computed reference styles
   (evidence/wsC/affiliate-*.txt) and used rules (evidence/wsC/css-usage/affiliate.used.css). */

body.tpl-affiliate {
  display: flex;
  flex-direction: column;
  min-height: calc(100vh + var(--header-h));
  min-height: calc(100dvh + var(--header-h));
  background: var(--t-bg-off);
}
.tpl-affiliate .page {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  width: 100%;
  max-width: var(--container-max);
  min-height: calc(100vh - var(--header-h));
  margin-inline: auto;
  padding: calc(var(--header-h) + 12px) var(--container-pad) 64px;
}

.aff { position: relative; width: 100%; max-width: 680px; margin-inline: auto; }
.aff-form {
  width: 100%;
  padding: clamp(24px, 4vw, 40px);
  border: 1px solid var(--t-border-line);
  background: var(--t-bg-white);
  box-shadow: 0 16px 48px rgba(var(--t-shadow-black-rgb), 0.05);
}
.aff-form::after { content: ""; display: block; clear: both; }

.aff-field { margin-bottom: 0.8em; }
.aff-field--half { display: inline-block; width: 50%; }
.aff-field__label {
  display: block;
  margin-bottom: 8px;
  font-size: 10px;
  font-weight: 500;
  line-height: 1.6;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--t-text-muted);
}
.aff-field__label.is-required::after { content: " *"; }
.aff-field__input {
  display: block;
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 12px 16px;
  border: 1px solid var(--t-border-line);
  border-radius: 0;
  background: var(--t-bg-white);
  color: var(--t-text-ink);
  font-size: 16px;
  font-weight: 300;
  line-height: 1.5;
  -webkit-appearance: none;
  appearance: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
/* Focus (reference cascade): single-line fields keep their border and gain a faint gold ring; the
   textarea also turns its border gold. */
.aff-field__input:focus { outline: none; box-shadow: 0 0 0 1px rgba(var(--t-shadow-gold-rgb), 0.25); }
.aff-field__input--area { min-height: 140px; resize: vertical; }
.aff-field__input--area:focus { border-color: var(--t-border-gold); }

.aff-check {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  width: 100%;
  font-size: 13px;
  font-weight: 300;
  line-height: 1.6;
  color: var(--t-text-ink);
  cursor: pointer;
}
.aff-check__box:focus { box-shadow: 0 0 0 1px rgba(var(--t-shadow-gold-rgb), 0.25); }
.aff-check__box {
  position: relative;
  z-index: 1;
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  min-width: 18px;
  max-width: 18px;
  margin: 3px 0 0;
  accent-color: var(--t-accent-gold-dark);
  cursor: pointer;
}

.aff-form__submit {
  display: block;
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 16px 32px;
  border: 0;
  border-radius: 0;
  background: var(--t-bg-ink);
  color: var(--t-text-white);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-align: center;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  transition: background 0.2s ease, color 0.2s ease;
}
.aff-form__submit:hover { background: var(--t-bg-gold-dark); color: var(--t-text-white); }

@media (max-width: 768px) {
  .tpl-affiliate .page { padding: calc(var(--header-h) + 8px) 20px 48px; }
  .aff-form { padding: 20px; }
}
