/* Admin Help Center — scoped to .ah-*; uses CoachMate admin tokens */

/* ── CTA readability: strong text on mint (scoped so global admin portal buttons unchanged) ── */
.ah-shell .adm-btn--primary,
.ah-shell .adm-btn--primary:link,
.ah-shell .adm-btn--primary:visited {
  background: var(--mint2, #2fa579);
  background-image: none;
  color: var(--ink, #06120e);
  border: 1px solid rgba(0, 0, 0, 0.14);
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.06), 0 4px 14px rgba(0, 0, 0, 0.12);
  font-weight: 700;
  letter-spacing: 0.01em;
}
.ah-shell .adm-btn--primary:hover {
  background: var(--mint, #58c79a);
  color: var(--ink, #06120e);
  border-color: rgba(0, 0, 0, 0.18);
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.05), 0 6px 18px rgba(0, 0, 0, 0.16);
  transform: translateY(-1px);
}
.ah-shell .adm-btn--primary .ti {
  color: var(--ink, #06120e);
  opacity: 0.85;
}
.ah-shell .adm-btn--ghost {
  color: var(--text);
  border-color: var(--surface-border-strong, rgba(255, 255, 255, 0.2));
  background: rgba(255, 255, 255, 0.04);
}
.ah-shell .adm-btn--ghost:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(var(--mint-rgb), 0.35);
}

body.theme-light .ah-shell .adm-btn--primary,
body.theme-light .ah-shell .adm-btn--primary:link,
body.theme-light .ah-shell .adm-btn--primary:visited {
  color: var(--ink, #06120e);
  border-color: rgba(0, 0, 0, 0.12);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.35) inset, 0 2px 8px rgba(0, 0, 0, 0.08);
}
body.theme-light .ah-shell .adm-btn--primary:hover {
  color: var(--ink, #06120e);
}
body.theme-light .ah-shell .adm-btn--ghost {
  background: var(--btn-ghost-bg, rgba(255, 255, 255, 0.85));
  border-color: var(--field-border-strong, rgba(17, 24, 39, 0.2));
  color: var(--text);
}

.ah-shell {
  padding: clamp(20px, 3vw, 32px);
  margin-top: 8px;
  margin-bottom: 48px;
}

.ah-hero {
  padding-bottom: 28px;
}
.ah-hero .section-subtitle {
  max-width: 36rem;
  margin-left: auto;
  margin-right: auto;
}
.ah-hero-intro {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.55;
  max-width: 36rem;
  margin: 12px auto 0;
  text-align: center;
}

.ah-scope-note {
  max-width: 40rem;
  margin: 16px auto 0;
  padding: 12px 16px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(var(--mint-rgb), 0.22);
  background: rgba(var(--mint-rgb), 0.06);
  font-size: 0.84rem;
  line-height: 1.5;
  color: var(--muted);
  text-align: center;
}
.ah-scope-note strong {
  color: var(--text);
  font-weight: 600;
}
body.theme-light .ah-scope-note {
  background: rgba(var(--mint-rgb), 0.08);
  border-color: rgba(var(--mint-rgb), 0.28);
  color: var(--muted);
}

.ah-hero-tools {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin-top: 22px;
}

.ah-search-wrap {
  position: relative;
  width: 100%;
  max-width: 420px;
}
.ah-search-wrap .ti {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  font-size: 1.05rem;
  pointer-events: none;
}
.ah-search-wrap input {
  width: 100%;
  padding: 12px 14px 12px 42px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--field-border, rgba(255, 255, 255, 0.12));
  background: var(--field-bg, rgba(255, 255, 255, 0.06));
  color: var(--text);
  font-size: 0.9rem;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.ah-search-wrap input::placeholder {
  color: var(--field-placeholder, rgba(255, 255, 255, 0.5));
}
.ah-search-wrap input:focus {
  outline: none;
  border-color: rgba(var(--mint-rgb), 0.45);
  box-shadow: 0 0 0 3px rgba(var(--mint-rgb), 0.12);
}

.ah-quick-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}
.ah-quick-links a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: background 0.15s, border-color 0.15s, transform 0.15s;
}
.ah-quick-links a:hover {
  background: rgba(var(--mint-rgb), 0.1);
  border-color: rgba(var(--mint-rgb), 0.35);
  transform: translateY(-1px);
}
.ah-quick-links a .ti {
  font-size: 1rem;
  color: var(--mint);
}

.ah-search-hint {
  font-size: 0.78rem;
  color: var(--muted2, rgba(255, 255, 255, 0.5));
  margin-top: -6px;
}

/* Layout: TOC + main */
.ah-layout {
  display: grid;
  grid-template-columns: minmax(0, 200px) minmax(0, 1fr);
  gap: clamp(20px, 4vw, 40px);
  align-items: start;
}

.ah-toc {
  position: sticky;
  top: calc(72px + env(safe-area-inset-top, 0px));
  padding: 14px 0;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  margin-right: 4px;
}
.ah-toc-title {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--purple-soft);
  font-weight: 700;
  margin: 0 0 10px;
  padding-right: 12px;
}
.ah-toc nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.ah-toc a {
  font-size: 0.82rem;
  color: var(--muted);
  text-decoration: none;
  padding: 6px 12px 6px 0;
  border-radius: 8px;
  transition: color 0.15s, background 0.15s;
}
.ah-toc a:hover,
.ah-toc a:focus-visible {
  color: var(--mint);
  background: rgba(var(--mint-rgb), 0.06);
}
.ah-toc a.ah-toc-active {
  color: var(--mint);
  font-weight: 600;
}

.ah-main {
  min-width: 0;
}

.ah-section {
  scroll-margin-top: 96px;
  margin-bottom: 40px;
}
.ah-section:last-child {
  margin-bottom: 0;
}

.ah-section-h {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 8px;
}
.ah-section-h h2 {
  margin: 0;
  font-size: clamp(1.15rem, 2.5vw, 1.35rem);
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
}
.ah-section-h .ti {
  font-size: 1.35rem;
  color: var(--mint);
  margin-top: 2px;
}
.ah-section-lead {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.5;
  max-width: 52rem;
}

/* Start path */
.ah-path {
  display: grid;
  gap: 12px;
  counter-reset: ahstep;
}
.ah-path-step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: start;
  padding: 16px 18px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}
.ah-path-step:hover {
  border-color: rgba(var(--mint-rgb), 0.22);
  background: rgba(255, 255, 255, 0.045);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.12);
}
.ah-path-step::before {
  counter-increment: ahstep;
  content: counter(ahstep);
  width: 32px;
  height: 32px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--ink, #07130f);
  background: linear-gradient(135deg, var(--mint) 0%, var(--mint2, #2fa579) 100%);
  flex-shrink: 0;
}
.ah-path-step__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}
.ah-path-step__head h3 {
  margin: 0;
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--text);
}
.ah-step-badge {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 3px 8px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--muted);
  background: rgba(255, 255, 255, 0.04);
  flex-shrink: 0;
}
.ah-step-badge--required {
  color: var(--ink, #06120e);
  background: rgba(var(--mint-rgb), 0.22);
  border-color: rgba(var(--mint-rgb), 0.35);
}
.ah-step-badge--recommended {
  color: var(--purple-soft);
  background: rgba(var(--purple-rgb), 0.12);
  border-color: rgba(var(--purple-rgb), 0.25);
}
.ah-step-badge--optional {
  color: var(--muted);
}
.ah-step-badge--golive {
  color: var(--text);
  background: rgba(251, 191, 36, 0.1);
  border-color: rgba(251, 191, 36, 0.32);
}
.ah-step-badge--live {
  color: var(--ink, #06120e);
  background: rgba(var(--mint-rgb), 0.28);
  border-color: rgba(var(--mint-rgb), 0.45);
  font-weight: 800;
}
body.theme-light .ah-step-badge {
  border-color: var(--field-border, rgba(17, 24, 39, 0.12));
  background: rgba(0, 0, 0, 0.03);
}
body.theme-light .ah-step-badge--required {
  background: rgba(var(--mint-rgb), 0.18);
  color: var(--ink, #06120e);
}
body.theme-light .ah-step-badge--golive {
  background: rgba(251, 191, 36, 0.14);
  border-color: rgba(217, 119, 6, 0.28);
  color: var(--text);
}
body.theme-light .ah-step-badge--live {
  background: rgba(var(--mint-rgb), 0.22);
  color: var(--ink, #06120e);
}
.ah-path-step__body p {
  margin: 0 0 10px;
  font-size: 0.84rem;
  color: var(--muted);
  line-height: 1.5;
}

.ah-path-step__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
}
.ah-path-step__actions .adm-btn {
  text-decoration: none;
}
.ah-link-learn {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  margin-right: 2px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--surface-border-strong, rgba(255, 255, 255, 0.18));
  background: rgba(255, 255, 255, 0.05);
  transition: border-color 0.15s, background 0.15s, color 0.15s;
}
.ah-link-learn:hover {
  color: var(--mint);
  border-color: rgba(var(--mint-rgb), 0.4);
  background: rgba(var(--mint-rgb), 0.1);
}
.ah-link-learn .ti {
  font-size: 0.9rem;
  opacity: 0.9;
}
body.theme-light .ah-link-learn {
  background: rgba(0, 0, 0, 0.03);
  border-color: var(--field-border-strong, rgba(17, 24, 39, 0.16));
  color: var(--text);
}

.ah-guide__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.ah-guide__cta .adm-btn {
  text-decoration: none;
}

/* Anchor targets inside guides / steps */
.ah-guide[id],
.ah-path-step {
  scroll-margin-top: 100px;
}

/* Recommended setup order — vertical roadmap (how-it-works) */
.ah-section--setup-roadmap .ah-section-lead.ah-setup-roadmap__intro {
  margin-bottom: 4px;
}
.ah-setup-roadmap {
  position: relative;
  max-width: 42rem;
  margin-top: 18px;
  padding-left: 2px;
}
.ah-setup-roadmap__rail {
  position: absolute;
  left: 19px;
  top: 20px;
  bottom: 20px;
  width: 2px;
  border-radius: 2px;
  background: linear-gradient(
    180deg,
    rgba(var(--mint-rgb), 0.45) 0%,
    rgba(255, 255, 255, 0.08) 45%,
    rgba(var(--purple-rgb), 0.25) 100%
  );
  opacity: 0.55;
  pointer-events: none;
}
.ah-setup-roadmap__list {
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
  z-index: 1;
}
.ah-setup-roadmap__step {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  margin-bottom: 12px;
}
.ah-setup-roadmap__step:last-child {
  margin-bottom: 0;
}
.ah-setup-roadmap__marker {
  position: relative;
  z-index: 2;
  width: 32px;
  height: 32px;
  margin-top: 14px;
  margin-left: auto;
  margin-right: auto;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 800;
  line-height: 1;
  color: var(--ink, #06120e);
  background: var(--mint);
  border: 2px solid rgba(0, 0, 0, 0.12);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
}
.ah-setup-roadmap__marker--final {
  background: linear-gradient(145deg, var(--mint) 0%, rgba(var(--purple-rgb), 0.75) 100%);
  border-color: rgba(255, 255, 255, 0.15);
}
.ah-setup-roadmap__card {
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.035);
  padding: 16px 18px;
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}
.ah-setup-roadmap__step:hover .ah-setup-roadmap__card {
  border-color: rgba(var(--mint-rgb), 0.22);
  background: rgba(255, 255, 255, 0.05);
}
.ah-setup-roadmap__card--final {
  border-color: rgba(var(--mint-rgb), 0.32);
  background: rgba(var(--mint-rgb), 0.07);
  box-shadow: 0 0 0 1px rgba(var(--mint-rgb), 0.1);
}
.ah-setup-roadmap__step--final:hover .ah-setup-roadmap__card--final {
  border-color: rgba(var(--mint-rgb), 0.42);
  background: rgba(var(--mint-rgb), 0.09);
}
.ah-setup-roadmap__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}
.ah-setup-roadmap__title {
  margin: 0;
  font-size: 0.96rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.01em;
}
.ah-setup-roadmap__line {
  margin: 0 0 12px;
  font-size: 0.83rem;
  line-height: 1.5;
  color: var(--muted);
}
.ah-setup-roadmap__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.ah-setup-roadmap__actions .adm-btn {
  text-decoration: none;
}
.ah-link-learn--compact {
  padding: 5px 10px;
  font-size: 0.76rem;
}
.ah-setup-roadmap__note {
  margin: 22px 0 0;
  max-width: 42rem;
  font-size: 0.78rem;
  line-height: 1.5;
  color: var(--muted);
  padding: 12px 14px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(0, 0, 0, 0.14);
}
body.theme-light .ah-setup-roadmap__rail {
  opacity: 0.65;
  background: linear-gradient(
    180deg,
    rgba(var(--mint-rgb), 0.5) 0%,
    rgba(17, 24, 39, 0.08) 50%,
    rgba(var(--purple-rgb), 0.2) 100%
  );
}
body.theme-light .ah-setup-roadmap__card {
  background: var(--field-bg, rgba(255, 255, 255, 0.98));
  border-color: var(--field-border, rgba(17, 24, 39, 0.1));
}
body.theme-light .ah-setup-roadmap__step:hover .ah-setup-roadmap__card {
  border-color: rgba(var(--mint-rgb), 0.28);
}
body.theme-light .ah-setup-roadmap__card--final {
  background: rgba(var(--mint-rgb), 0.08);
  border-color: rgba(var(--mint-rgb), 0.28);
}
body.theme-light .ah-setup-roadmap__note {
  background: rgba(0, 0, 0, 0.02);
  border-color: var(--field-border, rgba(17, 24, 39, 0.1));
}

.ah-callout {
  padding: 14px 16px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--muted);
}
.ah-callout strong {
  color: var(--text);
  display: block;
  margin-bottom: 6px;
  font-size: 0.84rem;
}
body.theme-light .ah-callout {
  background: var(--field-bg, rgba(255, 255, 255, 0.98));
  border-color: var(--field-border, rgba(17, 24, 39, 0.1));
}

.ah-callout__title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 8px;
  font-size: 0.88rem;
}
.ah-callout--warning {
  border-color: rgba(var(--color-warning-rgb, 234, 179, 8), 0.35);
  background: rgba(var(--color-warning-rgb, 234, 179, 8), 0.08);
}
.ah-callout--warning strong {
  display: inline;
  margin: 0;
  font-weight: 700;
  color: var(--text);
}
body.theme-light .ah-callout--warning {
  background: rgba(var(--color-warning-rgb, 234, 179, 8), 0.12);
}

/* Guide educational blocks */
.ah-guide__body {
  padding: 0 16px 16px 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.ah-guide-block {
  margin-top: 14px;
}
.ah-guide-block:first-child {
  margin-top: 12px;
}
.ah-guide-label {
  margin: 0 0 6px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--purple-soft);
}
.ah-guide-block p {
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.55;
  color: var(--muted);
}
.ah-guide-block p + p {
  margin-top: 8px;
}
.ah-guide-steps {
  margin: 8px 0 0;
  padding-left: 1.15rem;
  font-size: 0.86rem;
  line-height: 1.55;
  color: var(--muted);
}
.ah-guide-steps li + li {
  margin-top: 6px;
}
.ah-guide-next {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: var(--radius-md);
  border-left: 3px solid var(--mint);
  background: rgba(var(--mint-rgb), 0.07);
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--muted);
}
.ah-guide-next strong {
  color: var(--text);
}
body.theme-light .ah-guide-next {
  background: rgba(var(--mint-rgb), 0.1);
}

/* Portal map grid */
.ah-map-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 12px;
}
.ah-map-card {
  padding: 14px 16px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  transition: border-color 0.2s, transform 0.2s;
}
.ah-map-card:hover {
  border-color: rgba(var(--purple-rgb), 0.25);
  transform: translateY(-2px);
}
.ah-map-card h3 {
  margin: 0 0 8px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
}
.ah-map-card h3 .ti {
  color: var(--purple-soft);
  font-size: 1.1rem;
}
.ah-map-card p {
  margin: 0;
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.45;
}
.ah-map-card .ah-tab-pill {
  display: inline-block;
  margin-top: 10px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--mint);
  opacity: 0.9;
}

/* Guides */
.ah-guides {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.ah-guide {
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.025);
  overflow: hidden;
  transition: border-color 0.2s;
}
.ah-guide:hover {
  border-color: rgba(255, 255, 255, 0.12);
}
.ah-guide[open] {
  border-color: rgba(var(--mint-rgb), 0.28);
  background: rgba(255, 255, 255, 0.04);
}
.ah-guide summary {
  list-style: none;
  padding: 14px 16px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  user-select: none;
}
.ah-guide summary::-webkit-details-marker {
  display: none;
}
.ah-guide summary .ti-chevron-down {
  color: var(--muted);
  font-size: 1.1rem;
  transition: transform 0.2s var(--ease);
  flex-shrink: 0;
}
.ah-guide[open] summary .ti-chevron-down {
  transform: rotate(180deg);
  color: var(--mint);
}
.ah-guide__body ol {
  margin: 12px 0 0;
  padding-left: 1.2rem;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.55;
}
.ah-guide__body li + li {
  margin-top: 8px;
}
.ah-guide__body strong {
  color: var(--text);
  font-weight: 600;
}

/* FAQ */
.ah-faq {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.ah-faq-item {
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  overflow: hidden;
  transition: border-color 0.2s;
}
.ah-faq-item:hover {
  border-color: rgba(255, 255, 255, 0.12);
}
.ah-faq-item[open] {
  border-color: rgba(var(--purple-rgb), 0.3);
}
.ah-faq-item summary {
  list-style: none;
  padding: 14px 16px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--text);
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 12px;
  text-align: left;
}
.ah-faq-item summary::-webkit-details-marker {
  display: none;
}
.ah-faq-item summary .ti {
  color: var(--purple-soft);
  flex-shrink: 0;
  margin-top: 2px;
}
.ah-faq-item__q {
  flex: 1;
  min-width: 0;
  text-align: left;
}
.ah-faq-item__a {
  padding: 0 16px 16px 44px;
  margin: 0;
  font-size: 0.86rem;
  color: var(--muted);
  line-height: 1.55;
}

/* Support CTA */
.ah-support {
  padding: 22px 24px;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(var(--mint-rgb), 0.22);
  background: linear-gradient(135deg, rgba(var(--mint-rgb), 0.08) 0%, rgba(var(--purple-rgb), 0.06) 100%);
  text-align: center;
}
.ah-support h2 {
  margin: 0 0 8px;
  font-size: 1.1rem;
  font-weight: 700;
}
.ah-support p {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.5;
  max-width: 28rem;
  margin-left: auto;
  margin-right: auto;
}
.ah-support-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.ah-hidden {
  display: none !important;
}

/* Mobile TOC strip */
.ah-toc-mobile {
  display: none;
  flex-wrap: nowrap;
  gap: 8px;
  overflow-x: auto;
  padding: 10px 0 16px;
  margin: 0 -4px 8px;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}
.ah-toc-mobile a {
  flex: 0 0 auto;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  text-decoration: none;
  white-space: nowrap;
}
.ah-toc-mobile a:hover {
  border-color: rgba(var(--mint-rgb), 0.35);
}

@media (max-width: 900px) {
  .ah-layout {
    grid-template-columns: 1fr;
  }
  .ah-toc {
    display: none;
  }
  .ah-toc-mobile {
    display: flex;
  }
  .ah-section {
    scroll-margin-top: 72px;
  }
  .ah-map-grid {
    grid-template-columns: 1fr;
  }
}

/* Help portals — phones and narrow viewports */
@media (max-width: 640px) {
  .ah-hero {
    padding-bottom: 20px;
  }
  .ah-hero .container {
    padding-left: max(16px, env(safe-area-inset-left, 0px));
    padding-right: max(16px, env(safe-area-inset-right, 0px));
    box-sizing: border-box;
  }
  .ah-hero .section-header {
    text-align: center;
  }
  .ah-hero .section-title {
    font-size: clamp(1.35rem, 6.5vw, 1.85rem) !important;
    line-height: 1.2;
    overflow-wrap: anywhere;
    word-break: break-word;
    hyphens: auto;
    padding: 0 2px;
  }
  .ah-hero .section-subtitle {
    font-size: 0.88rem;
    line-height: 1.45;
    padding: 0 4px;
  }
  .ah-hero-intro {
    font-size: 0.88rem;
    padding: 0 4px;
    text-align: left;
  }
  .ah-scope-note {
    margin-left: 0;
    margin-right: 0;
    width: 100%;
    box-sizing: border-box;
    text-align: left;
    font-size: 0.8rem;
  }
  .ah-other-help {
    margin-top: 14px;
    padding: 12px 14px;
    text-align: center;
  }
  .ah-other-help__title {
    justify-content: center;
    flex-wrap: wrap;
  }
  .ah-other-help__desc {
    text-align: center;
  }
  .ah-other-help__links {
    flex-direction: column;
    align-items: stretch;
  }
  .ah-other-help__links .adm-btn {
    width: 100%;
    max-width: 100%;
    justify-content: center;
    box-sizing: border-box;
  }
  .ah-hero-tools {
    width: 100%;
    max-width: 100%;
    margin-top: 16px;
    align-items: stretch;
    padding: 0 2px;
    box-sizing: border-box;
  }
  .ah-search-wrap {
    max-width: 100%;
  }
  .ah-search-hint {
    text-align: center;
    line-height: 1.45;
    padding: 0 4px;
    margin-top: 0;
  }
  .ah-quick-links {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    gap: 10px;
  }
  .ah-quick-links a {
    width: 100%;
    max-width: 100%;
    justify-content: center;
    box-sizing: border-box;
    font-size: 0.8rem;
    padding: 10px 14px;
  }
  .ah-shell {
    padding: 16px 14px;
    margin-bottom: 32px;
  }
  .ah-path-step {
    grid-template-columns: 1fr;
    padding: 14px;
  }
  .ah-path-step::before {
    margin-bottom: 4px;
  }
  .ah-setup-roadmap {
    max-width: 100%;
    padding-left: 0;
  }
  .ah-setup-roadmap__rail {
    left: 15px;
  }
  .ah-setup-roadmap__step {
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 10px;
  }
  .ah-setup-roadmap__marker {
    width: 28px;
    height: 28px;
    font-size: 0.72rem;
    margin-top: 12px;
  }
  .ah-setup-roadmap__card {
    padding: 12px 14px;
    min-width: 0;
  }
  .ah-setup-roadmap__actions {
    flex-direction: column;
    align-items: stretch;
  }
  .ah-setup-roadmap__actions .adm-btn,
  .ah-setup-roadmap__actions .ah-link-learn {
    width: 100%;
    max-width: 100%;
    justify-content: center;
    box-sizing: border-box;
  }
  .ah-setup-roadmap__note {
    max-width: 100%;
    box-sizing: border-box;
  }
  .ah-map-card {
    min-width: 0;
  }
  .ah-faq-item__a {
    padding-left: 16px;
    padding-right: 14px;
  }
  .ah-support-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .ah-support-actions .adm-btn {
    width: 100%;
    max-width: 100%;
    justify-content: center;
    box-sizing: border-box;
  }
  .ah-help-chooser-grid {
    padding-left: 0;
    padding-right: 0;
  }
  .ah-help-chooser-card {
    min-width: 0;
  }
  .ah-help-chooser-foot {
    text-align: center;
    padding: 0 8px;
    overflow-wrap: anywhere;
  }
  .ah-guide summary {
    flex-wrap: wrap;
    row-gap: 8px;
    font-size: 0.86rem;
    padding: 12px 14px;
  }
  .ah-guide summary .ti-chevron-down {
    margin-left: auto;
  }
}

html.ah-smooth {
  scroll-behavior: smooth;
}

/* Hide page until help-portal-guard.js allows (prevents flash before redirect) */
html.help-guard-pending body {
  visibility: hidden !important;
}

/* Admin help — cross-links to other help portals */
.ah-other-help {
  margin-top: 18px;
  margin-left: auto;
  margin-right: auto;
  padding: 14px 16px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(var(--mint-rgb), 0.22);
  background: rgba(var(--mint-rgb), 0.06);
  max-width: 40rem;
  width: 100%;
  box-sizing: border-box;
}
.ah-other-help__title {
  margin: 0 0 6px;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
}
.ah-other-help__title .ti {
  color: var(--mint);
}
.ah-other-help__desc {
  margin: 0 0 12px;
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.45;
}
.ah-other-help__links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.ah-other-help__links .adm-btn {
  text-decoration: none;
}
body.theme-light .ah-other-help {
  background: rgba(var(--mint-rgb), 0.08);
  border-color: rgba(var(--mint-rgb), 0.28);
}

/* help-chooser.html — dual coach + parent */
.ah-help-chooser-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  padding: 8px 0 4px;
}
@media (min-width: 640px) {
  .ah-help-chooser-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
  }
}
.ah-help-chooser-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding: 18px 16px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.12s ease;
}
.ah-help-chooser-card:hover {
  border-color: rgba(var(--mint-rgb), 0.35);
  background: rgba(var(--mint-rgb), 0.07);
  transform: translateY(-1px);
}
.ah-help-chooser-card__icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(var(--mint-rgb), 0.15);
  color: var(--mint);
  font-size: 1.25rem;
}
.ah-help-chooser-card__title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
}
.ah-help-chooser-card__desc {
  font-size: 0.8rem;
  line-height: 1.45;
  color: var(--muted);
}
body.theme-light .ah-help-chooser-card {
  background: var(--field-bg, rgba(255, 255, 255, 0.98));
  border-color: var(--field-border, rgba(17, 24, 39, 0.1));
}
body.theme-light .ah-help-chooser-card:hover {
  border-color: rgba(var(--mint-rgb), 0.3);
}

/* Light theme (org branding) */
body.theme-light .ah-path-step,
body.theme-light .ah-map-card,
body.theme-light .ah-guide,
body.theme-light .ah-faq-item {
  background: var(--field-bg, rgba(255, 255, 255, 0.98));
  border-color: var(--field-border, rgba(17, 24, 39, 0.12));
}
body.theme-light .ah-toc {
  border-right-color: var(--stroke, rgba(17, 24, 39, 0.08));
}
body.theme-light .ah-quick-links a {
  background: var(--field-bg, rgba(255, 255, 255, 0.98));
  border-color: var(--field-border, rgba(17, 24, 39, 0.12));
}
body.theme-light .ah-support {
  background: linear-gradient(135deg, rgba(var(--mint-rgb), 0.1) 0%, rgba(var(--purple-rgb), 0.08) 100%);
  border-color: rgba(var(--mint-rgb), 0.28);
}
