/* Appily Twentysix — Help Center (Root Network / hc26) */

.hc26-page {
  --hc26-sage: #2F5544;
  --hc26-sage-light: #E4EBE7;
  --hc26-terra: #C47A5A;
  --hc26-terra-light: #F5E8E2;
  --hc26-gold: #D4A853;
  --hc26-cream: #FAF8F4;
  --hc26-ink: #141414;
  --hc26-muted: #6B7A72;
  --hc26-border: #D8E2DC;
  background: var(--hc26-cream);
}

/* ── Hero ── */
.hc26-hero {
  position: relative;
  padding: 48px 0 72px;
  overflow: hidden;
  background:
    radial-gradient(ellipse 80% 60% at 20% 0%, rgba(47, 85, 68, 0.12), transparent 60%),
    radial-gradient(ellipse 60% 50% at 90% 20%, rgba(196, 122, 90, 0.14), transparent 55%),
    linear-gradient(165deg, #E8F0EB 0%, var(--hc26-cream) 48%, #F5EDE6 100%);
}

.hc26-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 12% 78%, rgba(47, 85, 68, 0.07) 0 3px, transparent 3px),
    radial-gradient(circle at 28% 62%, rgba(196, 122, 90, 0.08) 0 2px, transparent 2px),
    radial-gradient(circle at 44% 88%, rgba(47, 85, 68, 0.06) 0 2px, transparent 2px),
    radial-gradient(circle at 67% 72%, rgba(212, 168, 83, 0.1) 0 3px, transparent 3px),
    radial-gradient(circle at 83% 58%, rgba(47, 85, 68, 0.05) 0 2px, transparent 2px);
  background-size: 100% 100%;
  pointer-events: none;
}

.hc26-hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: 40px;
  align-items: center;
}

.hc26-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  padding: 6px 14px 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--hc26-border);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--hc26-sage);
}

.hc26-eyebrow-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--hc26-terra);
  animation: hc26-pulse 2s ease-in-out infinite;
}

@keyframes hc26-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(0.85); }
}

.hc26-title {
  margin: 0 0 14px;
  font-family: var(--sv-serif);
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 400;
  line-height: 1.08;
  color: var(--hc26-ink);
}

.hc26-title em {
  font-style: italic;
  color: var(--hc26-sage);
}

.hc26-lede {
  margin: 0 0 28px;
  max-width: 520px;
  font-size: 1.02rem;
  color: var(--hc26-muted);
  line-height: 1.6;
}

.hc26-search-wrap {
  max-width: 480px;
}

.hc26-search {
  display: flex;
  align-items: center;
  gap: 0;
  background: #fff;
  border: 2px solid var(--hc26-border);
  border-radius: 999px;
  padding: 6px 6px 6px 20px;
  box-shadow: 0 8px 28px rgba(20, 20, 20, 0.06);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.hc26-search:focus-within {
  border-color: var(--hc26-sage);
  box-shadow: 0 8px 32px rgba(47, 85, 68, 0.12);
}

.hc26-search input {
  flex: 1;
  border: 0;
  outline: none;
  font-size: 0.95rem;
  background: transparent;
  min-width: 0;
}

.hc26-search button {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: var(--hc26-sage);
  color: #fff;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.15s ease;
}

.hc26-search button:hover {
  background: var(--sv-primary-dark);
}

.hc26-search-hint {
  margin: 10px 0 0 20px;
  font-size: 0.8rem;
  color: var(--hc26-muted);
}

.hc26-hero-card {
  background: #fff;
  border-radius: 24px;
  padding: 28px;
  border: 1px solid var(--hc26-border);
  box-shadow: var(--sv-shadow);
  position: relative;
  overflow: hidden;
}

.hc26-hero-card::after {
  content: '';
  position: absolute;
  top: -40px;
  right: -40px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(196, 122, 90, 0.15), transparent 70%);
  pointer-events: none;
}

.hc26-hero-card-label {
  margin: 0 0 6px;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--hc26-terra);
}

.hc26-hero-card h2 {
  margin: 0 0 8px;
  font-size: 1.25rem;
  font-weight: 800;
}

.hc26-hero-card p {
  margin: 0 0 18px;
  font-size: 0.9rem;
  color: var(--hc26-muted);
  line-height: 1.5;
}

.hc26-hero-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 20px;
}

.hc26-stat {
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--hc26-sage-light);
}

.hc26-stat strong {
  display: block;
  font-size: 1.1rem;
  color: var(--hc26-sage);
}

.hc26-stat span {
  font-size: 0.78rem;
  color: var(--hc26-muted);
}

.hc26-hero-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--hc26-sage);
  text-decoration: none;
}

.hc26-hero-link:hover {
  color: var(--hc26-terra);
}

/* ── Root map navigation ── */
.hc26-stage {
  margin-top: -36px;
  position: relative;
  z-index: 2;
  padding-bottom: 64px;
}

.hc26-root-map {
  background: #fff;
  border: 1px solid var(--hc26-border);
  border-radius: 28px;
  padding: 32px 28px 28px;
  box-shadow: 0 16px 48px rgba(20, 20, 20, 0.07);
  margin-bottom: 28px;
}

.hc26-root-map-head {
  text-align: center;
  margin-bottom: 28px;
}

.hc26-root-map-head h2 {
  margin: 0 0 6px;
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--hc26-ink);
}

.hc26-root-map-head p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--hc26-muted);
}

.hc26-nodes {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  position: relative;
}

.hc26-nodes::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 8%;
  right: 8%;
  height: 3px;
  background: linear-gradient(90deg, var(--hc26-sage-light), var(--hc26-terra-light), var(--hc26-sage-light));
  border-radius: 999px;
  transform: translateY(-50%);
  z-index: 0;
}

.hc26-node {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 16px 12px;
  border: 2px solid transparent;
  border-radius: 20px;
  background: transparent;
  cursor: pointer;
  text-align: center;
  transition: 0.2s ease;
  font-family: inherit;
  color: inherit;
}

.hc26-node:hover {
  background: var(--hc26-sage-light);
}

.hc26-node.is-active {
  background: #fff;
  border-color: var(--hc26-node-color, var(--hc26-sage));
  box-shadow: 0 8px 24px rgba(20, 20, 20, 0.08);
}

.hc26-node-ring {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--hc26-sage-light);
  border: 3px solid #fff;
  box-shadow: 0 4px 14px rgba(20, 20, 20, 0.08);
  transition: 0.2s ease;
}

.hc26-node.is-active .hc26-node-ring {
  background: var(--hc26-node-color, var(--hc26-sage));
  color: #fff;
  transform: scale(1.08);
}

.hc26-node-ring svg {
  display: block;
}

.hc26-node-stage {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--hc26-muted);
}

.hc26-node.is-active .hc26-node-stage {
  color: var(--hc26-node-color, var(--hc26-sage));
}

.hc26-node-label {
  font-size: 0.88rem;
  font-weight: 800;
  line-height: 1.2;
}

.hc26-node-tag {
  font-size: 0.72rem;
  color: var(--hc26-muted);
  font-style: normal;
}

/* ── Main layout ── */
.hc26-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 28px;
  align-items: start;
}

/* ── FAQ bloom panel ── */
.hc26-panel {
  display: none;
  animation: hc26-rise 0.35s ease;
}

.hc26-panel.is-active {
  display: block;
}

@keyframes hc26-rise {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.hc26-panel-head {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 24px;
  padding: 24px;
  border-radius: 20px;
  background: linear-gradient(135deg, var(--hc26-panel-bg, var(--hc26-sage-light)) 0%, #fff 100%);
  border: 1px solid var(--hc26-border);
}

.hc26-panel-icon {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: #fff;
  color: var(--hc26-panel-accent, var(--hc26-sage));
  box-shadow: 0 4px 12px rgba(20, 20, 20, 0.06);
}

.hc26-panel-head h2 {
  margin: 0 0 6px;
  font-size: 1.35rem;
  font-weight: 800;
}

.hc26-panel-head p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--hc26-muted);
  line-height: 1.5;
}

.hc26-blooms {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.hc26-bloom {
  background: #fff;
  border: 1px solid var(--hc26-border);
  border-radius: 18px;
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.hc26-bloom.is-open {
  border-color: var(--hc26-panel-accent, var(--hc26-sage));
  box-shadow: 0 6px 20px rgba(20, 20, 20, 0.05);
}

.hc26-bloom.is-hidden {
  display: none;
}

.hc26-bloom-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  border: 0;
  background: transparent;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  color: inherit;
}

.hc26-bloom-num {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-size: 0.78rem;
  font-weight: 800;
  background: var(--hc26-sage-light);
  color: var(--hc26-sage);
  transition: 0.2s ease;
}

.hc26-bloom.is-open .hc26-bloom-num {
  background: var(--hc26-panel-accent, var(--hc26-sage));
  color: #fff;
}

.hc26-bloom-q {
  flex: 1;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.4;
}

.hc26-bloom-chevron {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid var(--hc26-border);
  display: grid;
  place-items: center;
  font-size: 1.1rem;
  color: var(--hc26-muted);
  transition: transform 0.25s ease, background 0.2s ease;
}

.hc26-bloom.is-open .hc26-bloom-chevron {
  transform: rotate(45deg);
  background: var(--hc26-panel-accent, var(--hc26-sage));
  border-color: var(--hc26-panel-accent, var(--hc26-sage));
  color: #fff;
}

.hc26-bloom-body {
  display: none;
  padding: 0 20px 20px 66px;
  font-size: 0.92rem;
  color: #444;
  line-height: 1.65;
}

.hc26-bloom.is-open .hc26-bloom-body {
  display: block;
}

.hc26-bloom-body a {
  color: var(--hc26-sage);
  font-weight: 600;
}

.hc26-no-results {
  padding: 40px 24px;
  text-align: center;
  background: #fff;
  border: 1px dashed var(--hc26-border);
  border-radius: 20px;
  color: var(--hc26-muted);
}

.hc26-no-results[hidden] {
  display: none;
}

.hc26-no-results a {
  color: var(--hc26-sage);
  font-weight: 700;
}

/* ── Sidebar ── */
.hc26-aside {
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: sticky;
  top: 96px;
}

.hc26-signal {
  background: var(--hc26-sage);
  color: #fff;
  border-radius: 22px;
  padding: 24px;
  position: relative;
  overflow: hidden;
}

.hc26-signal::before {
  content: '';
  position: absolute;
  bottom: -30px;
  right: -30px;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
}

.hc26-signal-label {
  margin: 0 0 8px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.75;
}

.hc26-signal h3 {
  margin: 0 0 10px;
  font-size: 1.15rem;
  font-weight: 800;
}

.hc26-signal p {
  margin: 0 0 18px;
  font-size: 0.88rem;
  opacity: 0.9;
  line-height: 1.5;
}

.hc26-signal-btn {
  display: block;
  width: 100%;
  padding: 12px 16px;
  border: 0;
  border-radius: 999px;
  background: #fff;
  color: var(--hc26-sage);
  font-weight: 800;
  font-size: 0.88rem;
  text-align: center;
  text-decoration: none;
  transition: opacity 0.15s ease;
}

.hc26-signal-btn:hover {
  opacity: 0.92;
}

.hc26-signal-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.hc26-signal-links a {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.92);
  text-decoration: none;
}

.hc26-signal-links a:hover {
  text-decoration: underline;
}

.hc26-facts {
  background: #fff;
  border: 1px solid var(--hc26-border);
  border-radius: 20px;
  padding: 20px;
}

.hc26-facts h4 {
  margin: 0 0 14px;
  font-size: 0.88rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--hc26-muted);
}

.hc26-facts ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.hc26-facts li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--hc26-border);
  font-size: 0.88rem;
}

.hc26-facts li:last-child {
  border-bottom: 0;
}

.hc26-facts li span {
  color: var(--hc26-muted);
}

.hc26-facts li strong {
  color: var(--hc26-ink);
  font-weight: 700;
}

.hc26-shortcuts {
  background: #fff;
  border: 1px solid var(--hc26-border);
  border-radius: 20px;
  padding: 20px;
}

.hc26-shortcuts h4 {
  margin: 0 0 12px;
  font-size: 0.88rem;
  font-weight: 800;
}

.hc26-shortcut-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.hc26-shortcut {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 12px;
  border-radius: 12px;
  background: var(--hc26-cream);
  text-decoration: none;
  color: inherit;
  transition: background 0.15s ease;
}

.hc26-shortcut:hover {
  background: var(--hc26-sage-light);
}

.hc26-shortcut-no {
  font-size: 0.68rem;
  font-weight: 800;
  color: var(--hc26-terra);
}

.hc26-shortcut strong {
  font-size: 0.82rem;
  font-weight: 700;
}

/* ── Resource trail ── */
.hc26-trail {
  padding: 40px 0 56px;
  border-top: 1px solid var(--hc26-border);
  background: #fff;
}

.hc26-trail-head {
  margin-bottom: 20px;
}

.hc26-trail-head h2 {
  margin: 0 0 4px;
  font-size: 1.2rem;
  font-weight: 800;
}

.hc26-trail-head p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--hc26-muted);
}

.hc26-trail-scroll {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 8px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.hc26-trail-scroll::-webkit-scrollbar {
  height: 4px;
}

.hc26-trail-scroll::-webkit-scrollbar-thumb {
  background: var(--hc26-border);
  border-radius: 999px;
}

.hc26-trail-chip {
  flex-shrink: 0;
  scroll-snap-align: start;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  border-radius: 999px;
  border: 1px solid var(--hc26-border);
  background: var(--hc26-cream);
  text-decoration: none;
  color: inherit;
  transition: 0.15s ease;
  min-width: 200px;
}

.hc26-trail-chip:hover {
  border-color: var(--hc26-sage);
  background: var(--hc26-sage-light);
}

.hc26-trail-chip-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #fff;
  font-size: 1rem;
}

.hc26-trail-chip strong {
  display: block;
  font-size: 0.9rem;
}

.hc26-trail-chip span {
  font-size: 0.78rem;
  color: var(--hc26-muted);
}

@media (max-width: 980px) {
  .hc26-hero-inner {
    grid-template-columns: 1fr;
  }

  .hc26-layout {
    grid-template-columns: 1fr;
  }

  .hc26-aside {
    position: static;
    order: -1;
  }

  .hc26-nodes {
    grid-template-columns: repeat(2, 1fr);
  }

  .hc26-nodes::before {
    display: none;
  }
}

@media (max-width: 520px) {
  .hc26-root-map {
    padding: 20px 16px;
  }

  .hc26-nodes {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .hc26-node-ring {
    width: 52px;
    height: 52px;
  }

  .hc26-bloom-body {
    padding-left: 20px;
  }

  .hc26-shortcut-grid {
    grid-template-columns: 1fr;
  }
}
