/* =====================================================================
   start-here.css: the "Start here" panel: its handle, the intro video,
   the how-to cards and the tree of everything in the guide.
   ===================================================================== */

/* the handle: soft teal from the logo */
.hdl-top .hdl-s {
  --h-fill: #d3ebec;
  --h-line: #7fbdbf;
  color: #2f6e72;
}
.hdl-top .hdl-s {
  background: var(--h-fill) !important;
  border-color: var(--h-line) !important;
}
.hdl-top .hdl-s.cur {
  background: #bfe1e3 !important;
}
.pt.is-start {
  border-top: 3px solid #7fbdbf;
}

/* the panel is taller than Picks: the video and the tree need room */
.pt.is-start {
  height: min(86%, 760px);
  max-height: none;
  display: flex;
  flex-direction: column;
}
.pt.is-start .shelf {
  display: flex;
  flex-direction: column;
  min-height: 0;
  flex: 1;
}
.startpanel .sh-head {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.startpanel .sh-head .gh {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
}
.st-tabs button {
  padding: 0 12px;
}
.st-body {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding: 4px 16px 14px;
  overflow: auto;
}

/* Video */
.st-video {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(220px, 1fr);
  gap: 22px;
  align-items: start;
}
.st-video video {
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: 12px;
  background: #e9eef0;
  box-shadow: 0 12px 30px -16px rgba(47, 67, 81, 0.45);
}
.st-about h3 {
  margin: 4px 0 8px;
  font-size: 19px;
  font-weight: 600;
}
.st-about p {
  margin: 0 0 12px;
  color: var(--slate);
  line-height: 1.5;
}
.st-about .st-small {
  font-size: 13px;
  color: var(--muted);
}
@container (max-width:899px) {
  .st-video {
    grid-template-columns: 1fr;
  }
}

/* How to */
.st-howto {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 14px;
}
.st-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 10px 12px;
}
.st-card video,
.st-soon {
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: 8px;
  background: #eef5f5;
}
.st-soon {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: #5d9a9d;
  font-size: 12.5px;
}
.st-soon svg {
  width: 26px;
  height: 26px;
}
.st-card h4 {
  margin: 10px 2px 4px;
  font-size: 14.5px;
  font-weight: 600;
}
.st-card p {
  margin: 0 2px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.4;
}

/* What's inside: the tree */
.tv-tools {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}
.tv-tools .bl-search {
  flex: 1;
  min-width: 180px;
  max-width: 340px;
}
.tv-n {
  font-size: 12px;
  color: var(--muted);
}
.tv {
  position: relative;
  flex: 1;
  min-height: 260px;
  overflow: hidden;
  border-radius: 12px;
  background: #fbf8f3;
  border: 1px solid var(--line);
  cursor: grab;
  touch-action: none;
}
.tv.dragging {
  cursor: grabbing;
}
.tv-world {
  position: absolute;
  left: 0;
  top: 0;
  transform-origin: 0 0;
}
.tv-links {
  position: absolute;
  left: 0;
  top: 0;
  overflow: visible;
  pointer-events: none;
}
.tvn {
  position: absolute;
  left: 0;
  top: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  height: 26px;
  white-space: nowrap;
  /* no fade here: with "Everything" open there are 12,000 boxes */
  contain: layout style;
}
.tvn.gone {
  opacity: 0;
  pointer-events: none;
}
.tv-pill {
  display: flex;
  align-items: center;
  gap: 7px;
  height: 24px;
  padding: 0 10px;
  border-radius: 12px;
  background: #fff;
  border: 1.4px solid var(--c);
  font-size: 13px;
  cursor: pointer;
}
.tv-pill b {
  font-weight: 500;
}
.tv-pill i {
  font-style: normal;
  font-size: 11.5px;
  color: var(--muted);
}
.tv-tw {
  width: 12px;
  font-size: 9px;
  color: var(--muted);
  transition: transform 0.2s;
}
.tvn.open .tv-tw {
  transform: rotate(90deg);
}
.tvn.cat .tv-pill,
.tvn.root .tv-pill {
  background: var(--c);
  color: #fff;
  font-weight: 600;
}
.tvn.cat .tv-pill i,
.tvn.root .tv-pill i,
.tvn.cat .tv-tw,
.tvn.root .tv-tw {
  color: #ffffffcc;
}
.tvn.root .tv-pill {
  background: #2f4351;
  border-color: #2f4351;
}
.tvn.ref .tv-pill {
  border-style: dashed;
}
.tvn.grp .tv-pill {
  background: color-mix(in srgb, var(--c) 10%, #fff);
}
.tv-go {
  height: 22px;
  padding: 0 8px;
  border-radius: 11px;
  border: 1px solid var(--line-strong);
  background: #fff;
  font-size: 11.5px;
  color: var(--slate);
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.15s;
}
.tvn:hover .tv-go,
.tv-go:focus-visible {
  opacity: 1;
}
@media (hover: none) {
  .tv-go {
    opacity: 1;
  }
}
.tv-bar {
  height: 6px;
  border-radius: 3px;
  background: var(--c);
  opacity: 0.5;
}
.tv-place {
  display: flex;
  align-items: center;
  gap: 6px;
  border: 0;
  background: none;
  padding: 0 4px;
  font-size: 12.5px;
  cursor: pointer;
  color: var(--ink);
}
.tv-place::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--c);
  opacity: 0.8;
}
.tv-place em {
  font-style: normal;
  color: var(--faint);
  font-size: 11.5px;
}
.tv-place:hover {
  text-decoration: underline;
}
.tvn.hit .tv-pill,
.tvn.hit .tv-place {
  background: #f8d9cb;
  border-radius: 10px;
  animation: tvpulse 1.2s ease 2;
}
@keyframes tvpulse {
  50% {
    box-shadow: 0 0 0 8px rgba(248, 217, 203, 0.6);
  }
}
.tv-note {
  margin: 8px 2px 0;
  font-size: 12.5px;
  color: var(--muted);
}

/* three tabs on the top edge must fit a phone: one line each */
.hdl-top .hdl {
  white-space: nowrap;
}
@container (max-width:899px) {
  .hdl-top {
    gap: 4px;
  }
  .hdl-top .hdl {
    padding: 3px 9px 5px;
  }
}

/* ---- the block map (blocks.js) ---- */
.tv-tools .mini-seg button svg {
  width: 14px;
  height: 14px;
  margin-right: 5px;
  vertical-align: -2px;
}
.bk-crumbs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 2px 4px;
  min-height: 34px;
  margin-bottom: 6px;
  font-size: 13.5px;
}
.bk-crumb {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 30px;
  padding: 0 8px;
  border: 0;
  border-radius: 8px;
  background: none;
  color: var(--slate);
  font: inherit;
  cursor: pointer;
}
.bk-crumb:hover {
  background: var(--soft);
}
.bk-crumb.cur {
  font-weight: 650;
  color: var(--ink);
}
.bk-total {
  margin-left: 8px;
  color: var(--muted);
  font-size: 12.5px;
}
.bk-go {
  margin-left: auto;
}
.bk {
  position: relative;
  flex: 1;
  min-height: 280px;
  overflow: hidden;
  border-radius: 12px;
  background: var(--line);
}
.bk-layer {
  position: absolute;
  inset: 0;
  transform-origin: 0 0;
}
.bk-b {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 2px;
  padding: 10px 12px;
  border: 0;
  border-radius: 8px;
  background: var(--bk);
  color: var(--ink);
  font: inherit;
  text-align: left;
  overflow: hidden;
  cursor: pointer;
  transition: filter 0.15s;
}
.bk-b:hover {
  filter: brightness(1.05) saturate(1.05);
}
.bk-b.end {
  cursor: default;
}
.bk-b.dark {
  color: #fff;
}
.bk-b b {
  font-size: 15px;
  font-weight: 650;
  line-height: 1.15;
}
.bk-b i {
  font-style: normal;
  font-size: 12.5px;
  opacity: 0.85;
  font-variant-numeric: tabular-nums;
}
.bk-b.small {
  padding: 6px 8px;
}
.bk-b.small b {
  font-size: 12.5px;
}
.bk-b.small i {
  font-size: 11px;
}
.bk-b.tiny b,
.bk-b.tiny i {
  display: none;
}
.bk-open {
  margin-top: auto;
  padding: 4px 10px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.85);
  color: var(--slate);
  font-size: 12px;
  font-weight: 600;
}
.bk-b.dark .bk-open {
  color: #2f4351;
}
.bk-none {
  padding: 20px;
  color: var(--muted);
}
