/* Market Limits — Start Here: nav button + guided path overlay */

/* Nav button: identical in the Tailwind header, the .ml-nav header and the .site-nav header */
.sh-open {
  display: inline-flex; align-items: center; gap: .4rem;
  margin: 0 .1rem 0 0; padding: .375rem .7rem;
  border: 1px solid rgba(52, 211, 153, .45); border-radius: 9999px;
  background: rgba(52, 211, 153, .1); color: #6ee7b7;
  font: inherit; font-size: .8125rem; font-weight: 600; line-height: 1.2; letter-spacing: .01em;
  white-space: nowrap; cursor: pointer;
  transition: background-color .18s ease, border-color .18s ease, color .18s ease;
}
.sh-open:hover, .sh-open:focus-visible { background: rgba(52, 211, 153, .18); border-color: rgba(52, 211, 153, .75); color: #a7f3d0; }
.sh-open i { font-size: .75rem; line-height: 1; }

/* Mobile menu entry: full width, left aligned, above the Hashlines link */
.sh-open--mobile {
  display: flex; width: 100%; margin: 0 0 .6rem; padding: .55rem .75rem;
  border-radius: .5rem; font-size: .95rem; gap: .6rem; background: rgba(52, 211, 153, .12);
}
.sh-open--mobile i { font-size: .85rem; }

/* Overlay */
.sh-root { position: fixed; inset: 0; z-index: 80; display: flex; align-items: flex-start; justify-content: center; padding: clamp(.75rem, 5vh, 3.5rem) 1rem; }
.sh-root[hidden] { display: none; }
.sh-backdrop { position: absolute; inset: 0; background: rgba(3, 12, 9, .74); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); animation: sh-fade .18s ease; }
.sh-dialog {
  position: relative; display: flex; flex-direction: column;
  width: 100%; max-width: 44rem; max-height: calc(100dvh - 2rem);
  background: #0b261e; border: 1px solid rgba(52, 211, 153, .22); border-radius: 1rem;
  box-shadow: 0 28px 64px -16px rgba(0, 0, 0, .75); overflow: hidden;
  color: #e2e8f0; font-family: inherit; font-size: 1rem; text-align: left;
  animation: sh-rise .22s ease;
}
.sh-dialog:focus { outline: none; }
@keyframes sh-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes sh-rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

.sh-head { position: relative; padding: 1.25rem 1.5rem .875rem; border-bottom: 1px solid rgba(16, 185, 129, .16); }
.sh-head-top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.sh-eyebrow { display: inline-flex; align-items: center; gap: .45rem; font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: .6875rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: #34d399; }
.sh-x { display: inline-flex; align-items: center; justify-content: center; width: 2rem; height: 2rem; border: 1px solid rgba(52, 211, 153, .28); border-radius: .5rem; background: transparent; color: #94a3b8; font-size: .9rem; cursor: pointer; transition: color .16s ease, border-color .16s ease, background-color .16s ease; }
.sh-x:hover, .sh-x:focus-visible { color: #e2e8f0; border-color: rgba(52, 211, 153, .6); background: rgba(52, 211, 153, .1); }
.sh-title { margin: .55rem 0 .35rem; font-size: 1.3rem; font-weight: 700; line-height: 1.25; color: #f8fafc; letter-spacing: -.01em; }
.sh-sub { margin: 0; font-size: .875rem; line-height: 1.55; color: #9fb3aa; max-width: 38rem; }

.sh-main { padding: 1.125rem 1.5rem 1.35rem; overflow-y: auto; overscroll-behavior: contain; }

/* Path list */
.sh-choose { margin: 0 0 .75rem; font-size: .75rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: #64748b; }
.sh-paths { display: grid; gap: .6rem; }
.sh-path { display: flex; align-items: flex-start; gap: .9rem; width: 100%; padding: .85rem .95rem; text-align: left; font: inherit; color: inherit; cursor: pointer; border: 1px solid rgba(16, 185, 129, .18); border-radius: .75rem; background: linear-gradient(145deg, #0d2a21 0%, #0a231b 100%); transition: border-color .16s ease, background-color .16s ease; }
.sh-path:hover, .sh-path:focus-visible { border-color: rgba(52, 211, 153, .55); background: #103128; }
.sh-path-ic { flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; width: 2.25rem; height: 2.25rem; border-radius: .6rem; background: rgba(52, 211, 153, .12); border: 1px solid rgba(52, 211, 153, .22); color: #34d399; font-size: .9rem; }
.sh-path-txt { flex: 1 1 auto; min-width: 0; }
.sh-path-title { display: block; font-size: .95rem; font-weight: 600; color: #f1f5f9; }
.sh-path-quote { display: block; margin-top: .2rem; font-size: .875rem; line-height: 1.45; color: #9fb3aa; }
.sh-path-go { flex: 0 0 auto; align-self: center; color: #34d399; font-size: .75rem; opacity: .55; transition: opacity .16s ease, transform .16s ease; }
.sh-path:hover .sh-path-go { opacity: 1; transform: translateX(2px); }

.sh-foot { margin: 1rem 0 0; padding-top: .9rem; border-top: 1px solid rgba(16, 185, 129, .14); font-size: .8125rem; line-height: 1.55; color: #64748b; }
.sh-link { padding: 0; border: 0; background: none; font: inherit; color: #34d399; text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.sh-link:hover { color: #6ee7b7; }

/* Path detail */
.sh-back { display: inline-flex; align-items: center; gap: .45rem; padding: .3rem .55rem .3rem 0; border: 0; background: none; font: inherit; font-size: .8125rem; font-weight: 500; color: #94a3b8; cursor: pointer; }
.sh-back:hover, .sh-back:focus-visible { color: #34d399; }
.sh-detail-title { margin: .35rem 0 .3rem; font-size: 1.1rem; font-weight: 700; color: #f8fafc; }
.sh-quote { margin: 0 0 .6rem; padding-left: .75rem; border-left: 2px solid rgba(52, 211, 153, .5); font-size: .875rem; font-style: italic; line-height: 1.5; color: #a7b8b0; }
.sh-blurb { margin: 0 0 1rem; font-size: .9rem; line-height: 1.6; color: #cbd5e1; }

.sh-steps { list-style: none; margin: 0 0 1.15rem; padding: 0; display: grid; gap: .1rem; }
.sh-step { display: grid; grid-template-columns: 1.75rem 1fr; gap: .6rem; align-items: start; padding: .55rem 0; border-top: 1px solid rgba(16, 185, 129, .1); }
.sh-step:first-child { border-top: 0; }
.sh-step-num { font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: .7rem; font-weight: 600; color: #34d399; padding-top: .18rem; }
.sh-step-label { font-size: .9rem; font-weight: 600; color: #e2e8f0; text-decoration: none; }
a.sh-step-label:hover, a.sh-step-label:focus-visible { color: #6ee7b7; text-decoration: underline; text-underline-offset: 3px; }
.sh-step-label i { margin-left: .35rem; font-size: .6rem; color: #64748b; }
.sh-step-note { display: block; margin-top: .15rem; font-size: .8125rem; line-height: 1.5; color: #94a3b8; }

.sh-cta { display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding: .8rem 1.05rem; border-radius: .65rem; background: #34d399; color: #04150f; font-size: .9rem; font-weight: 700; text-decoration: none; transition: background-color .16s ease; }
.sh-cta:hover, .sh-cta:focus-visible { background: #6ee7b7; color: #04150f; }
.sh-cta-note { margin: .55rem 0 0; font-size: .75rem; color: #64748b; }

@media (max-width: 640px) {
  .sh-root { padding: 0; align-items: flex-end; }
  .sh-dialog { max-width: none; max-height: 92dvh; border-radius: 1rem 1rem 0 0; border-bottom: 0; }
  .sh-head { padding: 1rem 1.1rem .8rem; }
  .sh-main { padding: 1rem 1.1rem 1.4rem; }
  .sh-title { font-size: 1.15rem; }
  .sh-path { gap: .7rem; padding: .75rem .8rem; }
  .sh-path-ic { width: 2rem; height: 2rem; }
  .sh-cta { position: sticky; bottom: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .sh-backdrop, .sh-dialog { animation: none; }
  .sh-path, .sh-path-go, .sh-cta, .sh-open { transition: none; }
}
