/* Help Binder Index — independent of constellation / a74-help patterns */
:root {
  --hx-ink: #12141a;
  --hx-mute: #5c6570;
  --hx-paper: #f4f1ea;
  --hx-sheet: #fffcf7;
  --hx-line: rgba(18, 20, 26, 0.12);
  --hx-mark: #f0e14a;
  --hx-blue: #1d4ed8;
  --hx-coral: #e11d48;
  --hx-deep: #0b1020;
  --hx-display: "Literata", Georgia, serif;
  --hx-sans: "Plus Jakarta Sans", "Segoe UI", sans-serif;
  --hx-ease: cubic-bezier(0.2, 0.85, 0.2, 1);
  --hx-max: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body.hx-help {
  margin: 0;
  min-height: 100vh;
  color: var(--hx-ink);
  font-family: var(--hx-sans);
  background:
    radial-gradient(70% 50% at 100% 0%, rgba(29, 78, 216, 0.08), transparent 55%),
    radial-gradient(60% 40% at 0% 100%, rgba(240, 225, 74, 0.18), transparent 50%),
    linear-gradient(180deg, #ebe7de 0%, var(--hx-paper) 40%, #e8e4db 100%);
  -webkit-font-smoothing: antialiased;
}

.a74-bare-main { min-height: 100vh; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden; clip: rect(0, 0, 0, 0);
}

.hx-root {
  position: relative;
  z-index: 1;
  width: min(var(--hx-max), calc(100% - 1.5rem));
  margin: 0 auto;
  padding: 1rem 0 2.75rem;
}
.hx-wash {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 0;
  background-image: repeating-linear-gradient(
    -12deg,
    transparent,
    transparent 18px,
    rgba(18, 20, 26, 0.02) 18px,
    rgba(18, 20, 26, 0.02) 19px
  );
}

.hx-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.75rem;
  padding: 0.55rem 0.65rem;
  background: rgba(255, 252, 247, 0.9);
  border: 1.5px solid var(--hx-ink);
  box-shadow: 4px 4px 0 rgba(18, 20, 26, 0.12);
}
.hx-logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
}
.hx-logo-mark {
  width: 2.35rem;
  height: 2.35rem;
  display: grid;
  place-items: center;
  background: var(--hx-ink);
  color: var(--hx-mark);
  font-weight: 800;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
}
.hx-logo span strong {
  display: block;
  font-family: var(--hx-display);
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.1;
}
.hx-logo span em {
  display: block;
  font-style: normal;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--hx-mute);
  font-weight: 700;
}
.hx-bar-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  align-items: center;
}
.hx-bar-links a {
  padding: 0.45rem 0.7rem;
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--hx-mute);
  transition: color 0.2s, background 0.2s, transform 0.2s var(--hx-ease);
}
.hx-bar-links a:hover {
  color: var(--hx-ink);
  background: var(--hx-mark);
  transform: translateY(-1px);
}
.hx-bar-cart {
  background: var(--hx-ink) !important;
  color: #fff !important;
}
.hx-bar-cart:hover { background: var(--hx-blue) !important; }

.hx-mast {
  display: grid;
  gap: 1.1rem;
  margin-bottom: 1.5rem;
  padding: 1.35rem 1.25rem 1.45rem;
  background: var(--hx-sheet);
  border: 1.5px solid var(--hx-ink);
  box-shadow: 6px 6px 0 var(--hx-mark);
  animation: hx-in 0.55s var(--hx-ease) both;
}
.hx-kicker {
  margin: 0 0 0.4rem;
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 800;
  color: var(--hx-blue);
}
.hx-mast h1 {
  margin: 0;
  font-family: var(--hx-display);
  font-size: clamp(2.2rem, 6vw, 3.6rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 0.98;
  max-width: 14ch;
}
.hx-lede {
  margin: 0.75rem 0 0;
  max-width: 38rem;
  color: var(--hx-mute);
  font-size: 1.02rem;
  line-height: 1.55;
}

.hx-seek {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.55rem;
  padding: 0.45rem 0.55rem;
  border: 1.5px solid var(--hx-ink);
  background: #fff;
  transition: box-shadow 0.25s, transform 0.25s var(--hx-ease);
}
.hx-seek:focus-within {
  box-shadow: 3px 3px 0 var(--hx-blue);
  transform: translateY(-1px);
}
.hx-seek-prefix {
  padding: 0.35rem 0.55rem;
  background: var(--hx-ink);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.hx-seek input {
  width: 100%;
  min-height: 2.5rem;
  border: 0;
  outline: none;
  background: transparent;
  font-size: 0.98rem;
}
.hx-seek-clear {
  padding: 0.4rem 0.7rem;
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--hx-coral);
  transition: background 0.2s;
}
.hx-seek-clear:hover { background: rgba(225, 29, 72, 0.08); }

.hx-tabs {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.45rem;
  margin-bottom: 1.15rem;
}
.hx-tabs-glider {
  display: none;
}
.hx-tab {
  display: grid;
  gap: 0.35rem;
  padding: 0.85rem 0.8rem;
  text-align: left;
  border: 1.5px solid var(--hx-line);
  background: rgba(255, 252, 247, 0.7);
  transition: transform 0.25s var(--hx-ease), border-color 0.2s, background 0.2s, box-shadow 0.25s;
}
.hx-tab:hover {
  transform: translateY(-3px);
  border-color: var(--hx-ink);
}
.hx-tab.is-active {
  background: var(--hx-ink);
  color: #fff;
  border-color: var(--hx-ink);
  box-shadow: 4px 4px 0 var(--hx-mark);
}
.hx-tab-num {
  font-family: var(--hx-display);
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1;
  color: var(--hx-blue);
}
.hx-tab.is-active .hx-tab-num { color: var(--hx-mark); }
.hx-tab-label {
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.25;
}

.hx-empty {
  margin: 0 0 1rem;
  padding: 0.9rem 1rem;
  border: 1.5px dashed var(--hx-ink);
  background: #fff;
  font-weight: 600;
}

.hx-index {
  display: grid;
  gap: 1rem;
}

.hx-folios {
  display: grid;
  gap: 0.75rem;
  min-width: 0;
}

.hx-spread {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(15rem, 0.75fr);
  gap: 0.9rem;
  align-items: start;
}

.hx-folio { display: none; }
.hx-folio.is-active {
  display: block;
  animation: hx-in 0.45s var(--hx-ease) both;
}
.hx-folio-head {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.85rem;
  align-items: start;
  margin-bottom: 0.9rem;
  padding: 1rem 1.05rem;
  background: var(--hx-sheet);
  border: 1.5px solid var(--hx-ink);
}
.hx-folio-num {
  font-family: var(--hx-display);
  font-size: 2.4rem;
  font-weight: 700;
  line-height: 1;
  color: var(--hx-blue);
}
.hx-folio-head h2 {
  margin: 0;
  font-family: var(--hx-display);
  font-size: clamp(1.45rem, 3vw, 1.9rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}
.hx-folio-head p {
  margin: 0.35rem 0 0;
  color: var(--hx-mute);
  font-size: 0.92rem;
}

.hx-sheets { display: grid; gap: 0.55rem; }
.hx-sheet {
  border: 1.5px solid var(--hx-ink);
  background: #fff;
  transform-origin: top center;
  animation: hx-sheet 0.4s var(--hx-ease) both;
  animation-delay: calc(var(--hx-i, 0) * 0.05s);
  transition: transform 0.25s var(--hx-ease), box-shadow 0.25s;
}
.hx-sheet:hover {
  transform: translateX(4px);
  box-shadow: 4px 4px 0 rgba(29, 78, 216, 0.18);
}
.hx-sheet[open] {
  box-shadow: 5px 5px 0 var(--hx-mark);
}
.hx-sheet summary {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.75rem;
  align-items: center;
  padding: 0.95rem 1rem;
  cursor: pointer;
  list-style: none;
  font-weight: 700;
}
.hx-sheet summary::-webkit-details-marker { display: none; }
.hx-sheet-num {
  font-family: var(--hx-display);
  font-size: 0.95rem;
  color: var(--hx-blue);
  font-weight: 700;
}
.hx-sheet-q { font-size: 0.98rem; line-height: 1.35; }
.hx-sheet-plus {
  width: 1.55rem;
  height: 1.55rem;
  position: relative;
  border: 1.5px solid var(--hx-ink);
  background: var(--hx-mark);
  transition: transform 0.3s var(--hx-ease), background 0.2s;
}
.hx-sheet-plus::before,
.hx-sheet-plus::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  background: var(--hx-ink);
  transform: translate(-50%, -50%);
}
.hx-sheet-plus::before { width: 10px; height: 2px; }
.hx-sheet-plus::after { width: 2px; height: 10px; transition: transform 0.3s var(--hx-ease); }
.hx-sheet[open] .hx-sheet-plus {
  background: var(--hx-ink);
}
.hx-sheet[open] .hx-sheet-plus::before,
.hx-sheet[open] .hx-sheet-plus::after { background: var(--hx-mark); }
.hx-sheet[open] .hx-sheet-plus::after { transform: translate(-50%, -50%) scaleY(0); }

.hx-sheet-a {
  padding: 0 1rem 1.05rem 3.2rem;
  color: var(--hx-mute);
  font-size: 0.95rem;
  line-height: 1.6;
  border-top: 1px dashed var(--hx-line);
  animation: hx-answer 0.35s var(--hx-ease) both;
}
.hx-sheet-a a {
  color: var(--hx-blue);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.hx-sheet-a a:hover { color: var(--hx-coral); }

.hx-slip {
  position: sticky;
  top: 0.85rem;
  padding: 1.15rem 1.1rem 1.25rem;
  background: var(--hx-deep);
  color: #f5f3ee;
  border: 1.5px solid var(--hx-ink);
  box-shadow: 6px 6px 0 var(--hx-blue);
  animation: hx-in 0.6s var(--hx-ease) 0.08s both;
}
.hx-slip-kicker {
  margin: 0 0 0.35rem;
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 800;
  color: var(--hx-mark);
}
.hx-slip h3 {
  margin: 0;
  font-family: var(--hx-display);
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.hx-slip-copy {
  margin: 0.55rem 0 1rem;
  color: rgba(245, 243, 238, 0.75);
  font-size: 0.9rem;
  line-height: 1.5;
}
.hx-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 2.7rem;
  padding: 0.55rem 1rem;
  margin-bottom: 0.45rem;
  font-weight: 800;
  font-size: 0.88rem;
  border: 1.5px solid transparent;
  transition: transform 0.22s var(--hx-ease), background 0.2s, color 0.2s;
}
.hx-btn:hover { transform: translateY(-2px); }
.hx-btn-hot {
  background: var(--hx-mark);
  color: var(--hx-ink);
}
.hx-btn-hot:hover { background: #fff; }
.hx-btn-line {
  border-color: rgba(255, 255, 255, 0.35);
  color: #fff;
}
.hx-btn-line:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: #fff;
}
.hx-slip-mail {
  display: inline-block;
  margin-top: 0.55rem;
  color: #93c5fd;
  font-weight: 700;
  font-size: 0.88rem;
  word-break: break-all;
}
.hx-slip-mail:hover { color: var(--hx-mark); }
.hx-slip-meta {
  margin: 0.35rem 0 0;
  color: rgba(245, 243, 238, 0.65);
  font-size: 0.82rem;
}
.hx-slip-block {
  margin-top: 1rem;
  padding-top: 0.9rem;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}
.hx-slip-block h4 {
  margin: 0 0 0.45rem;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--hx-mark);
}
.hx-slip-block p {
  margin: 0 0 0.35rem;
  color: rgba(245, 243, 238, 0.78);
  font-size: 0.86rem;
}
.hx-slip-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.hx-slip-nav a {
  padding: 0.35rem 0.55rem;
  border: 1px solid rgba(255, 255, 255, 0.22);
  font-size: 0.78rem;
  font-weight: 700;
  transition: background 0.2s, border-color 0.2s;
}
.hx-slip-nav a:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--hx-mark);
}

.hx-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.1rem;
  justify-content: center;
  margin-top: 1.85rem;
  padding-top: 1rem;
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--hx-mute);
}
.hx-foot a:hover { color: var(--hx-coral); }

@keyframes hx-in {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}
@keyframes hx-sheet {
  from { opacity: 0; transform: translateY(10px) rotate(-0.4deg); }
  to { opacity: 1; transform: none; }
}
@keyframes hx-answer {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: none; }
}

@media (max-width: 900px) {
  .hx-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hx-spread { grid-template-columns: 1fr; }
  .hx-slip { position: static; }
}

@media (max-width: 560px) {
  .hx-root { width: calc(100% - 1rem); }
  .hx-sheet summary {
    grid-template-columns: auto 1fr;
  }
  .hx-sheet-plus { grid-column: 2; justify-self: end; }
  .hx-sheet-a { padding-left: 1rem; }
  .hx-seek {
    grid-template-columns: 1fr auto;
  }
  .hx-seek-prefix { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}
