/* {space} · сделано внутри v1.0 (next.html, flow.html, side.html): поле инструментов за год (точка – инструмент, подсвечены вещи с доски)
   и доска по пяти веткам. строка – миниатюра, название, вид; превью при наведении, клик закрепляет; ссылок наружу нет. */
.board { position: relative; container-type: inline-size; }
.board [data-lane="context"], .board__seg[data-lane="context"] { --c: #69429a; }
.board [data-lane="tools"], .board__seg[data-lane="tools"] { --c: #111; }
.board [data-lane="site"], .board__seg[data-lane="site"] { --c: #8b6cb8; }
.board [data-lane="community"], .board__seg[data-lane="community"] { --c: #bba6d9; }
.board [data-lane="memory"], .board__seg[data-lane="memory"] { --c: #9a9890; }
.board__head { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(20px, 4vw, 64px); align-items: end; }
.board__head .kicker { margin: 0; color: #69429a; }
.board__head h2 { margin: 12px 0 0; font-size: clamp(30px, 3.4vw, 50px); line-height: 1; font-weight: 500; letter-spacing: -.03em; color: #111; }
.board__lede { margin: 0; max-width: 58ch; color: #44433f; font-size: 15px; line-height: 1.6; }

/* полоса веток: клетка – одна вещь */
.board__bar { display: flex; gap: 10px; margin: 30px 0 0; }
.board__seg { flex: var(--n) 1 0; min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; gap: 7px 6px; padding: 0 0 9px; background: none;
  border: 0; border-bottom: 2px solid transparent; color: #111; font: inherit; text-align: left; cursor: pointer; }
.board__cells { grid-column: 1 / -1; display: flex; gap: 3px; height: 30px; }
.board__cells i { flex: 1 1 0; background: var(--c); opacity: .8; transform-origin: bottom; transition: transform .25s, opacity .2s; }
.board__seg b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 500 11.5px/1.3 var(--mono, "IBM Plex Mono", monospace); }
.board__seg em { font: 400 11px/1.3 var(--mono, "IBM Plex Mono", monospace); font-style: normal; color: #66655f; }
.board__seg:hover .board__cells i, .board__seg:focus-visible .board__cells i { opacity: 1; transform: scaleY(1.18); }
.board__seg:hover .board__cells i:nth-child(2n), .board__seg:focus-visible .board__cells i:nth-child(2n) { transform: scaleY(1.32); }
.board__seg:focus-visible { outline: 2px solid #69429a; outline-offset: 3px; }
.board__seg[aria-pressed="true"] { border-bottom-color: #111; }
.board__seg[aria-pressed="true"] .board__cells i { opacity: 1; }
.board.has-pick .board__seg[aria-pressed="false"] { opacity: .42; }

/* три колонки веток */
.board__cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 0; border-top: 1px solid #111; }
.board__col { min-width: 0; padding: 0 clamp(12px, 1.8vw, 24px); border-left: 1px solid rgba(17, 17, 17, .12); }
.board__col:first-child { padding-left: 0; border-left: 0; }
.board__col:last-child { padding-right: 0; }
.lane { padding: 16px 0 18px; transition: opacity .25s; }
.lane + .lane { border-top: 1px dashed rgba(17, 17, 17, .18); }
.board.has-pick .lane:not(.is-pick) { opacity: .3; }
.lane__h { display: flex; align-items: baseline; gap: 8px; }
.lane__h b { font: 600 13px/1.3 var(--mono, "IBM Plex Mono", monospace); color: #111; }
.lane__h b::before { content: ""; display: inline-block; width: 9px; height: 9px; margin-right: 8px; background: var(--c); vertical-align: 0; }
.lane__h em { font: 400 11px/1.3 var(--mono, "IBM Plex Mono", monospace); font-style: normal; color: #66655f; }
.lane__d { margin: 4px 0 10px; font: 400 11px/1.5 var(--mono, "IBM Plex Mono", monospace); color: #66655f; }
.lane__d a { color: #69429a; }
.lane__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1px; }
.board[data-board-js] .bi { opacity: 0; transform: translateY(6px); }
.board.is-in .bi { animation: bi-in .35s ease forwards; animation-delay: calc(var(--k, 0) * 26ms); }
.bi__a { display: grid; grid-template-columns: 54px minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 11px; align-items: center; padding: 5px 6px 5px 0;
  border-left: 2px solid transparent; color: #111; text-decoration: none; transition: background .15s, border-color .15s, padding .2s; }
.bi__img { grid-row: 1 / 3; display: block; width: 54px; aspect-ratio: 16 / 10; overflow: hidden; background: #efe9f7; border: 1px solid rgba(17, 17, 17, .14); }
.bi__img img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; filter: grayscale(.7); transition: filter .2s; }
.bi__img--none { background: repeating-linear-gradient(135deg, #efe9f7 0 4px, #fff 4px 8px); }
.bi__t { align-self: end; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13.5px; line-height: 1.3; font-weight: 500; letter-spacing: -.005em; }
.bi__k { align-self: start; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 400 10.5px/1.4 var(--mono, "IBM Plex Mono", monospace); color: #66655f; }
.bi--lock .bi__k { color: #69429a; }
.bi__a:hover, .bi__a:focus-visible, .bi__a.is-cur { padding-left: 7px; background: #f6f3fa; border-left-color: var(--c); outline: none; }
.bi__a:hover .bi__img img, .bi__a:focus-visible .bi__img img, .bi__a.is-cur .bi__img img { filter: none; }
.bi__a:hover .bi__t, .bi__a:focus-visible .bi__t { color: #69429a; }
.bi__a { cursor: zoom-in; }
.lane__more { display: none; margin: 10px 0 0; min-height: 38px; padding: 0 14px; background: transparent; border: 1px solid #111; color: #111;
  font: 500 11.5px/1 var(--mono, "IBM Plex Mono", monospace); cursor: pointer; }

/* превью строки */
.board__peek { position: absolute; z-index: 6; width: 288px; padding: 8px 8px 11px; background: #fff; border: 1px solid #111; box-shadow: 6px 6px 0 #69429a;
  pointer-events: none; animation: board-pop .16s ease both; }
.board__peek[hidden] { display: none; }
.board__peek .pk-img { display: block; aspect-ratio: 16 / 10; margin-bottom: 9px; overflow: hidden; background: #efe9f7; }
.board__peek .pk-img img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
.board__peek .pk-img--none { aspect-ratio: auto; height: 10px; background: repeating-linear-gradient(135deg, #efe9f7 0 4px, #fff 4px 8px); }
.board__peek b { display: block; font-size: 15px; line-height: 1.25; font-weight: 600; color: #111; }
.board__peek p { margin: 5px 0 0; font: 400 11.5px/1.5 var(--mono, "IBM Plex Mono", monospace); color: #44433f; }
.board__peek small { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 10px; margin-top: 8px; font: 400 10.5px/1.4 var(--mono, "IBM Plex Mono", monospace); color: #69429a; }
.board__src { margin: 16px 0 0; padding-top: 12px; border-top: 1px solid rgba(17, 17, 17, .12); font: 400 10.5px/1.5 var(--mono, "IBM Plex Mono", monospace); color: #66655f; }
@keyframes board-pop { from { opacity: 0; transform: translateY(6px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes bi-in { to { opacity: 1; transform: none; } }

/* узкая доска: ветки одна под другой, в ветке четыре строки и «ещё» */
@container (max-width: 760px) {
  .board__head { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .board__bar { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 10px; }
  .board__cells { height: 22px; }
  .board__cols { grid-template-columns: minmax(0, 1fr); }
  .board__col { padding: 0; border-left: 0; }
  .board__col + .board__col .lane:first-child { border-top: 1px dashed rgba(17, 17, 17, .18); }
  .lane:not(.is-open) .bi:nth-child(n + 4) { display: none; }
  .lane.is-open .lane__more { display: none; }
  .lane__more { display: inline-block; }
  .board.has-pick .lane:not(.is-pick) { display: none; }
  .board.has-pick .lane.is-pick .bi { display: block; }
  .board.has-pick .lane.is-pick .lane__more { display: none; }
  .bi__t { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
}
@media (prefers-reduced-motion: reduce) { .board[data-board-js] .bi, .board.is-in .bi { animation: none; opacity: 1; transform: none; } .board__peek { animation: none; } .board__cells i { transition: none; } }

/* поле инструментов: строка – категория, точка – инструмент */
.board__n { color: #69429a; }
.tf { display: grid; gap: 10px; margin: 26px 0 4px; padding: 16px 0 14px; border-top: 1px solid #111; border-bottom: 1px solid rgba(17, 17, 17, .12); }
.tf__row { display: grid; grid-template-columns: minmax(150px, 13%) minmax(0, 1fr); gap: 14px; align-items: start; }
.tf__label { margin: 0; display: grid; gap: 2px; font: 400 11px/1.35 var(--mono, "IBM Plex Mono", monospace); color: #66655f; }
.tf__label b { font: 600 22px/1 var(--sans, inherit); letter-spacing: -.03em; color: #111; }
.tf__dots { display: flex; flex-wrap: wrap; gap: 4px; padding-top: 3px; }
.tf__dots i { width: 9px; height: 9px; background: #dcd3ea; transform: scale(0); transform-origin: 50% 100%;
  transition: transform .35s cubic-bezier(.2, .9, .3, 1.4), background .2s; transition-delay: calc(var(--k, 0) * 4ms); }
.tf__dots i.is-hot { width: 13px; height: 13px; margin: -2px 0; background: #69429a; cursor: zoom-in; box-shadow: 2px 2px 0 #111; }
.tf__dots i.is-hot:hover, .tf__dots i.is-on { background: #111; box-shadow: 3px 3px 0 #69429a; transform: scale(1.25) !important; }
.board.is-in .tf__dots i { transform: scale(1); }
.board__peek.is-pinned { pointer-events: auto; box-shadow: 8px 8px 0 #111; }
@container (max-width: 760px) {
  .tf__row { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .tf__label { grid-auto-flow: column; justify-content: start; align-items: baseline; gap: 8px; }
  .tf__label b { font-size: 18px; }
  .tf__dots i { width: 7px; height: 7px; }
  .tf__dots i.is-hot { width: 10px; height: 10px; }
}
@media (prefers-reduced-motion: reduce) { .tf__dots i { transition: none; transform: none; } }

/* v1.1 · витрина: ветка – строка карточек со снимком, видом и пометкой доступа; первые четыре видны, остальные по «ещё» */
.board__cols--gallery { display: block; border-top: 1px solid #111; }
.board__cols--gallery .lane { padding: 20px 0 24px; }
.board__cols--gallery .lane + .lane { border-top: 1px dashed rgba(17, 17, 17, .18); }
.board__cols--gallery .lane__h { flex-wrap: wrap; row-gap: 2px; }
.board__cols--gallery .lane__d { flex: 1 1 100%; margin: 2px 0 14px; }
.board__cols--gallery .lane__list { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(12px, 1.6vw, 22px); }
.board__cols--gallery .lane:not(.is-open) .bi:nth-child(n + 5) { display: none; }
.board__cols--gallery .lane.is-open .lane__more { display: none; }
.board__cols--gallery .lane__more { display: inline-block; margin-top: 14px; }
.board__cols--gallery .bi__a { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto auto auto auto; column-gap: 8px; align-items: start;
  padding: 0; border: 0; background: none; cursor: zoom-in; }
.board__cols--gallery .bi__img { grid-column: 1 / -1; grid-row: 1; width: 100%; margin-bottom: 10px; border: 1px solid rgba(17, 17, 17, .18); box-shadow: 5px 5px 0 rgba(105, 66, 154, .2);
  transition: box-shadow .2s, transform .2s; }
.board__cols--gallery .bi__img img { filter: grayscale(.25); }
.board__cols--gallery .bi__img--none { display: grid; place-items: center; }
.board__cols--gallery .bi__img--none b { padding: 3px 8px; background: #fff; border: 1px solid rgba(17, 17, 17, .2); font: 500 10.5px/1.3 var(--mono, "IBM Plex Mono", monospace); color: #69429a; }
.board__cols--gallery .bi__acc { grid-column: 1 / -1; grid-row: 1; justify-self: start; align-self: start; z-index: 1; margin: 8px; padding: 2px 7px; background: #fff; border: 1px solid #111;
  font: 500 9.5px/1.4 var(--mono, "IBM Plex Mono", monospace); color: #111; }
.board__cols--gallery .bi__acc--team, .board__cols--gallery .bi__acc--private { background: #111; color: #fff; }
.board__cols--gallery .bi__t { grid-column: 1 / -1; grid-row: 2; white-space: normal; font-size: 14.5px; }
.board__cols--gallery .bi__k { grid-column: 1 / -1; grid-row: 3; margin-top: 2px; color: #69429a; }
.board__cols--gallery .bi__l { grid-column: 1 / -1; grid-row: 4; margin-top: 4px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  font: 400 11px/1.5 var(--mono, "IBM Plex Mono", monospace); color: #44433f; }
.board__cols--gallery .bi__a:hover, .board__cols--gallery .bi__a:focus-visible, .board__cols--gallery .bi__a.is-cur { padding: 0; background: none; }
.board__cols--gallery .bi__a:hover .bi__img, .board__cols--gallery .bi__a:focus-visible .bi__img, .board__cols--gallery .bi__a.is-cur .bi__img { box-shadow: 7px 7px 0 var(--c, #69429a); transform: translate(-2px, -2px); }
.board__cols--gallery .bi__a:focus-visible { outline: 2px solid #69429a; outline-offset: 4px; }
.board.has-pick .board__cols--gallery .lane:not(.is-pick) { display: none; }
.board.has-pick .board__cols--gallery .lane.is-pick .bi { display: block; }
.board.has-pick .board__cols--gallery .lane.is-pick .lane__more { display: none; }
.board__peek.is-pinned { width: min(440px, 100%); }
@container (max-width: 980px) { .board__cols--gallery .lane__list { grid-template-columns: repeat(3, minmax(0, 1fr)); } .board__cols--gallery .lane:not(.is-open) .bi:nth-child(n + 4) { display: none; } }
@container (max-width: 640px) {
  .board__cols--gallery .lane__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .board__cols--gallery .lane:not(.is-open) .bi:nth-child(n + 5) { display: none; }
  .board__cols--gallery .lane:not(.is-open) .bi:nth-child(-n + 4) { display: block; }
  .board__cols--gallery .bi__l { display: none; }
}
