.tk-nav-stage > .tk-nav {
  width: 100%;
}

.tk-nav {
  background: var(--tk-bg-2);
  border-radius: var(--tk-radius);
  border: 1px solid var(--tk-border);
  overflow: hidden;
}

/* Override Elementor / Hello Biz global link colors inside toolkit */
.tk-shell a,
.elementor .tk-nav a,
.elementor-widget-shortcode .tk-nav a {
  color: var(--tk-accent);
  text-decoration: none;
}

.tk-shell a:not(.tk-tool-chip):hover,
.elementor .tk-nav a:not(.tk-tool-chip):hover,
.elementor-widget-shortcode .tk-nav a:not(.tk-tool-chip):hover {
  color: var(--tk-accent-hi);
}

.tk-shell .tk-tool-chip,
.tk-shell .tk-tool-chip:hover,
.tk-shell .tk-tool-chip:focus,
.elementor .tk-nav .tk-tool-chip,
.elementor .tk-nav .tk-tool-chip:hover,
.elementor-widget-shortcode .tk-nav .tk-tool-chip,
.elementor-widget-shortcode .tk-nav .tk-tool-chip:hover {
  color: var(--tk-cream-text);
}

body.tk-has-toolkit .tk-shell .tk-nav a.tk-tool-chip:hover,
body.tk-has-toolkit .tk-shell .tk-nav a.tk-tool-chip:focus,
.elementor-widget-shortcode .tk-shell .tk-nav a.tk-tool-chip:hover,
.elementor-widget-shortcode .tk-shell .tk-nav a.tk-tool-chip:focus {
  background-color: var(--tk-accent-hi);
  color: var(--tk-cream-text);
}

.tk-shell .tk-tool-chip--disabled,
.elementor .tk-nav .tk-tool-chip--disabled,
.elementor-widget-shortcode .tk-nav .tk-tool-chip--disabled {
  color: var(--tk-cream-text);
}

/* ── Master-detail split ──────────────────────── */
.tk-nav__split {
  display: grid;
  grid-template-columns: minmax(200px, 32%) 1fr;
  align-items: stretch;
  height: clamp(30rem, 58vh, 42rem);
}

/* ── Left menu — titles only ──────────────────── */
.tk-nav__list {
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
  min-height: 100%;
  padding: 0.85rem 0 0.65rem;
  margin: 0;
  border-right: 1px solid var(--tk-border-dim);
  background: var(--tk-surface-elevated);
  overflow-y: auto;
}

.tk-nav__list-item {
  position: relative;
  display: block;
  overflow: hidden;
  isolation: isolate;
  width: 100%;
  padding: 0.85rem 1.25rem;
  border: none;
  border-bottom: 1px solid var(--tk-accent);
  border-radius: 0;
  text-align: left;
  background: transparent;
  color: var(--tk-text);
  transition: background 0.15s, border-color 0.15s;
}

.tk-nav__list-item:last-child {
  border-bottom: none;
}

/* Override Hello Biz theme.css button:hover (#c36) — load-order safe */
body.tk-has-toolkit .tk-shell .tk-nav button.tk-nav__list-item:hover,
body.tk-has-toolkit .tk-shell .tk-nav button.tk-nav__list-item:focus-visible,
.elementor-widget-shortcode .tk-shell .tk-nav button.tk-nav__list-item:hover,
.elementor-widget-shortcode .tk-shell .tk-nav button.tk-nav__list-item:focus-visible,
body.tk-has-toolkit .tk-shell .tk-nav button.tk-nav__list-item.is-active,
.elementor-widget-shortcode .tk-shell .tk-nav button.tk-nav__list-item.is-active {
  background-color: var(--tk-accent-muted);
  background-image: linear-gradient(
    90deg,
    var(--tk-accent-muted) 0%,
    transparent 100%
  );
  color: var(--tk-text);
}

body.tk-has-toolkit .tk-shell .tk-nav button.tk-nav__list-item.is-active,
.elementor-widget-shortcode .tk-shell .tk-nav button.tk-nav__list-item.is-active {
  border-left: none;
  padding-left: 1.25rem;
}

body.tk-has-toolkit .tk-shell .tk-nav button.tk-nav__list-item.is-active::before,
.elementor-widget-shortcode .tk-shell .tk-nav button.tk-nav__list-item.is-active::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 3px;
  background: var(--tk-accent);
  z-index: 2;
}

.tk-nav__list-item--sweep.is-active::before {
  animation: tk-nav-bar-flash 0.42s ease-out;
}

.tk-nav__list-item--sweep.is-active::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(
    90deg,
    transparent 0%,
    transparent 32%,
    var(--tk-shine-edge) 40%,
    var(--tk-shine-mid) 46%,
    var(--tk-shine-core) 50%,
    var(--tk-shine-mid) 54%,
    var(--tk-shine-edge) 60%,
    transparent 68%,
    transparent 100%
  );
  transform: translateX(-120%);
  animation: tk-nav-shine-sweep 0.42s ease-out forwards;
  pointer-events: none;
}

@keyframes tk-nav-bar-flash {
  0%,
  100% {
    background-color: var(--tk-accent);
  }

  18% {
    background-color: var(--tk-shine-mid);
  }

  36% {
    background-color: var(--tk-accent);
  }
}

@keyframes tk-nav-shine-sweep {
  to {
    transform: translateX(120%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .tk-nav__list-item--sweep.is-active::before,
  .tk-nav__list-item--sweep.is-active::after {
    animation: none;
  }
}

.tk-nav__list-title {
  position: relative;
  z-index: 1;
  display: block;
  font-family: var(--tk-font-heading);
  font-size: 1.5rem;
  font-weight: 400;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--tk-text);
  line-height: 1.3;
}

/* Hello Biz button {} resets font-family — force Alumni on nav labels */
body.tk-has-toolkit .tk-shell .tk-nav .tk-nav__list-item .tk-nav__list-title,
body.tk-has-toolkit .tk-shell .tk-nav button.tk-nav__list-item,
.elementor-widget-shortcode .tk-shell .tk-nav .tk-nav__list-item .tk-nav__list-title,
.elementor-widget-shortcode .tk-shell .tk-nav button.tk-nav__list-item,
.elementor .elementor-widget-shortcode .tk-shell .tk-nav .tk-nav__list-item .tk-nav__list-title,
.elementor .elementor-widget-shortcode .tk-shell .tk-nav button.tk-nav__list-item {
  font-family: var(--tk-font-heading);
  font-weight: 400;
}

/* ── Right detail panel ───────────────────────── */
.tk-nav__detail {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  padding: 0;
  gap: 0;
  overflow: hidden;
}

.tk-nav__detail-main {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-height: 0;
  overflow-y: auto;
}

.tk-nav__detail.is-sheet-open .tk-nav__detail-main {
  overflow: hidden;
}

.tk-nav__detail-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 100%;
  min-height: 10.5rem;
  margin: 0;
  background: var(--tk-dim);
  border-radius: 0;
}

.tk-nav__detail-visual-icon {
  font-size: 3rem;
  line-height: 1;
  color: var(--tk-muted);
}

.tk-nav__detail-body {
  flex: 0 0 auto;
  padding: 1.25rem 1.75rem 0;
}

.tk-nav__detail-title {
  margin: 0 0 0.75rem;
  font-size: 1.35rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--tk-text);
}

.tk-nav__detail-about,
.tk-nav__detail-helps {
  margin: 0 0 0.85rem;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--tk-text);
}

.tk-nav__detail-helps {
  margin-bottom: 0.65rem;
  color: var(--tk-muted);
}

.tk-nav__detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0 0 0.25rem;
}

.tk-example-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.7rem;
  border: 1px solid var(--tk-border);
  border-radius: var(--tk-radius-sm);
  font-family: var(--tk-font-body);
  font-size: 0.8rem;
  font-style: normal;
  font-weight: 500;
  color: var(--tk-muted);
  line-height: 1.3;
}

.tk-nav__detail-tools {
  margin-top: auto;
  padding: 1rem 1.75rem 1.5rem;
}

/* ── Technique chips ──────────────────────────── */
.tk-tool-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.tk-tool-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.5rem;
  padding: 0.55rem 1.15rem;
  border-radius: var(--tk-radius-sm);
  background: var(--tk-accent);
  color: var(--tk-cream-text);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
  transition: opacity 0.15s, background 0.15s;
}

.tk-tool-chip:hover,
.tk-tool-chip:focus {
  opacity: 0.92;
  background-color: var(--tk-accent-hi);
  color: var(--tk-cream-text);
}

.tk-tool-chip--disabled,
.tk-tool-chip--disabled:hover {
  background: var(--tk-accent-chip-muted);
  color: var(--tk-cream-text);
  cursor: not-allowed;
}

.tk-tool-chip--pending,
.tk-tool-chip--pending:hover,
.tk-tool-chip--pending:focus {
  background: var(--tk-accent-chip-muted);
  color: var(--tk-cream-text);
  cursor: pointer;
}

.tk-tool-chip--pending:hover,
.tk-tool-chip--pending:focus {
  opacity: 0.92;
  background-color: var(--tk-accent-hi);
}

.tk-tool-chip.is-preview-open {
  outline: 2px solid var(--tk-accent-hi);
  outline-offset: 2px;
}

body.tk-has-toolkit .tk-shell .tk-nav button.tk-tool-chip,
.elementor-widget-shortcode .tk-shell .tk-nav button.tk-tool-chip,
.elementor .elementor-widget-shortcode .tk-shell .tk-nav button.tk-tool-chip {
  font-family: inherit;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border: none;
  background-color: var(--tk-accent);
  color: var(--tk-cream-text);
}

body.tk-has-toolkit .tk-shell .tk-nav button.tk-tool-chip:hover,
body.tk-has-toolkit .tk-shell .tk-nav button.tk-tool-chip:focus,
.elementor-widget-shortcode .tk-shell .tk-nav button.tk-tool-chip:hover,
.elementor-widget-shortcode .tk-shell .tk-nav button.tk-tool-chip:focus,
.elementor .elementor-widget-shortcode .tk-shell .tk-nav button.tk-tool-chip:hover,
.elementor .elementor-widget-shortcode .tk-shell .tk-nav button.tk-tool-chip:focus {
  background-color: var(--tk-accent-hi);
  color: var(--tk-cream-text);
}

/* ── Tool preview sheet (slides up inside detail panel) ── */
.tk-tool-sheet {
  position: absolute;
  inset: 0;
  z-index: 6;
  pointer-events: none;
  visibility: hidden;
}

.tk-tool-sheet.is-active {
  visibility: visible;
}

.tk-tool-sheet.is-open {
  pointer-events: auto;
}

.tk-tool-sheet__backdrop {
  position: absolute;
  inset: 0;
  margin: 0;
  padding: 0;
  border: none;
  background: color-mix(in srgb, var(--tk-bg) 50%, transparent);
  color: transparent;
  opacity: 0;
  cursor: pointer;
  transition: opacity 0.25s ease;
}

/* Override Hello Biz button:hover (#c36) on sheet backdrop */
body.tk-has-toolkit .tk-shell .tk-nav button.tk-tool-sheet__backdrop,
body.tk-has-toolkit .tk-shell .tk-nav button.tk-tool-sheet__backdrop:hover,
body.tk-has-toolkit .tk-shell .tk-nav button.tk-tool-sheet__backdrop:focus,
.elementor-widget-shortcode .tk-shell .tk-nav button.tk-tool-sheet__backdrop,
.elementor-widget-shortcode .tk-shell .tk-nav button.tk-tool-sheet__backdrop:hover,
.elementor-widget-shortcode .tk-shell .tk-nav button.tk-tool-sheet__backdrop:focus,
.elementor .elementor-widget-shortcode .tk-shell .tk-nav button.tk-tool-sheet__backdrop,
.elementor .elementor-widget-shortcode .tk-shell .tk-nav button.tk-tool-sheet__backdrop:hover,
.elementor .elementor-widget-shortcode .tk-shell .tk-nav button.tk-tool-sheet__backdrop:focus {
  background: color-mix(in srgb, var(--tk-bg) 50%, transparent);
  color: transparent;
}

.tk-tool-sheet.is-open .tk-tool-sheet__backdrop {
  opacity: 1;
}

.tk-tool-sheet__panel {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  max-height: min(72%, 22rem);
  padding: 1.35rem 1.75rem 1.5rem;
  border-top: 1px solid var(--tk-border);
  background: var(--tk-surface-elevated);
  box-shadow: var(--tk-shadow);
  transform: translateY(100%);
  transition: transform 0.28s ease-out;
  overflow-y: auto;
}

.tk-tool-sheet.is-open .tk-tool-sheet__panel {
  transform: translateY(0);
}

.tk-tool-sheet__close {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  padding: 0;
  border: none;
  border-radius: var(--tk-radius-sm);
  background: transparent;
  color: var(--tk-muted);
  cursor: pointer;
  transition: color 0.15s, background 0.15s;
}

.tk-tool-sheet__close:hover,
.tk-tool-sheet__close:focus-visible {
  background: var(--tk-accent-muted);
  color: var(--tk-text);
}

.tk-tool-sheet__close-icon {
  font-size: 1.5rem;
  line-height: 1;
}

.tk-tool-sheet__title {
  margin: 0 2rem 0.65rem 0;
  font-family: var(--tk-font-heading);
  font-size: 1.2rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--tk-text);
  line-height: 1.2;
}

.tk-tool-sheet__tagline,
.tk-tool-sheet__when,
.tk-tool-sheet__meta {
  margin: 0 0 0.65rem;
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--tk-text);
}

.tk-tool-sheet__desc {
  margin: 0 0 0.65rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--tk-border);
}

.tk-tool-sheet__desc-p {
  margin: 0 0 0.75rem;
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--tk-text);
}

.tk-tool-sheet__desc-p:last-child {
  margin-bottom: 0;
}

.tk-tool-sheet__when {
  color: var(--tk-muted);
  margin-top: 0.5rem;
}

.tk-tool-sheet__meta {
  margin-bottom: 1rem;
  font-size: 0.85rem;
  color: var(--tk-muted);
}

.tk-tool-sheet__open.is-disabled,
.tk-tool-sheet__open:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  .tk-tool-sheet__backdrop,
  .tk-tool-sheet__panel {
    transition: none;
  }

  .tk-tool-sheet.is-active .tk-tool-sheet__panel {
    transform: translateY(0);
  }
}

@media (max-width: 768px) {
  .tk-page-header {
    padding-bottom: 1.25rem;
  }

  .tk-nav-stage {
    align-items: stretch;
  }

  .tk-nav__split {
    grid-template-columns: 1fr;
    height: auto;
    min-height: clamp(28rem, 75vh, 42rem);
  }

  .tk-nav__detail {
    height: auto;
    min-height: 0;
    overflow: visible;
  }

  .tk-nav__detail-main,
  .tk-nav__detail.is-sheet-open .tk-nav__detail-main {
    flex: 0 1 auto;
    overflow: visible;
  }

  .tk-nav__list {
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: flex-start;
    height: auto;
    min-height: 0;
    padding: 0;
    overflow-x: auto;
    border-right: none;
    border-bottom: 1px solid var(--tk-border-dim);
    -webkit-overflow-scrolling: touch;
  }

  body.tk-has-toolkit .tk-shell .tk-nav button.tk-nav__list-item.is-active,
  .elementor-widget-shortcode .tk-shell .tk-nav button.tk-nav__list-item.is-active {
    border-left: none;
    padding-left: 1rem;
    border-bottom: 3px solid var(--tk-accent);
    padding-bottom: calc(0.85rem - 3px);
  }

  .tk-nav__list-item {
    flex: 0 0 auto;
    max-width: 14rem;
    border-bottom: none;
    border-right: 1px solid var(--tk-accent);
    padding: 1rem 1rem;
  }

  .tk-nav__list-item:last-child {
    border-right: none;
  }

  .tk-nav__detail-body {
    padding: 1.25rem 1rem 0;
  }

  .tk-nav__detail-tools {
    padding: 1rem 1rem 1.25rem;
  }

  .tk-nav__detail-visual {
    min-height: 8rem;
  }

  .tk-tool-chip,
  .tk-tool-sheet__open {
    min-height: 3rem;
  }

  .tk-tool-sheet {
    position: static;
    inset: auto;
    z-index: auto;
    display: none;
    width: 100%;
    pointer-events: none;
    visibility: hidden;
  }

  .tk-tool-sheet.is-active {
    display: block;
    pointer-events: auto;
    visibility: visible;
  }

  .tk-tool-sheet__backdrop {
    display: none;
  }

  .tk-tool-sheet__panel,
  .tk-tool-sheet.is-open .tk-tool-sheet__panel {
    position: relative;
    inset: auto;
    box-sizing: border-box;
    width: 100%;
    max-height: none;
    padding: 1.35rem 1rem 1.5rem;
    overflow: visible;
    transform: none;
    transition: none;
  }

  .tk-tool-sheet__close {
    width: 3rem;
    height: 3rem;
  }

  .tk-tool-sheet__title {
    margin-right: 3rem;
    scroll-margin-block-start: 1rem;
  }
}
