/**
 * Appily Seventyseven — Helix Help
 * Premium light editorial support UI · Newsreader + Karla
 */

/* ── Tokens & base ─────────────────────────────────────────── */

body.hx-help {
  --hx-paper: #F4F6FA;
  --hx-panel: #FFFFFF;
  --hx-ink: #111827;
  --hx-mute: #6B7280;
  --hx-sun: #0284C7;
  --hx-sky: #6366F1;
  --hx-ink-tone: #334155;
  --hx-amber: #D97706;
  --hx-line: rgba(17, 24, 39, 0.1);
  --hx-display: "Newsreader", Georgia, "Times New Roman", serif;
  --hx-sans: "Karla", system-ui, sans-serif;
  --hx-max: 1200px;
  --hx-radius: 16px;
  --hx-radius-sm: 10px;
  --hx-shadow: 0 1px 2px rgba(17, 24, 39, 0.04), 0 16px 40px rgba(17, 24, 39, 0.07);
  --hx-shadow-lift: 0 6px 16px rgba(17, 24, 39, 0.06), 0 24px 48px rgba(17, 24, 39, 0.1);
  --hx-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --hx-spring: cubic-bezier(0.34, 1.4, 0.64, 1);
  --hx-rise-y: 20px;
  --hx-rise-dur: 0.7s;
  --hx-stagger: 0.08s;

  margin: 0;
  min-height: 100dvh;
  font-family: var(--hx-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--hx-ink);
  background: var(--hx-paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.hx-help *,
body.hx-help *::before,
body.hx-help *::after {
  box-sizing: border-box;
}

body.hx-help img {
  max-width: 100%;
  display: block;
}

body.hx-help a {
  color: var(--hx-sun);
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

body.hx-help a:hover {
  color: #0369A1;
}

body.hx-help .hx-root button {
  font: inherit;
  color: inherit;
  cursor: pointer;
  border: none;
  background: none;
  padding: 0;
}

body.hx-help .a77-bare-main {
  display: block;
  margin: 0;
  padding: 0;
  min-height: 100dvh;
}

/* ── Accessibility ───────────────────────────────────────────── */

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ── Root & ambient layers ───────────────────────────────────── */

.hx-root {
  position: relative;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  isolation: isolate;
  overflow-x: visible;
}

.hx-wash {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background:
    radial-gradient(ellipse 90% 70% at 8% 0%, rgba(2, 132, 199, 0.07) 0%, transparent 55%),
    radial-gradient(ellipse 60% 50% at 95% 12%, rgba(217, 119, 6, 0.05) 0%, transparent 50%),
    linear-gradient(180deg, #F8FAFC 0%, var(--hx-paper) 38%, #EEF1F6 100%);
}

.hx-ribbon {
  pointer-events: none;
  position: fixed;
  top: -12%;
  right: -18%;
  width: 62%;
  height: 48%;
  z-index: 0;
  opacity: 0.55;
  transform: rotate(-14deg);
  background: linear-gradient(
    118deg,
    transparent 38%,
    rgba(2, 132, 199, 0.06) 48%,
    rgba(2, 132, 199, 0.1) 52%,
    rgba(217, 119, 6, 0.04) 58%,
    transparent 68%
  );
  filter: blur(0.5px);
}

/* ── Top bar ─────────────────────────────────────────────────── */

.hx-top {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: calc(var(--hx-max) + 3rem);
  margin: 0 auto;
  padding: 1.25rem 1.5rem 0;
  width: 100%;
}

.hx-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: inherit;
  text-decoration: none;
  min-width: 0;
}

.hx-brand strong {
  display: block;
  font-family: var(--hx-display);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.2;
  overflow-wrap: anywhere;
  max-width: 18ch;
}

.hx-brand em {
  display: block;
  font-style: normal;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--hx-mute);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hx-mark {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 12px;
  font-family: var(--hx-sans);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #fff;
  background: linear-gradient(145deg, var(--hx-sun) 0%, #0369A1 100%);
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.28);
}

.hx-top-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
}

.hx-top-nav a {
  color: var(--hx-mute);
  text-decoration: none;
  transition: color 0.2s var(--hx-ease);
}

.hx-top-nav a:hover {
  color: var(--hx-ink);
}

.hx-top-cta {
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  color: var(--hx-ink) !important;
  background: var(--hx-panel);
  border: 1px solid var(--hx-line);
  box-shadow: 0 2px 8px rgba(17, 24, 39, 0.04);
  transition:
    transform 0.25s var(--hx-ease),
    box-shadow 0.25s var(--hx-ease);
}

.hx-top-cta:hover {
  transform: translateY(-1px);
  box-shadow: var(--hx-shadow);
}

/* ── Hero ────────────────────────────────────────────────────── */

.hx-hero {
  position: relative;
  z-index: 5;
  max-width: calc(var(--hx-max) + 3rem);
  margin: 0 auto;
  padding: 2.5rem 1.5rem 2rem;
  width: 100%;
}

.hx-hero-copy {
  max-width: 38rem;
  margin-bottom: 1.75rem;
}

.hx-kicker {
  margin: 0 0 0.5rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--hx-sun);
}

.hx-hero h1 {
  margin: 0 0 0.65rem;
  font-family: var(--hx-display);
  font-size: clamp(1.65rem, 4vw, 2.45rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--hx-ink);
  overflow-wrap: anywhere;
}

.hx-lede {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--hx-mute);
}

/* Command-strip search */
.hx-search {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  max-width: 36rem;
  padding: 0.35rem 0.35rem 0.35rem 1rem;
  border-radius: 14px;
  background: var(--hx-panel);
  border: 1px solid var(--hx-line);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.8),
    0 8px 24px rgba(17, 24, 39, 0.06);
  transition:
    border-color 0.25s var(--hx-ease),
    box-shadow 0.25s var(--hx-ease);
}

.hx-search:focus-within {
  border-color: rgba(2, 132, 199, 0.35);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.8),
    0 0 0 3px rgba(2, 132, 199, 0.12),
    0 8px 24px rgba(17, 24, 39, 0.06);
}

.hx-search-ico {
  flex-shrink: 0;
  font-size: 1.1rem;
  line-height: 1;
  color: var(--hx-mute);
  opacity: 0.7;
}

.hx-search input {
  flex: 1;
  min-width: 0;
  padding: 0.65rem 0;
  border: 0;
  background: transparent;
  font-family: var(--hx-sans);
  font-size: 0.95rem;
  color: var(--hx-ink);
  outline: none;
}

.hx-search input::placeholder {
  color: #5b6575;
}

.hx-search input::-webkit-search-cancel-button {
  display: none;
}

.hx-search-clear {
  flex-shrink: 0;
  padding: 0.5rem 0.85rem;
  border-radius: 10px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--hx-mute);
  background: rgba(17, 24, 39, 0.04);
  opacity: 0;
  transform: scale(0.92);
  pointer-events: none;
  transition:
    opacity 0.25s var(--hx-ease),
    transform 0.25s var(--hx-ease),
    color 0.2s var(--hx-ease),
    background 0.2s var(--hx-ease);
}

.hx-search-clear:not([hidden]) {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

.hx-search-clear:hover {
  color: var(--hx-ink);
  background: rgba(17, 24, 39, 0.07);
}

/* ── Board grid ──────────────────────────────────────────────── */

.hx-board {
  position: relative;
  z-index: 5;
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 11rem) minmax(0, 1fr) minmax(0, 15.5rem);
  gap: 2rem 2.5rem;
  align-items: start;
  max-width: calc(var(--hx-max) + 3rem);
  margin: 0 auto;
  padding: 0 1.5rem 3rem;
  width: 100%;
}

/* ── Helix rail ──────────────────────────────────────────────── */

.hx-helix {
  position: sticky;
  top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding-left: 1.25rem;
}

.hx-helix-line {
  position: absolute;
  left: 0;
  top: 0.75rem;
  bottom: 0.75rem;
  width: 2px;
  border-radius: 2px;
  background: var(--hx-line);
  overflow: hidden;
}

.hx-helix-line [data-hx-progress] {
  display: block;
  width: 100%;
  height: 0;
  border-radius: inherit;
  background: linear-gradient(180deg, var(--hx-sun) 0%, rgba(2, 132, 199, 0.65) 100%);
  transform-origin: top;
  transition: height 0.45s var(--hx-ease);
}

.hx-node {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  width: 100%;
  padding: 0.55rem 0.65rem 0.55rem 0;
  text-align: left;
  border-radius: var(--hx-radius-sm);
  transition:
    transform 0.3s var(--hx-spring),
    background 0.25s var(--hx-ease);
}

.hx-node::before {
  content: "";
  position: absolute;
  left: calc(-1.25rem - 5px);
  top: 50%;
  width: 10px;
  height: 10px;
  margin-top: -5px;
  border-radius: 50%;
  background: var(--hx-panel);
  border: 2px solid var(--hx-line);
  transition:
    border-color 0.3s var(--hx-ease),
    box-shadow 0.3s var(--hx-ease),
    transform 0.3s var(--hx-spring);
}

.hx-node:hover {
  transform: translateX(3px);
}

.hx-node:hover::before {
  transform: scale(1.15);
}

.hx-node.is-active {
  background: rgba(255, 255, 255, 0.65);
}

.hx-node.is-active::before {
  border-color: var(--hx-node-accent, var(--hx-sun));
  box-shadow: 0 0 0 4px var(--hx-node-ring, rgba(2, 132, 199, 0.18));
  animation: hx-node-pulse 2.4s ease-in-out infinite;
}

.hx-node.is-match:not(.is-active)::before {
  border-color: var(--hx-node-accent, var(--hx-sun));
}

.hx-node-num {
  flex-shrink: 0;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--hx-mute);
  padding-top: 0.15rem;
}

.hx-node-label {
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--hx-mute);
  transition: color 0.25s var(--hx-ease);
}

.hx-node.is-active .hx-node-label,
.hx-node:hover .hx-node-label {
  color: var(--hx-ink);
}

.hx-node--sun {
  --hx-node-accent: var(--hx-sun);
  --hx-node-ring: rgba(2, 132, 199, 0.18);
}

.hx-node--sky {
  --hx-node-accent: var(--hx-sky);
  --hx-node-ring: rgba(99, 102, 241, 0.16);
}

.hx-node--ink {
  --hx-node-accent: var(--hx-ink-tone);
  --hx-node-ring: rgba(51, 65, 85, 0.14);
}

.hx-node--amber {
  --hx-node-accent: var(--hx-amber);
  --hx-node-ring: rgba(217, 119, 6, 0.16);
}

@keyframes hx-node-pulse {
  0%, 100% { box-shadow: 0 0 0 4px var(--hx-node-ring, rgba(2, 132, 199, 0.18)); }
  50%      { box-shadow: 0 0 0 7px rgba(2, 132, 199, 0.06); }
}

/* ── Stream & topics ─────────────────────────────────────────── */

.hx-stream {
  min-width: 0;
}

.hx-empty {
  margin: 0 0 1.5rem;
  padding: 1.25rem 1.5rem;
  border-radius: var(--hx-radius);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--hx-mute);
  text-align: center;
  background: var(--hx-panel);
  border: 1px dashed var(--hx-line);
}

.hx-topic {
  display: none;
  margin-bottom: 2.5rem;
}

.hx-topic.is-active {
  display: block;
}

.hx-topic-head {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.25rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--hx-line);
}

.hx-topic-num {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 12px;
  font-family: var(--hx-display);
  font-size: 0.95rem;
  font-weight: 600;
  color: #fff;
  background: var(--hx-topic-accent, var(--hx-sun));
}

.hx-topic-head h2 {
  margin: 0 0 0.25rem;
  font-family: var(--hx-display);
  font-size: 1.45rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.hx-topic-head p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--hx-mute);
  line-height: 1.55;
}

.hx-topic--sun  { --hx-topic-accent: var(--hx-sun); }
.hx-topic--sky  { --hx-topic-accent: var(--hx-sky); }
.hx-topic--ink  { --hx-topic-accent: var(--hx-ink-tone); }
.hx-topic--amber { --hx-topic-accent: var(--hx-amber); }

/* Search mode: flatten stream */
.hx-root.is-searching .hx-topic {
  display: block;
}

.hx-root.is-searching .hx-topic:not(.has-matches) {
  display: none;
}

.hx-root.is-searching .hx-helix .hx-node:not(.is-match) {
  opacity: 0.4;
}

.hx-root.is-searching .hx-helix .hx-node.is-match {
  opacity: 1;
}

/* ── FAQ accordion ───────────────────────────────────────────── */

.hx-faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.hx-faq {
  border-radius: var(--hx-radius-sm);
  background: var(--hx-panel);
  border: 1px solid var(--hx-line);
  overflow: hidden;
  transition:
    border-color 0.25s var(--hx-ease),
    box-shadow 0.25s var(--hx-ease);
}

.hx-faq:not(.is-hidden) {
  display: block;
}

.hx-faq.is-hidden {
  display: none;
}

.hx-faq[open] {
  border-color: rgba(2, 132, 199, 0.22);
  box-shadow: 0 4px 16px rgba(17, 24, 39, 0.05);
}

.hx-faq summary {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.75rem 1rem;
  padding: 1rem 1.15rem;
  list-style: none;
  cursor: pointer;
  user-select: none;
}

.hx-faq summary::-webkit-details-marker {
  display: none;
}

.hx-faq-idx {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--hx-mute);
}

.hx-faq-q {
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.45;
  color: var(--hx-ink);
}

.hx-faq-plus {
  position: relative;
  flex-shrink: 0;
  width: 1.25rem;
  height: 1.25rem;
}

.hx-faq-plus::before,
.hx-faq-plus::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12px;
  height: 2px;
  margin: -1px 0 0 -6px;
  border-radius: 1px;
  background: var(--hx-mute);
  transition:
    transform 0.35s var(--hx-ease),
    background 0.25s var(--hx-ease);
}

.hx-faq-plus::after {
  transform: rotate(90deg);
}

.hx-faq[open] .hx-faq-plus::before {
  transform: rotate(45deg);
  background: var(--hx-sun);
}

.hx-faq[open] .hx-faq-plus::after {
  transform: rotate(-45deg);
  background: var(--hx-sun);
}

.hx-faq-a {
  max-height: 0;
  overflow: hidden;
  margin: 0;
  padding: 0 1.15rem;
  font-size: 0.92rem;
  line-height: 1.65;
  color: var(--hx-mute);
  transition:
    max-height 0.45s var(--hx-ease),
    padding 0.45s var(--hx-ease);
}

.hx-faq[open] .hx-faq-a {
  max-height: 24rem;
  padding: 0 1.15rem 1.1rem;
}

.hx-faq-a p {
  margin: 0 0 0.65rem;
}

.hx-faq-a p:last-child {
  margin-bottom: 0;
}

.hx-faq-a a {
  font-weight: 500;
}

.hx-faq-a strong {
  color: var(--hx-ink);
  font-weight: 600;
}

.hx-faq mark,
.hx-faq .hx-hit {
  padding: 0 0.15em;
  border-radius: 3px;
  color: var(--hx-ink);
  background: rgba(2, 132, 199, 0.12);
  font-weight: 600;
}

/* ── Dock ────────────────────────────────────────────────────── */

.hx-dock {
  position: sticky;
  top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.hx-dock-card {
  padding: 1.35rem;
  border-radius: var(--hx-radius);
  background: var(--hx-panel);
  border: 1px solid var(--hx-line);
  box-shadow: var(--hx-shadow);
  transition:
    transform 0.35s var(--hx-spring),
    box-shadow 0.35s var(--hx-ease);
}

.hx-dock-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--hx-shadow-lift);
}

.hx-dock-card--soft {
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 4px 16px rgba(17, 24, 39, 0.04);
}

.hx-dock-card h3 {
  margin: 0 0 0.5rem;
  font-family: var(--hx-display);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.hx-dock-card p {
  margin: 0 0 0.65rem;
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--hx-mute);
}

.hx-dock-card p:last-child {
  margin-bottom: 0;
}

.hx-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0.35rem 0 0.85rem;
  padding: 0.65rem 1.15rem;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 600;
  color: #fff !important;
  text-decoration: none;
  background: linear-gradient(145deg, var(--hx-sun) 0%, #0369A1 100%);
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.25);
  transition:
    transform 0.25s var(--hx-ease),
    box-shadow 0.25s var(--hx-ease);
}

.hx-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(2, 132, 199, 0.32);
  color: #fff;
}

.hx-mail {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.85rem;
  font-weight: 500;
  word-break: break-all;
}

.hx-meta {
  font-size: 0.82rem !important;
  color: var(--hx-mute) !important;
}

.hx-dock-links {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.hx-dock-links a {
  display: block;
  padding: 0.35rem 0;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--hx-ink-tone);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition:
    color 0.2s var(--hx-ease),
    border-color 0.2s var(--hx-ease);
}

.hx-dock-links a:hover {
  color: var(--hx-sun);
  border-bottom-color: rgba(2, 132, 199, 0.2);
}

/* ── Footer ──────────────────────────────────────────────────── */

.hx-foot {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  margin-top: auto;
  padding: 1.5rem;
  font-size: 0.82rem;
  color: var(--hx-mute);
  border-top: 1px solid var(--hx-line);
  background: rgba(255, 255, 255, 0.5);
}

.hx-foot a {
  font-weight: 600;
  color: var(--hx-ink);
  text-decoration: none;
}

.hx-foot a:hover {
  color: var(--hx-sun);
}

.hx-foot span {
  opacity: 0.65;
}

/* ── Rise reveal ─────────────────────────────────────────────── */

[data-hx-rise] {
  opacity: 0;
  transform: translateY(var(--hx-rise-y));
  transition:
    opacity var(--hx-rise-dur) var(--hx-ease),
    transform var(--hx-rise-dur) var(--hx-ease);
  transition-delay: calc(var(--hx-rise-i, 0) * var(--hx-stagger));
}

[data-hx-rise].is-visible {
  opacity: 1;
  transform: translateY(0);
}

.hx-root[data-hx-ready="0"] [data-hx-rise] {
  animation: hx-rise-fallback 0.01s linear 1.4s forwards;
}

@keyframes hx-rise-fallback {
  to { opacity: 1; transform: translateY(0); }
}

/* ── Responsive ──────────────────────────────────────────────── */

@media (max-width: 1024px) {
  .hx-board {
    grid-template-columns: minmax(0, 9.5rem) minmax(0, 1fr);
  }

  .hx-dock {
    grid-column: 1 / -1;
    position: static;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
    gap: 1rem;
  }
}

@media (max-width: 768px) {
  .hx-top {
    flex-direction: column;
    align-items: flex-start;
    padding-top: 1rem;
  }

  .hx-top-nav {
    width: 100%;
    justify-content: flex-start;
  }

  .hx-hero {
    padding-top: 1.75rem;
  }

  .hx-board {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding-bottom: 2rem;
  }

  .hx-helix {
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding-left: 0;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--hx-line);
  }

  .hx-helix-line {
    display: none;
  }

  .hx-node {
    flex: 1 1 auto;
    min-width: calc(50% - 0.5rem);
    padding: 0.65rem 0.75rem;
    background: var(--hx-panel);
    border: 1px solid var(--hx-line);
    border-radius: var(--hx-radius-sm);
  }

  .hx-node::before {
    display: none;
  }

  .hx-node:hover {
    transform: translateY(-2px);
  }

  .hx-node.is-active {
    border-color: var(--hx-node-accent, var(--hx-sun));
    box-shadow: 0 0 0 3px var(--hx-node-ring, rgba(2, 132, 199, 0.12));
  }

  .hx-dock {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .hx-node {
    min-width: 100%;
  }

  .hx-search {
    flex-wrap: wrap;
    padding: 0.75rem 1rem;
  }

  .hx-search input {
    width: 100%;
    order: 2;
    padding: 0.35rem 0;
  }

  .hx-search-ico {
    order: 1;
  }

  .hx-search-clear {
    order: 3;
    margin-left: auto;
  }
}

/* ── Reduced motion ──────────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
  body.hx-help {
    scroll-behavior: auto;
  }

  [data-hx-rise] {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .hx-helix-line [data-hx-progress],
  .hx-node,
  .hx-node::before,
  .hx-faq-a,
  .hx-faq-plus::before,
  .hx-faq-plus::after,
  .hx-search-clear,
  .hx-dock-card,
  .hx-top-cta {
    transition: none;
  }

  .hx-node.is-active::before {
    animation: none;
  }
}
