/* Sprint 019: admin separation, Help hierarchy, edge-tab parity, and destructive event controls. */

/* Help major sections follow the same visual hierarchy as calendar month mastheads. */
.help-group {
  display: block;
  padding: 34px 0 40px;
  border-top: 2px solid var(--ink);
}
.help-group:first-child { border-top: 0; }
.help-group-heading {
  position: static;
  display: grid;
  grid-template-columns: minmax(130px, .35fr) minmax(0, 1.65fr);
  align-items: end;
  gap: 24px;
  margin-bottom: 0;
  padding: 0 0 14px;
  border-bottom: 4px solid var(--ink);
}
.help-group-heading .eyebrow {
  margin: 0 0 4px;
  align-self: end;
}
.help-group-heading h2 {
  margin: 0;
  text-align: right;
  font-family: var(--display);
  font-size: clamp(3.2rem, 7.3vw, 7rem);
  line-height: .78;
  letter-spacing: -.05em;
  text-transform: uppercase;
}
.help-topic-list { border-top: 0; }

/* Categories and Feedback use the same physical edge-tab language. */
.feedback-edge-tab,
.category-edge-tab {
  box-sizing: border-box;
  width: 34px;
  height: 110px;
  display: grid;
  place-items: center;
  padding: 10px 7px;
}
.category-edge-tab {
  border: 2px solid var(--ink);
  border-left: 0;
  background: rgba(141, 201, 232, .55);
  color: var(--ink);
  font-family: var(--display);
  font-size: .78rem;
  font-weight: 900;
  line-height: 1;
  letter-spacing: .08em;
  opacity: .55;
  transition: opacity 140ms ease, background 140ms ease;
}
.category-edge-tab:hover,
.category-edge-tab:focus-visible,
.category-edge-tab[aria-expanded="true"] {
  opacity: 1;
  background: var(--sky);
}

.admin-danger-zone {
  margin-top: 34px;
  padding-top: 18px;
  border-top: 4px solid var(--coral);
}
.admin-danger-zone h2 { margin: 0 0 8px; }
.admin-danger-zone p { max-width: 760px; }
.admin-danger-zone .checkbox-line { margin: 16px 0; }
.admin-danger-zone .danger-action {
  color: #a31f18;
  border-bottom-color: #a31f18;
}

@media (max-width: 780px) {
  .help-group-heading {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .help-group-heading h2 {
    text-align: left;
    font-size: clamp(3rem, 15vw, 5rem);
  }
}

@media (max-width: 720px) {
  .category-edge-tab {
    background: rgba(141, 201, 232, .55);
    opacity: .55;
  }
  .category-edge-tab[aria-expanded="true"] { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .category-edge-tab { transition: none; }
}
