/* =====================================================================
   board.css: the middle board (shelves of cards).
   ===================================================================== */

/* =====================================================================
   The middle board
   ===================================================================== */
.mid {
  overflow: hidden;
}
.board {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  overflow-y: auto;
  padding: 22px 64px 40px;
  scrollbar-width: thin;
}
@container (min-width:900px) {
  .board {
    left: var(--plw, 0px);
    right: var(--rw, 0px);
    padding: 24px 64px 40px;
  }
  .app:not(.l-open) .board {
    left: 0;
  }
  .app:not(.r-open) .board {
    right: 0;
  }
}
.mid.narrow .board {
  display: none;
}
.bd-head {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  margin: 0 0 14px;
}
.bd-head > div {
  flex: 1;
  min-width: 0;
}
.bd-head h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.bd-head h2 span {
  font-weight: 400;
  color: var(--muted);
}
.bd-head p {
  margin: 3px 0 0;
  font-size: 13px;
  color: var(--muted);
}
.bd-act .chipbtn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.bd-act .chipbtn svg {
  width: 14px;
  height: 14px;
  color: var(--accent);
}
.bd-sec {
  margin: 0 0 16px;
}
.bd-sh {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 8px;
}
.bd-sh h3 {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}
.bd-sh h3 small {
  font-weight: 400;
  font-size: 12px;
  color: var(--faint);
  margin-left: 4px;
}
.bd-sh .r-count {
  margin-left: 0;
}
.bd-sh .linkbtn {
  margin-left: auto;
  font-size: 12px;
}
.bd-row {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 184px;
  gap: 8px;
  overflow-x: auto;
  padding: 2px 2px 8px;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
}
.bd-row.open {
  grid-auto-flow: row;
  grid-template-columns: repeat(auto-fill, minmax(184px, 1fr));
  overflow: visible;
}
.pcard {
  position: relative;
  scroll-snap-align: start;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  transition:
    transform var(--t1) var(--ease),
    box-shadow var(--t1),
    border-color var(--t1);
}
.pcard.new {
  animation: cardin 420ms var(--spring) both;
}
.pc-main {
  appearance: none;
  display: flex;
  flex-direction: column;
  width: 100%;
  border: 0;
  background: none;
  padding: 0;
  text-align: left;
  cursor: pointer;
  font: inherit;
  color: var(--ink);
}
.pc-img {
  display: grid;
  place-items: center;
  height: 70px;
  background: color-mix(in srgb, var(--tint) 13%, #fff)
    radial-gradient(circle at 1px 1px, color-mix(in srgb, var(--tint) 22%, transparent) 1px, transparent 0) 0 0/12px
    12px;
  color: var(--tint);
}
.pc-img .ic {
  width: 30px;
  height: 30px;
}
.pc-img .ic svg {
  width: 26px;
  height: 26px;
}
.pc-txt {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 8px 10px 10px;
}
.pc-txt b {
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.pc-where {
  font-size: 11.5px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pc-meta {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 11.5px;
  color: var(--slate);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pc-meta svg {
  flex: none;
  color: var(--accent);
}
.pc-x {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.92);
  display: grid;
  place-items: center;
  cursor: pointer;
  color: var(--muted);
  opacity: 0;
  transition: opacity var(--t1);
}
.pc-x svg {
  width: 12px;
  height: 12px;
}
.pcard:hover .pc-x,
.pc-x:focus-visible {
  opacity: 1;
}
@media (hover: none) {
  .pc-x {
    opacity: 1;
  }
}
.pcard.more {
  appearance: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  cursor: pointer;
  border-style: dashed;
  background: transparent;
  font: inherit;
  color: var(--slate);
}
.pcard.more b {
  font-size: 18px;
  font-weight: 600;
}
.pcard.more span {
  font-size: 12px;
  color: var(--muted);
}
.bd-lines {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.bd-line {
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 10px;
  padding: 4px 10px 4px 4px;
  font: inherit;
  font-size: 12.5px;
  color: var(--ink);
  cursor: pointer;
}
.bd-line .badge {
  height: 24px;
  min-width: 30px;
  font-size: 12px;
}
@media (hover: hover) {
  .pcard:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 22px -14px rgba(46, 58, 67, 0.35);
    border-color: var(--line-strong);
  }
  .bd-line:hover {
    border-color: var(--line-strong);
  }
}
.board.empty {
  display: grid;
  place-items: center;
}
.bd-empty {
  max-width: 380px;
  text-align: center;
  padding: 24px;
  background: color-mix(in srgb, var(--surface) 80%, transparent);
  border: 1px solid var(--line);
  border-radius: 16px;
}
.bd-empty-ic {
  width: 44px;
  height: 44px;
  margin: 0 auto 10px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--sky);
  color: var(--slate);
}
.bd-empty h2 {
  margin: 0 0 6px;
  font-size: 17px;
  font-weight: 600;
}
.bd-empty p {
  margin: 0;
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.5;
}
.bd-empty-act {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 14px;
  flex-wrap: wrap;
}
.bd-empty-act .allbtn svg {
  width: 15px;
  height: 15px;
  color: var(--accent);
}
.bd-note {
  margin-top: 10px !important;
  font-size: 12px !important;
}
.keyfacts .v a {
  color: var(--slate);
  text-decoration: underline;
  text-decoration-color: #b9ccd7;
  text-underline-offset: 2px;
}

/* ---- the Oslo card's close button, and the flight of its buttons (home-card.js) ---- */
.bd-float {
  position: relative;
}
.bd-x {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 8px;
  background: none;
  color: var(--muted);
  cursor: pointer;
}
.bd-x:hover {
  background: var(--soft);
  color: var(--ink);
}
.bd-x svg {
  width: 16px;
  height: 16px;
}
.fly {
  white-space: nowrap;
  will-change: transform, opacity;
  box-shadow: 0 10px 24px -8px rgba(47, 67, 81, 0.45);
}
.fly-echo {
  box-shadow: none;
}
/* the target pops and glows when a button lands on it */
.landed {
  animation: landpop 620ms var(--spring);
}
@keyframes landpop {
  0% {
    scale: 1;
  }
  30% {
    scale: 1.18;
    box-shadow: 0 0 0 0 rgba(229, 169, 142, 0.7);
  }
  100% {
    scale: 1;
    box-shadow: 0 0 0 14px rgba(229, 169, 142, 0);
  }
}
.hdl-top .hdl.landed {
  animation: landpoptab 620ms var(--spring);
}
@keyframes landpoptab {
  0% {
    scale: 1;
  }
  30% {
    scale: 1.16;
    box-shadow: 0 0 0 0 rgba(127, 189, 191, 0.7);
  }
  100% {
    scale: 1;
    box-shadow: 0 0 0 14px rgba(127, 189, 191, 0);
  }
}
