/* =====================================================================
   top-panel.css: the tabs on the top edge (Picks, Highlights, Start here) and the Highlights panel.
   ===================================================================== */

/* ---- two tabs on the top edge: Picks and Highlights ---- */
.hdl-top {
  position: absolute;
  z-index: 56;
  top: var(--ptH, 0px);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  transition: top 420ms var(--spr);
}
@container (min-width:900px) {
  .hdl-top {
    left: calc(var(--htl, 0px) + (100% - var(--htl, 0px) - var(--htr, 0px)) / 2);
    top: calc(var(--ptH, 0px) - 1px);
  }
}
.hdl-top .hdl {
  position: relative;
  top: auto !important;
  left: auto !important;
  transform: none !important;
  opacity: 1 !important;
  pointer-events: auto !important;
  border-top: 0;
  border-radius: 0 0 14px 14px;
  padding: 3px 12px 5px;
  gap: 5px;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-top: 0;
  box-shadow: 0 8px 14px -10px rgba(46, 58, 67, 0.4);
}
.hdl-top .hdl svg {
  width: 14px;
  height: 14px;
}
.hdl-top .hdl.cur {
  background: var(--sky);
}
.hdl-h {
  color: #a07a3c;
}
.app.lw-open .hdl-top {
  opacity: 0;
  pointer-events: none;
}
.hdl-t.bounce {
  animation: none;
}
.hdl-top .hdl.bounce {
  animation: tuckbounce2 700ms var(--spring) 380ms;
}
@keyframes tuckbounce2 {
  35% {
    transform: translateY(6px) scale(1.08);
  }
  65% {
    transform: translateY(-1px);
  }
}
/* ---- Highlights panel ---- */
.pt.is-hl {
  max-height: min(78%, 640px);
  display: flex;
  flex-direction: column;
}
.pt.is-hl .shelf {
  display: flex;
  flex-direction: column;
  min-height: 0;
  flex: 1;
}
.hlpanel .sh-head {
  display: flex;
  align-items: center;
  gap: 8px;
}
.hlpanel .sh-head .gh {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 1;
  color: var(--ink);
  font-size: 13px;
  letter-spacing: 0.02em;
  text-transform: none;
}
.hlpanel .sh-head .gh svg {
  color: #a07a3c;
}
.hl-all {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 30px;
  font-weight: 600;
  color: var(--slate);
}
.hl-all svg {
  color: var(--accent);
}
.hl-body {
  overflow-y: auto;
  min-height: 0;
  margin: 8px -18px -14px;
  padding: 0 18px 14px;
}
.hl-row {
  margin: 6px 0 10px;
}
.hl-h {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 0 0 6px;
}
.hl-h h3 {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
}
.hl-why {
  font-size: 11.5px;
  color: var(--faint);
}
.hl-body .bd-row {
  grid-auto-columns: 168px;
}
.pc-check {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  cursor: pointer;
}
.pcard.hlc.on {
  border-color: #c3d7e1;
  box-shadow: 0 0 0 2px #d4e6ee;
}
.pcard.hlc.on .box {
  background: var(--accent);
  border-color: var(--accent);
}
.pcard.more {
  gap: 4px;
}
.pcard.more svg {
  color: var(--accent);
}
.shelf.hlpanel.phone {
  padding: 16px 12px 8px;
}
.shelf.hlpanel.phone .hl-body {
  margin: 8px -12px -8px;
  padding: 0 12px 10px;
}
.shelf.hlpanel.phone .bd-row {
  grid-auto-columns: 146px;
  margin: 0 -12px;
  padding: 2px 12px 8px;
}
@container (max-width:899px) {
  .pt.is-hl {
    max-height: 86%;
  }
}

/* the list window never slides under a docked Where panel */
@container (min-width:900px) {
  .app.r-open .lw-card {
    right: calc(var(--rw, 0px) + 52px);
  }
  .app.r-open .lw.max .lw-card {
    right: calc(var(--rw, 0px) + 16px);
  }
}

/* board header wraps cleanly when the middle is narrow */
.bd-head {
  flex-wrap: wrap;
  row-gap: 8px;
}
.bd-head > div:first-child {
  flex: 1 1 260px;
}
.bd-head h2 {
  line-height: 1.25;
}
.bd-act {
  flex-wrap: wrap;
}
