/* HEVEXO_HANDBOOK_V1 */
.hevexo-handbook {
  --hb-border: color-mix(in srgb, var(--primary, #2563eb) 14%, #d9e2ef);
  --hb-soft: color-mix(in srgb, var(--primary, #2563eb) 6%, #ffffff);
  --hb-text: #172033;
  --hb-muted: #64748b;
  color: var(--hb-text);
  display: grid;
  gap: 18px;
  max-width: 1500px;
  margin: 0 auto;
}

.hevexo-handbook-hero,
.hevexo-handbook-search-card,
.hevexo-handbook-toc,
.hevexo-handbook-section,
.hevexo-handbook-no-results {
  background: #fff;
  border: 1px solid var(--hb-border);
  border-radius: 18px;
  box-shadow: 0 9px 28px rgba(15, 23, 42, .055);
}

.hevexo-handbook-hero {
  padding: clamp(22px, 3vw, 34px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 28px;
  background:
    radial-gradient(circle at 92% 8%, color-mix(in srgb, var(--primary, #2563eb) 15%, transparent), transparent 35%),
    linear-gradient(135deg, #fff 0%, var(--hb-soft) 100%);
}

.hevexo-handbook-kicker {
  color: var(--primary, #2563eb);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.hevexo-handbook-hero h2 {
  font-size: clamp(1.65rem, 3vw, 2.45rem);
  line-height: 1.08;
  margin: 0 0 10px;
}

.hevexo-handbook-hero p {
  max-width: 790px;
  margin: 0;
  color: var(--hb-muted);
  font-size: 1rem;
  line-height: 1.65;
}

.hevexo-handbook-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.hevexo-handbook-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 11px;
  border-radius: 999px;
  border: 1px solid var(--hb-border);
  background: rgba(255, 255, 255, .78);
  color: #475569;
  font-size: .82rem;
  font-weight: 700;
}

.hevexo-handbook-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
  min-width: max-content;
}

.hevexo-handbook-actions a {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 15px;
  border-radius: 11px;
  text-decoration: none;
  font-weight: 750;
}

.hevexo-handbook-search-card {
  padding: 18px 20px;
}

.hevexo-handbook-search-card > label {
  display: block;
  margin-bottom: 8px;
  font-weight: 800;
}

.hevexo-handbook-search-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  border: 1px solid #cbd5e1;
  border-radius: 13px;
  padding: 7px 8px 7px 13px;
  background: #fff;
  transition: border-color .16s ease, box-shadow .16s ease;
}

.hevexo-handbook-search-row:focus-within {
  border-color: var(--primary, #2563eb);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary, #2563eb) 14%, transparent);
}

.hevexo-handbook-search-row > span {
  font-size: 1.35rem;
  line-height: 1;
  color: #64748b;
}

.hevexo-handbook-search-row input {
  width: 100%;
  min-width: 0;
  border: 0 !important;
  box-shadow: none !important;
  outline: 0;
  padding: 7px 2px;
  font-size: 1rem;
  background: transparent;
}

.hevexo-handbook-search-row button {
  border: 0;
  background: #eef2f7;
  color: #334155;
  border-radius: 9px;
  padding: 8px 11px;
  font-weight: 700;
}

.hevexo-handbook-search-status {
  margin-top: 9px;
  color: var(--hb-muted);
  font-size: .87rem;
}

.hevexo-handbook-layout {
  display: grid;
  grid-template-columns: minmax(250px, 320px) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.hevexo-handbook-toc {
  position: sticky;
  top: 14px;
  max-height: calc(100vh - 118px);
  overflow: auto;
  scrollbar-width: thin;
}

.hevexo-handbook-toc-head {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 15px 16px 12px;
  border-bottom: 1px solid var(--hb-border);
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(8px);
}

.hevexo-handbook-toc-head button {
  border: 0;
  background: transparent;
  color: var(--primary, #2563eb);
  padding: 4px;
  font-size: .78rem;
  font-weight: 750;
}

.hevexo-handbook-toc nav {
  padding: 8px 8px 14px;
}

.hevexo-handbook-toc-part {
  margin: 13px 9px 5px;
  color: #64748b;
  font-size: .69rem;
  font-weight: 850;
  letter-spacing: .055em;
  text-transform: uppercase;
}

.hevexo-handbook-toc-item {
  width: 100%;
  display: block;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: #334155;
  text-align: left;
  line-height: 1.35;
  padding: 8px 10px;
  font-size: .84rem;
}

.hevexo-handbook-toc-item:hover,
.hevexo-handbook-toc-item.active {
  background: var(--hb-soft);
  color: var(--primary, #2563eb);
}

.hevexo-handbook-content {
  min-width: 0;
  display: grid;
  gap: 16px;
}

.hevexo-handbook-section {
  scroll-margin-top: 18px;
  padding: clamp(19px, 2.6vw, 31px);
  overflow: hidden;
}

.hevexo-handbook-section[hidden],
.hevexo-handbook-toc-item[hidden],
.hevexo-handbook-toc-part[hidden] {
  display: none !important;
}

.hevexo-handbook-part {
  display: inline-block;
  margin-bottom: 8px;
  color: var(--primary, #2563eb);
  font-size: .72rem;
  font-weight: 850;
  letter-spacing: .055em;
  text-transform: uppercase;
}

.hevexo-handbook-section-head {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: start;
  gap: 11px;
  padding-bottom: 15px;
  border-bottom: 1px solid #e7edf5;
}

.hevexo-handbook-section-number {
  width: 31px;
  height: 31px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  background: var(--hb-soft);
  color: var(--primary, #2563eb);
  font-size: .77rem;
  font-weight: 850;
}

.hevexo-handbook-section-head h2 {
  margin: 1px 0 0;
  line-height: 1.22;
  font-size: clamp(1.18rem, 2vw, 1.55rem);
}

.hevexo-handbook-copy-link {
  width: 31px;
  height: 31px;
  border: 1px solid #dbe4ef;
  border-radius: 9px;
  background: #fff;
  color: #64748b;
  font-weight: 850;
}

.hevexo-handbook-body {
  padding-top: 5px;
  font-size: .95rem;
  line-height: 1.67;
}

.hevexo-handbook-body p,
.hevexo-handbook-body ul,
.hevexo-handbook-body ol,
.hevexo-handbook-body blockquote {
  margin: 12px 0;
}

.hevexo-handbook-body h3 {
  margin: 24px 0 8px;
  font-size: 1.08rem;
  line-height: 1.3;
  color: #1e293b;
}

.hevexo-handbook-body h4,
.hevexo-handbook-body h5 {
  margin: 19px 0 7px;
  font-size: .98rem;
  color: #334155;
}

.hevexo-handbook-body ul,
.hevexo-handbook-body ol {
  padding-left: 1.35rem;
}

.hevexo-handbook-body li + li {
  margin-top: 5px;
}

.hevexo-handbook-body blockquote {
  padding: 12px 14px;
  border-left: 4px solid var(--primary, #2563eb);
  border-radius: 0 10px 10px 0;
  background: var(--hb-soft);
}

.hevexo-handbook-label {
  margin-bottom: -5px !important;
}

.hevexo-handbook-table-wrap {
  width: 100%;
  overflow: auto;
  margin: 16px 0;
  border: 1px solid #dbe4ef;
  border-radius: 12px;
}

.hevexo-handbook-table-wrap table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  background: #fff;
  font-size: .88rem;
}

.hevexo-handbook-table-wrap th,
.hevexo-handbook-table-wrap td {
  padding: 10px 12px;
  border-bottom: 1px solid #e8edf4;
  border-right: 1px solid #e8edf4;
  vertical-align: top;
  text-align: left;
}

.hevexo-handbook-table-wrap th {
  position: sticky;
  top: 0;
  background: #f7f9fc;
  color: #334155;
  font-weight: 800;
}

.hevexo-handbook-table-wrap tr:last-child td {
  border-bottom: 0;
}

.hevexo-handbook-table-wrap th:last-child,
.hevexo-handbook-table-wrap td:last-child {
  border-right: 0;
}

.hevexo-handbook-top {
  margin-top: 18px;
  border: 0;
  background: transparent;
  color: var(--primary, #2563eb);
  padding: 0;
  font-size: .82rem;
  font-weight: 750;
}

.hevexo-handbook-highlight {
  padding: 0 .08em;
  border-radius: .22em;
  background: #fde68a;
  color: #713f12;
}

.hevexo-handbook-no-results {
  padding: 32px;
  text-align: center;
}

.hevexo-handbook-no-results strong,
.hevexo-handbook-no-results span {
  display: block;
}

.hevexo-handbook-no-results span {
  margin-top: 6px;
  color: var(--hb-muted);
}

@media (max-width: 1150px) {
  .hevexo-handbook-layout {
    grid-template-columns: minmax(220px, 270px) minmax(0, 1fr);
  }
}

@media (max-width: 900px) {
  .hevexo-handbook-hero {
    align-items: flex-start;
    flex-direction: column;
  }

  .hevexo-handbook-actions {
    justify-content: flex-start;
    min-width: 0;
  }

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

  .hevexo-handbook-toc {
    position: static;
    max-height: 430px;
  }
}

@media (max-width: 620px) {
  .hevexo-handbook-hero,
  .hevexo-handbook-search-card,
  .hevexo-handbook-section {
    border-radius: 14px;
  }

  .hevexo-handbook-actions,
  .hevexo-handbook-actions a {
    width: 100%;
  }

  .hevexo-handbook-search-row {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .hevexo-handbook-search-row button {
    grid-column: 1 / -1;
    width: 100%;
  }

  .hevexo-handbook-section-head {
    grid-template-columns: 31px minmax(0, 1fr);
  }

  .hevexo-handbook-copy-link {
    display: none;
  }

  .hevexo-handbook-table-wrap table {
    min-width: 500px;
  }
}
.hevexo-handbook-search-row input[type="search"]::-webkit-search-cancel-button { display: none; }
