/* Help subdomain — content layer (nav from bd-ios.css only) */

.help-body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.help-body.bd-v2 {
  background:
    radial-gradient(ellipse 90% 55% at 50% -15%, rgba(168, 196, 255, 0.45) 0%, transparent 55%),
    linear-gradient(180deg, #f8faff 0%, #ffffff 45%, #fafbff 100%);
  background-attachment: fixed;
}

.help-shell {
  flex: 1;
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding: calc(var(--bd-a-nav-h) + 32px) 24px 56px;
  box-sizing: border-box;
}

.help-shell--narrow {
  max-width: 560px;
}

/* ── Hero ── */
.help-hero {
  text-align: center;
  margin-bottom: 48px;
}

.help-hero--left {
  text-align: left;
  margin-bottom: 28px;
}

.help-hero__title {
  font-size: clamp(34px, 5.5vw, 48px);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.08;
  margin: 0 0 14px;
  color: #1d1d1f;
}

.help-hero__lead {
  font-size: 17px;
  line-height: 1.55;
  color: #6e6e73;
  margin: 0 auto 24px;
  max-width: 34em;
}

.help-hero--left .help-hero__lead {
  margin-left: 0;
  margin-right: 0;
  max-width: none;
}

.help-hero__cta {
  margin-top: 4px;
}

.help-inline-link {
  color: #355cff;
  font-weight: 500;
  text-decoration: none;
}

.help-inline-link:hover {
  text-decoration: underline;
}

.help-btn--block {
  width: 100%;
  justify-content: center;
}

/* Primary buttons — match main site hover depth */
body.help-body.bd-v2 .bd-btn--primary {
  background: #1e40af;
}

body.help-body.bd-v2 .bd-btn--primary:hover {
  background: #1d4ed8;
}

/* ── Topics list ── */
.help-section {
  margin-bottom: 40px;
  text-align: left;
}

.help-section__title {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0 0 6px;
}

.help-section__lead {
  font-size: 15px;
  color: #6e6e73;
  margin: 0 0 18px;
}

.help-topic-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.help-topic-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 20px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.05);
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.help-topic-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.08);
}

.help-topic-card__body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.help-topic-card__title {
  font-size: 16px;
  font-weight: 600;
  color: #1d1d1f;
}

.help-topic-card__desc {
  font-size: 14px;
  line-height: 1.45;
  color: #6e6e73;
}

.help-topic-card__arrow {
  flex-shrink: 0;
  font-size: 20px;
  color: #c7c7cc;
}

/* ── Support panel ── */
.help-support {
  display: grid;
  grid-template-columns: 1fr min(220px, 100%);
  gap: 24px;
  align-items: start;
  padding: 24px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 12px 40px rgba(15, 23, 42, 0.06);
  text-align: left;
}

.help-support__title {
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 6px;
}

.help-support__lead {
  font-size: 14px;
  color: #6e6e73;
  margin: 0 0 10px;
}

.help-support__discord {
  font-size: 14px;
  line-height: 1.5;
  color: #6e6e73;
  margin: 0;
}

.help-support__discord a {
  color: #355cff;
  font-weight: 500;
  text-decoration: none;
}

.help-support__discord a:hover {
  text-decoration: underline;
}

.help-support__actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* ── Custom topic picker ── */
.help-topic-picker {
  position: relative;
}

.help-topic-picker__trigger {
  width: 100%;
  min-height: 52px;
  padding: 12px 44px 12px 16px;
  border-radius: 14px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  background: linear-gradient(180deg, #ffffff 0%, #f8faff 100%);
  box-shadow:
    0 1px 2px rgba(15, 23, 42, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.help-topic-picker__trigger:hover {
  border-color: rgba(30, 64, 175, 0.22);
}

.help-topic-picker.is-open .help-topic-picker__trigger,
.help-topic-picker__trigger:focus-visible {
  outline: none;
  border-color: rgba(30, 64, 175, 0.45);
  box-shadow:
    0 0 0 4px rgba(30, 64, 175, 0.1),
    0 8px 24px rgba(15, 23, 42, 0.08);
}

.help-topic-picker__value {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: #1d1d1f;
  line-height: 1.3;
}

.help-topic-picker__value.is-placeholder {
  font-weight: 400;
  color: #86868b;
}

.help-topic-picker__chev {
  position: absolute;
  right: 18px;
  top: 50%;
  width: 8px;
  height: 8px;
  margin-top: -6px;
  border-right: 2px solid #6e6e73;
  border-bottom: 2px solid #6e6e73;
  transform: rotate(45deg);
  transition: transform 0.2s ease, border-color 0.2s ease;
  pointer-events: none;
}

.help-topic-picker.is-open .help-topic-picker__chev {
  margin-top: -2px;
  transform: rotate(-135deg);
  border-color: #1e40af;
}

.help-topic-picker__menu {
  position: absolute;
  z-index: 20;
  left: 0;
  right: 0;
  top: calc(100% + 8px);
  margin: 0;
  padding: 6px;
  list-style: none;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow:
    0 4px 6px rgba(15, 23, 42, 0.04),
    0 20px 48px rgba(15, 23, 42, 0.12);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  max-height: min(320px, 50vh);
  overflow-y: auto;
}

.help-topic-picker__option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  cursor: pointer;
  transition: background 0.15s ease;
}

.help-topic-picker__option:hover,
.help-topic-picker__option:focus-visible {
  outline: none;
  background: rgba(30, 64, 175, 0.06);
}

.help-topic-picker__option.is-selected {
  background: rgba(30, 64, 175, 0.08);
}

.help-topic-picker__option-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.help-topic-picker__option-label {
  font-size: 15px;
  font-weight: 600;
  color: #1d1d1f;
  line-height: 1.25;
}

.help-topic-picker__option-desc {
  font-size: 13px;
  line-height: 1.4;
  color: #6e6e73;
}

.help-topic-picker__check {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  border: 1.5px solid rgba(0, 0, 0, 0.12);
  opacity: 0;
  transition: opacity 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.help-topic-picker__option.is-selected .help-topic-picker__check {
  opacity: 1;
  border-color: #1e40af;
  background: #1e40af;
  box-shadow: inset 0 0 0 3px #fff;
}

/* ── Form ── */
.help-form {
  padding: 24px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 12px 40px rgba(15, 23, 42, 0.06);
}

.help-form__hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.help-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.help-field {
  display: block;
  margin-bottom: 16px;
}

.help-field__label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 8px;
  color: #1d1d1f;
}

.help-field__input {
  width: 100%;
  padding: 11px 13px;
  border-radius: 10px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: #fff;
  font-size: 16px;
  font-family: inherit;
  box-sizing: border-box;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.help-field__input:focus {
  outline: none;
  border-color: rgba(30, 64, 175, 0.5);
  box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.12);
}

.help-field__textarea {
  resize: vertical;
  min-height: 140px;
}

.help-field__meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-top: 6px;
}

.help-field__hint {
  font-size: 12px;
  color: #86868b;
}

.help-char-count {
  font-size: 12px;
  font-weight: 500;
  color: #86868b;
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
}

.help-char-count.is-warn {
  color: #b45309;
}

.help-char-count.is-limit {
  color: #d70015;
}

.help-field__error {
  display: block;
  margin-top: 6px;
  font-size: 13px;
  color: #d70015;
  min-height: 1.2em;
}

.help-form__global-error {
  padding: 12px 14px;
  border-radius: 10px;
  background: rgba(215, 0, 21, 0.08);
  color: #b00014;
  font-size: 14px;
  margin: 0 0 14px;
}

.help-form__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: 4px;
}

.help-notice {
  padding: 28px 24px;
  border-radius: 16px;
  text-align: center;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(52, 199, 89, 0.25);
  margin-bottom: 24px;
}

.help-notice__label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #248a3d;
  margin: 0 0 8px;
}

.help-notice__title {
  font-size: 24px;
  font-weight: 600;
  margin: 0 0 10px;
}

.help-notice__copy {
  font-size: 15px;
  color: #6e6e73;
  margin: 0 0 18px;
}

.help-notice__warn {
  font-size: 14px;
  line-height: 1.5;
  color: #b45309;
  margin: 0 0 18px;
  padding: 12px 14px;
  border-radius: 10px;
  background: rgba(180, 83, 9, 0.08);
}

.help-site-footer {
  margin-top: auto;
}

@media (max-width: 720px) {
  .help-support {
    grid-template-columns: 1fr;
  }

  .help-form__row {
    grid-template-columns: 1fr;
  }

  .help-form {
    padding: 20px 16px;
  }

  .help-shell {
    padding-top: calc(var(--bd-a-nav-h) + 24px);
  }

  .help-field__meta {
    flex-direction: column;
    align-items: flex-start;
  }
}
