/* Guides + Help resource hub — athenous-landing */

.rh-page {
  --rh-ink: #0f172a;
  --rh-muted: #64748b;
  --rh-line: rgba(15, 23, 42, 0.1);
  --rh-surface: #ffffff;
  --rh-soft: #f8fafc;
  --rh-accent: #0f766e;
  --rh-accent-soft: #f0fdfa;
  --rh-accent-line: #99f6e4;
  --rh-help: #1d4ed8;
  --rh-help-soft: #eff6ff;
  --rh-help-line: #bfdbfe;
}

.rh-page .landing-main,
.help-page--center {
  background:
    radial-gradient(900px 420px at 12% -10%, rgba(15, 118, 110, 0.07), transparent 55%),
    radial-gradient(760px 380px at 92% 0%, rgba(29, 78, 216, 0.06), transparent 50%),
    linear-gradient(180deg, #f8fafc 0%, #ffffff 42%, #ffffff 100%);
}

/* ── Shared hero ─────────────────────────────────────────── */
.rh-hero {
  position: relative;
  padding: 40px 24px 28px;
  overflow: hidden;
}
.rh-hero::before {
  content: "";
  position: absolute;
  inset: auto -20% -40% 20%;
  height: 220px;
  background: radial-gradient(closest-side, rgba(15, 118, 110, 0.12), transparent 70%);
  pointer-events: none;
}
.rh-hero-inner {
  position: relative;
  width: min(920px, 100%);
  margin: 0 auto;
  text-align: center;
}
.rh-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid var(--rh-line);
  background: rgba(255, 255, 255, 0.85);
  color: var(--rh-muted);
  font-size: 0.75rem;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.rh-kicker-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--rh-accent);
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.18);
}
.rh-hero--help .rh-kicker-dot {
  background: var(--rh-help);
  box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.16);
}
.rh-title {
  margin: 0 0 12px;
  font-family: var(--display), "Sora", sans-serif;
  font-size: clamp(2rem, 4.2vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.12;
  color: var(--rh-ink);
}
.rh-title-brand {
  color: var(--rh-accent);
}
.rh-hero--help .rh-title-brand {
  color: var(--rh-help);
}
.rh-lead {
  margin: 0 auto 22px;
  max-width: 42rem;
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--rh-muted);
}
.rh-lead a {
  color: var(--rh-ink);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.rh-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 16px 0 0;
}
.rh-search + .rh-search-empty + .rh-actions,
.rh-search + .rh-actions {
  margin-top: 16px;
}
.rh-search {
  width: min(560px, 100%);
  margin: 0 auto;
  position: relative;
}
.rh-search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  pointer-events: none;
}
.rh-search-input {
  width: 100%;
  box-sizing: border-box;
  padding: 13px 16px 13px 42px;
  border-radius: 12px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: #fff;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
  font: inherit;
  font-size: 0.975rem;
  color: var(--rh-ink);
  outline: none;
  transition: border-color 0.18s, box-shadow 0.18s;
}
.rh-search-input::placeholder { color: #94a3b8; }
.rh-search-input:focus {
  border-color: rgba(15, 118, 110, 0.45);
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.14), 0 8px 24px rgba(15, 23, 42, 0.05);
}
.rh-hero--help .rh-search-input:focus {
  border-color: rgba(29, 78, 216, 0.4);
  box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.14), 0 8px 24px rgba(15, 23, 42, 0.05);
}
.rh-search-hint {
  margin: 10px 0 0;
  font-size: 0.8125rem;
  color: #94a3b8;
}
.rh-search-empty {
  display: none;
  margin: 18px auto 0;
  max-width: 420px;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px dashed rgba(15, 23, 42, 0.16);
  background: rgba(255, 255, 255, 0.7);
  color: var(--rh-muted);
  font-size: 0.875rem;
}
.rh-search-empty.is-visible { display: block; }

/* Help search chips + breadcrumb */
.help-breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 14px;
  font-size: 0.8125rem;
  color: var(--rh-muted);
}
.help-breadcrumb a {
  color: var(--rh-muted);
  text-decoration: none;
  font-weight: 550;
}
.help-breadcrumb a:hover { color: var(--rh-help); text-decoration: underline; text-underline-offset: 2px; }
.help-breadcrumb [aria-current="page"] { color: var(--rh-ink); font-weight: 600; }
.help-search-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 14px auto 0;
  width: min(560px, 100%);
}
.help-chip {
  appearance: none;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: rgba(255, 255, 255, 0.9);
  color: #475569;
  font: inherit;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 999px;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
}
.help-chip:hover {
  border-color: rgba(29, 78, 216, 0.35);
  background: var(--rh-help-soft);
  color: var(--rh-help);
}
.help-chip.is-active {
  border-color: rgba(29, 78, 216, 0.45);
  background: var(--rh-help-soft);
  color: var(--rh-help);
  box-shadow: 0 0 0 2px rgba(29, 78, 216, 0.12);
}
.help-search-status {
  min-height: 1.25rem;
  margin: 10px 0 0;
  font-size: 0.8125rem;
  color: var(--rh-muted);
}
.rh-actions .button.ghost {
  background: transparent;
  border: 1px solid transparent;
  color: var(--rh-ink);
  box-shadow: none;
}
.rh-actions .button.ghost:hover {
  background: rgba(15, 23, 42, 0.04);
}

/* ── Guides hub ──────────────────────────────────────────── */
.guides-hub-section {
  padding: 28px 24px 72px;
}
.guides-hub-section .section-header {
  max-width: 720px;
  margin: 0 auto 28px;
  text-align: center;
}
.guides-featured {
  width: min(1120px, 100%);
  margin: 0 auto 22px;
  padding: 18px 20px;
  border-radius: 16px;
  border: 1px solid var(--rh-accent-line);
  background:
    linear-gradient(135deg, rgba(240, 253, 250, 0.95), rgba(255, 255, 255, 0.96));
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 16px 28px;
  align-items: center;
}
.guides-featured-copy h2 {
  margin: 0 0 6px;
  font-family: var(--display), "Sora", sans-serif;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  color: var(--rh-ink);
}
.guides-featured-copy p {
  margin: 0;
  color: var(--rh-muted);
  line-height: 1.55;
  font-size: 0.9375rem;
}
.guides-featured-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.guides-featured-links a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  background: #fff;
  color: var(--rh-ink);
  text-decoration: none;
  font-size: 0.8125rem;
  font-weight: 600;
  transition: border-color 0.15s, background 0.15s, transform 0.15s;
}
.guides-featured-links a:hover {
  border-color: rgba(15, 118, 110, 0.35);
  background: var(--rh-accent-soft);
  transform: translateY(-1px);
}

.guides-hub-grid {
  width: min(1120px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.guides-hub-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 0;
  border-radius: 16px;
  background: #fff;
  border: 1px solid rgba(148, 163, 184, 0.28);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  animation: rh-card-enter 0.35s ease both;
}
.guides-hub-card:nth-child(2) { animation-delay: 40ms; }
.guides-hub-card:nth-child(3) { animation-delay: 80ms; }
.guides-hub-card:nth-child(4) { animation-delay: 120ms; }
.guides-hub-card:nth-child(5) { animation-delay: 160ms; }
.guides-hub-card:nth-child(6) { animation-delay: 200ms; }
.guides-hub-card:hover {
  transform: translateY(-3px);
  border-color: rgba(15, 118, 110, 0.28);
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.08);
}
.guides-hub-card.is-hidden { display: none; }
.guides-hub-card-top {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 18px 18px 0;
}
.guides-hub-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--rh-accent-soft);
  border: 1px solid var(--rh-accent-line);
  color: var(--rh-accent);
}
.guides-hub-card-heading {
  min-width: 0;
  flex: 1;
}
.guides-hub-card-heading h3 {
  margin: 0 0 4px;
  font-family: var(--display), "Sora", sans-serif;
  font-size: 1.0625rem;
  line-height: 1.3;
  letter-spacing: -0.02em;
  color: var(--rh-ink);
}
.guides-hub-count {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #64748b;
}
.guides-hub-card > p {
  margin: 0;
  padding: 0 18px;
  color: #475569;
  line-height: 1.55;
  font-size: 0.9rem;
}
.guides-hub-links {
  list-style: none;
  margin: auto 0 0;
  padding: 8px 10px 10px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  border-top: 1px solid rgba(15, 23, 42, 0.06);
  background: #fafbfc;
}
.guides-hub-links li { margin: 0; }
.guides-hub-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 10px;
  border-radius: 10px;
  color: #0f172a;
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.35;
  transition: background 0.15s, color 0.15s;
}
.guides-hub-links a:hover {
  background: #fff;
  color: var(--rh-accent);
  text-decoration: none;
}
.guides-hub-links a span {
  min-width: 0;
}
.guides-hub-links a svg {
  flex-shrink: 0;
  opacity: 0.45;
}
.guides-hub-links a:hover svg { opacity: 1; color: var(--rh-accent); }

@keyframes rh-card-enter {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .guides-hub-card,
  .help-topic-card { animation: none; }
}

/* ── Help center ─────────────────────────────────────────── */
.help-page--center {
  padding: 0 0 48px !important;
  background: transparent;
}
.help-page--center .legal-container {
  max-width: none !important;
  width: 100%;
  padding: 0 !important;
  margin: 0;
}
.help-page--center .legal-header { display: none; }
.help-page--center .help-article.legal-content {
  background: #fff;
  padding: 28px 28px 20px;
  border-radius: 16px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.help-topics {
  width: min(1120px, 100%);
  margin: 0 auto;
  padding: 8px 24px 28px;
}
.help-topics-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.help-topics-header h2 {
  margin: 0;
  font-family: var(--display), "Sora", sans-serif;
  font-size: 1.125rem;
  letter-spacing: -0.02em;
  color: var(--rh-ink);
}
.help-topics-header p {
  margin: 0;
  font-size: 0.875rem;
  color: var(--rh-muted);
}
.help-topics-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.help-topic-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  background: #fff;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  transition: transform 0.18s, border-color 0.18s, box-shadow 0.18s;
  animation: rh-card-enter 0.3s ease both;
}
.help-topic-card:hover {
  transform: translateY(-2px);
  border-color: rgba(29, 78, 216, 0.3);
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.07);
}
.help-topic-icon {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--rh-help-soft);
  border: 1px solid var(--rh-help-line);
  color: var(--rh-help);
}
.help-topic-card strong {
  font-size: 0.9375rem;
  color: var(--rh-ink);
  letter-spacing: -0.01em;
}
.help-topic-card span {
  font-size: 0.8125rem;
  color: var(--rh-muted);
  line-height: 1.4;
}
.help-topic-beta,
.help-badge {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 7px;
  border-radius: 999px;
  font-size: 0.65rem;
  font-weight: 700;
  font-style: normal;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--rh-help);
  background: var(--rh-help-soft);
  border: 1px solid var(--rh-help-line);
  vertical-align: middle;
}
.help-topic-card strong .help-topic-beta {
  font-size: 0.6rem;
  padding: 1px 6px;
}

.help-layout {
  width: min(1120px, 100%);
  margin: 0 auto;
  padding: 0 24px 24px;
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}
.help-toc {
  position: sticky;
  top: 96px;
  max-height: calc(100vh - 120px);
  overflow: auto;
  background: #fff;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 14px;
  padding: 14px 12px;
  margin-bottom: 0;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}
.help-toc h2 {
  font-size: 0.6875rem;
  font-weight: 700;
  color: #64748b;
  margin: 0 8px 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.help-toc ul { list-style: none; padding: 0; margin: 0; }
.help-toc li { margin: 0; }
.help-toc a {
  display: block;
  font-size: 0.8125rem;
  color: #475569;
  text-decoration: none;
  padding: 7px 10px;
  border-radius: 8px;
  border-bottom: 0;
  line-height: 1.35;
  transition: background 0.15s, color 0.15s;
}
.help-toc a:hover,
.help-toc a.is-active {
  color: var(--rh-help);
  background: var(--rh-help-soft);
  border-bottom-color: transparent;
}
.help-toc a.is-hidden,
.help-toc li.is-hidden,
.help-section.is-hidden { display: none; }
.help-toc-support {
  display: block;
  margin: 12px 8px 4px;
  padding-top: 12px;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
  font-size: 0.75rem;
  font-weight: 650;
  color: var(--rh-help);
  text-decoration: none;
}
.help-toc-support:hover { text-decoration: underline; text-underline-offset: 2px; }

.help-article {
  min-width: 0;
  background: #fff;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 16px;
  padding: 28px 28px 20px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}
.help-page--center .help-section {
  margin-bottom: 0;
  padding: 22px 0;
  border-bottom: 1px solid rgba(15, 23, 42, 0.07);
  scroll-margin-top: 100px;
}
.help-page--center .help-section:first-of-type { padding-top: 0; }
.help-page--center .help-section:last-of-type {
  border-bottom: 0;
  padding-bottom: 0;
}
.help-page--center .legal-content h2,
.help-page--center .help-section > h2 {
  font-family: var(--display), "Sora", sans-serif;
  font-size: 1.35rem;
  letter-spacing: -0.025em;
  margin: 0 0 10px;
  padding-top: 0;
  color: var(--rh-ink);
  scroll-margin-top: 100px;
}
.help-page--center .legal-content h2:not(:first-child) { margin-top: 0; }
.help-page--center .legal-content h3 {
  margin: 18px 0 8px;
  font-size: 1.02rem;
}
.help-page--center .legal-content p,
.help-page--center .legal-content li {
  color: #334155;
  line-height: 1.65;
}
.help-page--center .help-step {
  background: #f8fafc;
  border-left: 3px solid var(--rh-help);
  padding: 12px 14px;
  margin: 10px 0;
  border-radius: 0 10px 10px 0;
}
.help-page--center .help-tip {
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  border-radius: 10px;
  padding: 12px 14px;
  margin: 12px 0;
}

.help-mobile-toc {
  display: none;
  width: min(1120px, 100%);
  margin: 0 auto 16px;
  padding: 0 24px;
}
.help-mobile-toc details {
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 12px;
  background: #fff;
  padding: 4px 12px 8px;
}
.help-mobile-toc summary {
  cursor: pointer;
  font-weight: 650;
  font-size: 0.875rem;
  padding: 10px 4px;
  color: var(--rh-ink);
  list-style: none;
}
.help-mobile-toc summary::-webkit-details-marker { display: none; }
.help-mobile-toc ul {
  list-style: none;
  margin: 0;
  padding: 0 0 6px;
  columns: 2;
  gap: 8px 18px;
}
.help-mobile-toc a {
  display: inline-block;
  padding: 5px 0;
  color: #475569;
  text-decoration: none;
  font-size: 0.8125rem;
}
.help-mobile-toc a:hover { color: var(--rh-help); }

.help-support-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 28px 0 8px;
  padding: 20px 22px;
  border-radius: 14px;
  border: 1px solid var(--rh-help-line);
  background:
    linear-gradient(135deg, rgba(239, 246, 255, 0.95), rgba(255, 255, 255, 0.98));
}
.help-support-strip-title {
  margin: 0 0 4px !important;
  font-family: var(--display), "Sora", sans-serif;
  font-size: 1.125rem !important;
  letter-spacing: -0.02em;
  color: var(--rh-ink);
}
.help-support-strip p {
  margin: 0;
  color: var(--rh-muted);
  font-size: 0.9rem;
  line-height: 1.5;
}
.help-support-strip-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.help-back-top {
  position: fixed;
  right: max(16px, env(safe-area-inset-right));
  bottom: max(20px, env(safe-area-inset-bottom));
  z-index: 40;
  appearance: none;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: #fff;
  color: var(--rh-ink);
  font: inherit;
  font-size: 0.8125rem;
  font-weight: 650;
  padding: 10px 14px;
  border-radius: 999px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
  cursor: pointer;
  transition: transform 0.15s, background 0.15s;
}
.help-back-top:hover {
  background: var(--rh-help-soft);
  color: var(--rh-help);
  transform: translateY(-1px);
}
.help-back-top[hidden] { display: none !important; }

@media (prefers-reduced-motion: reduce) {
  .help-back-top { transition: none; }
}

@media (max-width: 1024px) {
  .guides-hub-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .help-topics-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .help-layout { grid-template-columns: 1fr; }
  .help-layout > .help-toc { display: none; }
  .help-mobile-toc { display: block; }
  .guides-featured { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .rh-hero { padding: 40px 16px 28px; }
  .guides-hub-section { padding: 16px 16px 56px; }
  .guides-hub-grid,
  .help-topics-grid { grid-template-columns: 1fr; }
  .help-topics,
  .help-layout,
  .help-mobile-toc { padding-left: 16px; padding-right: 16px; }
  .help-article { padding: 20px 16px; }
  .help-mobile-toc ul { columns: 1; }
  .help-topics-header { flex-direction: column; align-items: flex-start; }
  .help-support-strip { padding: 16px; }
  .help-support-strip-actions { width: 100%; }
  .help-support-strip-actions .button { flex: 1; text-align: center; justify-content: center; }
}
